Added
- Added explicit execution context mode for tool calls:
context: "fresh" | "fork"(default:fresh). - Added true forked-context execution for single, parallel, and chain runs. In
forkmode each child run now starts from a real branched session file created from the parent session's current leaf. - Added
--forkslash-command flag for/run,/chain, and/parallelto forwardcontext: "fork". - Added regression coverage for fork execution/session wiring and fork badge rendering, including slash command forwarding tests.
Changed
- Session argument wiring now supports
--session <file>in addition to--session-dir, enabling exact leaf-preserving forks without summary injection. - Async runner step payloads now carry per-step session files so background single/chain/parallel executions can also honor
context: "fork". - Clarified docs for foreground vs background semantics so
--bgbehavior is explicit.
Fixed
context: "fork"now fails fast with explicit errors when parent session state is unavailable (missing persisted session, missing current leaf, or failed branch extraction), with no silent fallback tofresh.- Fork-session creation errors are now surfaced as tool errors instead of bubbling as uncaught exceptions during execution.
- Session directory preparation now fails loudly with actionable errors (instead of silently swallowing mkdir failures).
- Async launch now fails with explicit errors when the async run directory cannot be created.
- Share logs now correctly include forked session files even when no session directory exists.
- Tool-call and result rendering now explicitly show
[fork]whencontext: "fork"is used, including empty-result responses. subagent_statusnow surfaces async result-file read failures instead of returning a misleading missing-status message.