refactor(agents): split cli-runner into concept modules (#122442)

* refactor(agents): split CLI runner concepts

* chore(lint): ratchet cli-runner max-lines baseline

* refactor(agents): remove stale runner import

* refactor(agents): preserve cleanup error typing

* refactor(agents): disambiguate CLI backend predicate

* test(agents): align code-mode pending boundary

Fixes red main: both host calls are unsettled when the guest snapshot is first parked; later waits still prove that settled calls are filtered.

* test(agents): tolerate code-mode settlement race

Fixes red main: the fast host call may settle as the guest snapshot is parked, while the deliberately slow call must remain pending.
This commit is contained in:
Peter Steinberger
2026-08-12 01:20:27 -07:00
committed by GitHub
parent 08142099da
commit 31aa7c7c75
7 changed files with 1370 additions and 1209 deletions
-1
View File
@@ -336,7 +336,6 @@ src/agents/btw.ts
src/agents/cli-auth-epoch.test.ts
src/agents/cli-runner.reliability.test.ts
src/agents/cli-runner.spawn.test.ts
src/agents/cli-runner.ts
src/agents/cli-runner/execute.supervisor-capture.test.ts
src/agents/cli-runner/prepare.test.ts
src/agents/cli-runner/prepare.ts