You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/src/agent/context.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@
67
67
-`passExecutor.ts` now consolidates approval, execution safety, and plan snapshot helpers so the main loop reads linearly while emitting consistent status updates.
68
68
- Pass executor unit tests now rely on `passExecutor/__testUtils__/passExecutor.ts` helpers (stored outside `__tests__` so Jest does not collect them as suites), keeping the primary spec focused on behavior assertions instead of repeated mock wiring.
69
69
-`passExecutor/commandRuntime.ts` emits the active plan step snapshot alongside each `command-result` event so downstream UIs can display the parent step metadata with command output, races command approval/execution against ESC triggers so human cancellations surface a `'stop'` outcome immediately instead of marching through the remaining plan steps, and short-circuits ESC-triggered waits while finishing command result processing in the background.
70
-
-`commandExecution.ts` now understands `openagent` shell commands with the `virtual-agent` prefix and routes them to an injected virtual command executor, enabling recursive/knowledge tasks without leaving the plan runtime. When no executor is configured the runtime emits a structured virtual-command error so plans can recover gracefully, truncating oversized arguments and pointing hosts at the `virtualCommandExecutor` hook. The agent loop now wires a default in-process executor that spins a scoped pass sequence and reports the collected assistant messages as the command result, so virtual commands behave like sub-agents by default. The executor defaults to 10 passes when callers omit a limit and now honors higher requested limits without imposing an artificial ceiling.
70
+
-`commandExecution.ts` now understands `openagent` shell commands with the `virtual-agent` prefix and routes them to an injected virtual command executor, enabling recursive/knowledge tasks without leaving the plan runtime. When no executor is configured the runtime emits a structured virtual-command error so plans can recover gracefully, truncating oversized arguments and pointing hosts at the `virtualCommandExecutor` hook. The agent loop now wires a default in-process executor that spins a scoped pass sequence and reports the collected assistant messages as the command result, so virtual commands behave like sub-agents by default. The executor defaults to 10 passes when callers omit a limit and now honors higher requested limits without imposing an artificial ceiling. Virtual command results now consolidate the final assistant message with the recorded command observations so hosts receive a readable summary and the underlying stdout/stderr payloads instead of a bare command log.
71
71
-`passExecutor.ts` explicitly treats human command rejections as a successful pass result, and the pass executor suite now includes a regression test to ensure the loop continues after vetoes.
72
72
-`passExecutor/planRuntime/` now hosts dedicated helpers (`stateMachine/`, `initialization.ts`, `finalization.ts`, `idleHandlers.ts`, `effects.ts`, `persistence.ts`, `persistenceCoordinator.ts`, `runtimeController.ts`, `observationRecorder.ts`, `reminderController.ts`) so `planRuntime.ts` delegates mutations, persistence, and reminder tracking to focused modules. The runtime methods now return discriminated-union results with explicit side-effect descriptors that callers commit via `applyPlanRuntimeEffects`, shrinking the core class dramatically.
73
73
- Persistence/plan state bridging helpers now live in `passExecutor/planRuntime/persistenceEffects.ts`, so initialization, idle-handling, and finalization modules compose persistence warnings/snapshots without hand-rolled duplication.
0 commit comments