feat(aircoding): AirCoding V2 baseline — deterministic multi-agent architecture
Forked from OpenCode v1.17.4 with multi-agent system: - 5 agents: aircoding, scheduler, worker, architect, reviewer - Deterministic DAG scheduling engine (coordinator_tick) - Tool whitelists as hard enforcement - AirCoding validation plugin - V1 requirements: C4 docs, ADR, AGENTS.md, debug-log.md - Design documents in docs/
This commit is contained in:
30
packages/tui/test/util/renderer.test.ts
Normal file
30
packages/tui/test/util/renderer.test.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { expect, test } from "bun:test"
|
||||
import { destroyRenderer } from "../../src/util/renderer"
|
||||
|
||||
test("clears the terminal title before destroying the renderer", () => {
|
||||
const calls: string[] = []
|
||||
destroyRenderer({
|
||||
isDestroyed: false,
|
||||
setTerminalTitle(title) {
|
||||
calls.push(`title:${title}`)
|
||||
},
|
||||
destroy() {
|
||||
calls.push("destroy")
|
||||
},
|
||||
})
|
||||
expect(calls).toEqual(["title:", "destroy"])
|
||||
})
|
||||
|
||||
test("still clears the title after renderer destruction", () => {
|
||||
const calls: string[] = []
|
||||
destroyRenderer({
|
||||
isDestroyed: true,
|
||||
setTerminalTitle(title) {
|
||||
calls.push(`title:${title}`)
|
||||
},
|
||||
destroy() {
|
||||
calls.push("destroy")
|
||||
},
|
||||
})
|
||||
expect(calls).toEqual(["title:"])
|
||||
})
|
||||
Reference in New Issue
Block a user