adds Clean Copy Support

This commit is contained in:
2026-10-12 09:43:57 +02:00
parent 188e078055
commit 281f5465a6
28 changed files with 579 additions and 120 deletions
@@ -35,6 +35,15 @@ import Testing
#expect(TerminalLaunch.environment(from: ["LC_ALL": "nl_NL.UTF-8"])["LANG"] == nil)
}
@Test func bothPanesTellTheChildItRunsInHelder() {
let base = ["TERM_PROGRAM": "Apple_Terminal", "TERM_PROGRAM_VERSION": "455"]
for kind in TerminalKind.allCases {
let env = TerminalLaunch.make(kind: kind, config: .defaults, projectRoot: "/p", environment: base).environment
#expect(env["TERM_PROGRAM"] == "Helder")
#expect(env["TERM_PROGRAM_VERSION"] == nil)
}
}
@Test func agentRunsTheCommandThroughAnInteractiveShell() {
let launch = TerminalLaunch.make(kind: .agent, config: .defaults, projectRoot: "/p", environment: ["SHELL": "/bin/bash"])
#expect(launch.executable == "/bin/bash")