When you decline a command, the live execution list should tell you what happened. Reopen the conversation later and that same tool entry should still explain why the command stopped. Before AIClaw 3.12.22, the live completion event could arrive before the command result reached the journal. The history view also inferred failure from the saved tool-result text. AIClaw 3.12.22 records the approval outcome explicitly and writes the result before emitting the tool completion. Previous execution path · v3.12.22 release
Keep the reason the command stopped
The approval path distinguishes three outcomes. An explicit refusal is declined. A canceled approval wait is canceled. A failure to obtain a usable approval response is failed. The host RPC requires an explicit boolean decision. A response with a missing decision, a null response, or a non-boolean decision is treated as a host failure. This gives the tool entry a reason even when the approval dialog never produces a usable answer. Approval outcomes · Host response validation
Read the same result after reopening the chat
The agent journals the tool result with the item ID, timing, approval outcome, and text shown in the execution list. It then emits the item/completed event. The history reader uses that saved metadata to rebuild the entry. Older transcripts without an explicit approval outcome still use the existing tool-result fallback. This change concerns the result of an approval attempt. The configured approval policy still determines when the agent has to ask. Journal and completion event · History reconstruction
The Go regression test reads the stored history as soon as the command completion is emitted. It checks that the stored item has the same ID, outcome, and result text for a refusal, cancellation, and approval failure, and that the command never creates its test file. A separate host RPC test supplies malformed replies. The local agent and server suites passed with the race detector. These tests exercise the stored history and host protocol with fixtures. History regression · Malformed response regression

