Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Version and environment (optional)
Astra 0.2.10 (MOI client bundle 2026.09.28.1), MOI developer mode (CLI + MOI-hosted Server, local tool execution), macOS 27.0 arm64, model deepseek-v4-flash
Actual behavior
I stopped the CLI with SIGTERM while it was executing a local bash call that takes 25 s and writes a file.
- The command kept running and completed. Its child shell was still running after the CLI exited, and the file was written (
marker.txtcontaineddone). - The audit reports the call as failed.
astra audit turns <session>shows thebashcall withok: false,duration_ms: 100381and the errortool_call_end did not complete successfully. Nothing user-visible says the outcome is unknown, although the side effect happened. - The run kept going without a runner. In the same turn,
list_dirandread_filecalls followed; both waited about 58 s and then failed with the same error. - The session cannot be continued.
astra chat --session-id <session> -m "..."fails withError: selected Server session <session> has no authoritative restore bundle. - The checkout stays held. Continuing a different, already completed session from the same directory fails with
Checkout temporarily unavailable: Session <session>: an execution still holds the checkout. Wait for it to finish, or stop it with astra session cancel <session> and retry.It worked only afterastra session cancel <session>.
Expected behavior
Based on docs/design/capability-provider-runtime.md ("Dispatch may have occurred → OutcomeUnknown; reconcile or request explicit decision"; "Client disconnects → Durable execution continues; reconnect replays durable bounded projections") and docs/design/durable-work-user-journey.md ("Preserve ambiguous side effects as unresolved"; "Old Session is idle in the selected checkout → Admit a fresh conversation after fenced idle-claim release"):
- A call whose dispatch may have happened is shown as outcome-unknown in the audit and in the session, not as failed.
- Once the CLI runner is gone, the run stops sending new calls to it and settles with a clear reason instead of waiting for each call to time out.
- The session can be continued after reconnecting, or the CLI explains how to recover it.
- The checkout is released when the run settles, so other sessions in the same directory are not blocked.
Steps to reproduce
-
In a scratch directory, run:
timeout -s TERM 20 astra chat --no-resume --permission-mode auto -m "Run this command in the current directory: sleep 25 && echo done > marker.txt, then tell me the content of marker.txt." -
After the CLI exits, confirm that
marker.txtappears a few seconds later. -
Run
astra audit turns <session>for the new session. -
Run
astra chat --session-id <session> -m "What happened to the previous command?". -
From the same directory, continue another session with
astra chat --session-id <other-session> -m "...".
Additional information
- The original prompt was in Chinese with the same meaning.
- Session IDs are available to maintainers on request.
- Possibly related: [Bug]: Follow-up turn fails with canonical WAL durable-base mismatch after an incomplete tool turn #812, fix(runtime): converge cancellation before reporting checkout reuse readiness #821.
Activity
XuPeng-SH commentedon Oct 20, 2026
PR #1051 improves bounded child-process cleanup and #1064/#1079 cover explicit SIGINT/interactive cancellation, but this report's trigger is SIGTERM. Those changes do not establish that SIGTERM stops further tool dispatch, records an honest unknown outcome, settles the run, releases checkout ownership, and leaves the Session resumable. Keep this open for a deterministic SIGTERM public-process regression across those canonical lifecycle facts; do not treat process exit or child cleanup alone as proof of settlement.