adds claude-generated commit messages and a recent commits panel to the git view - adds log tailing in the explorer, branch merging and a clean up button

This commit is contained in:
2026-11-04 10:07:52 +01:00
parent 600d4874d2
commit cc6651c08a
49 changed files with 1944 additions and 180 deletions
@@ -35,6 +35,30 @@ import Testing
#expect(result == ProcessResult(exitCode: 0, stdout: "", stderr: ""))
}
@Test func inputReachesStdinAndThenEnds() async throws {
let result = try await runner.run("cat", arguments: [], in: nil, environment: nil, input: "héllo\nworld")
#expect(result == ProcessResult(exitCode: 0, stdout: "héllo\nworld", stderr: ""))
}
@Test func largeInputIsWrittenWhole() async throws {
let input = String(repeating: "x", count: 1_000_000)
let result = try await runner.run("wc", arguments: ["-c"], in: nil, environment: nil, input: input)
#expect(result.stdout.trimmingCharacters(in: .whitespacesAndNewlines) == "1000000")
}
@Test func aChildThatIgnoresItsInputStillFinishes() async throws {
let input = String(repeating: "x", count: 1_000_000)
let result = try await runner.run("true", arguments: [], in: nil, environment: nil, input: input)
#expect(result.exitCode == 0)
}
@Test func aRunnerWithoutStdinSupportRefusesInput() async throws {
let fake = CannedRunner(result: ProcessResult(exitCode: 0, stdout: "", stderr: ""))
await #expect(throws: ProcessRunnerError.self) {
try await fake.run("x", arguments: [], in: nil, environment: nil, input: "prompt")
}
}
@Test func largeOutputOnBothPipesDoesNotDeadlock() async throws {
let script = "i=0; while [ $i -lt 20000 ]; do echo line$i; echo err$i >&2; i=$((i+1)); done"
let result = try await runner.run("sh", ["-c", script])