Repository navigation
Highlights: Guard prompts against replaced sessions, improve cancellation and session recovery, preserve tool results and process failures, and clarify CLI and flow diagnostics.
Changes
- CLI: add
prompt --expect-record <id>so callers can reject a replaced named session before sending or queueing a prompt. Thanks @vincentkoc.
Fixes
-
Sessions: keep tool result text that agents report through ACP
contentblocks when they send norawOutput, so saved sessions and the embedded runtime no longer record those results as empty. Thanks @saariuslystoned. -
Runtime/embedding: keep cancellation of an already-settled turn from cancelling a later turn on the same reused session client. Thanks @saariuslystoned.
-
Sessions: keep the exit code or signal of an agent that crashes mid-turn when its stdout closes before the process exit is reported, so
statusreports the session as dead andsessions showlists the exit code. Thanks @saariuslystoned. -
CLI:
Ctrl+Con a foreground session prompt now cancels that prompt (dequeues it or sendssession/cancel) instead of leaving it running in the queue owner. Thanks @saariuslystoned. -
Sessions: wait up to 60 seconds for a newly started queue owner instead of about six, so the first prompt on a slow or heavily loaded host no longer fails with "Session queue owner failed to start". Thanks @saariuslystoned.
-
CLI: report invalid option values once in text output, and as a single
[acpx] error: USAGEline in quiet output instead of the full help plus the raw error. Thanks @saariuslystoned. -
Sessions/prune: fail with the filesystem error when a selected file cannot be deleted instead of reporting success and freed bytes. Thanks @saariuslystoned.
-
CLI: preserve the interrupted exit status while cancellation and connection cleanup settle an in-flight one-shot command. Thanks @saariuslystoned.
-
Output: keep agent stdout parse diagnostics off stderr in
--format json --json-strictand--format quiet, so strict JSON pipelines and quiet scripts no longer get a stack trace when an adapter prints a non-JSON line. Thanks @saariuslystoned. -
Flows:
flow runnow rejects an empty--input-jsonor--input-fileargument (for example an unset shell variable) instead of silently running the flow with{}. Thanks @saariuslystoned. -
ACP/terminals: identify missing executable paths and working directories in
terminal/createstartup errors while preserving the originalENOENTdetails. Thanks @KrasimirKralev. -
Sessions/import: launch an imported session with the destination's configured agent command and arguments instead of the source machine's saved launch arguments when the two commands differ. Thanks @saariuslystoned.
-
Shared runtime:
ensureSession()no longer applies a creation-timesessionOptions.modelto an existing persistent session, so reuse keeps its model and provider session instead of reconnecting. Thanks @saariuslystoned. -
Dependencies: update the guarded filesystem runtime, Commander, and development tools while retaining the ACP SDK 1.x line and existing security overrides.
-
Sessions/export: reject archives when session ownership or the saved checkpoint changes during capture, preserving existing output files. Thanks @saariuslystoned.
-
Flows: reapply and verify pinned model and configuration choices when the initial connection dies before the first prompt. Thanks @saariuslystoned.
-
Output: skip malformed embedded resource metadata without losing later text or completion events. Thanks @saariuslystoned.
-
Flows/JSON: preserve literal backticks inside fenced JSON strings and keys. Thanks @saariuslystoned.
-
Runtime: reject overflowing in-process timeouts and shared-session idle TTLs before admitting session work. Thanks @saariuslystoned.
-
Shared sessions: retain each turn's request identity when callers reuse the input object, so cancellation targets the original turn. Thanks @saariuslystoned.
-
Sessions/watch: keep read contents suppressed when opposite-direction requests reuse an RPC ID. Thanks @saariuslystoned.
-
Sessions/list: preserve accepted opaque pagination cursors without trimming them. Thanks @saariuslystoned.
-
CLI: identify missing or non-file prompt, flow, and flow-input paths while preserving exit codes and JSON error envelopes. Thanks @KrasimirKralev.
-
CLI:
prompt,execand bareacpx <agent>now reject an empty--fileargument (for example an unset shell variable) withPrompt file must not be empty(exit 2), ascomparealready does, instead of silently reading the prompt from stdin. Thanks @KrasimirKralev. -
CLI/terminals/flows: a working directory that is a regular file (
--cwd,terminal/create, shell actions) now reportsWorking directory is unavailable: <path>instead ofENOTDIRon the project.acpxrc.jsonor a barespawn ENOTDIR. Thanks @KrasimirKralev. -
CLI: show hidden child directories with an explicit relative path in reused-session banners. Thanks @Dcastroro.
-
Dependencies: update the guarded filesystem runtime and development tools while retaining ACP SDK 1.x and the existing security overrides.
-
Sessions: keep local listing and history reads from creating a session directory in an empty home.