chore: update docs + rename reset to clear

This commit is contained in:
can1357
2026-08-03 18:27:05 +02:00
parent 01c1f91ff5
commit 1a8caad23e
68 changed files with 1217 additions and 326 deletions
+7 -3
View File
@@ -218,8 +218,12 @@ When `async.enabled` is true and the call passes `async: true`, `BashTool` start
After execution:
1. A cancellation or missing exit status throws a tool error.
2. Timeout returns an error result with `details.timedOut = true` so the renderer can distinguish it from an ordinary failure.
1. A cancellation or missing exit status throws a tool error. The client-bridge
terminal route also throws `ToolError` for timeout before structured result
shaping.
2. Local non-PTY and interactive-PTY timeouts return an error result with
`details.timedOut = true` so the renderer can distinguish them from an
ordinary failure.
3. Empty output becomes `(no output)`.
4. A final inline byte cap protects routes that bypass `OutputSink`; it reuses the sink artifact when available or saves a `bash-original` artifact.
5. Truncation metadata is attached from the sink summary.
@@ -271,7 +275,7 @@ This component is wired by `CommandController.handleBashCommand()` and fed from
- Interceptor only blocks commands when suggested tool is currently available in context.
- If artifact allocation fails, truncation still occurs but no `artifact://` back-reference is available.
- Shell session cache has no explicit eviction in this module; lifetime is process-scoped.
- Timeout and cancellation are normalized across backends before result shaping: timeouts return error results with `details.timedOut`, while cancellations throw.
- Timeout shaping is backend-specific: local non-PTY and interactive-PTY timeouts return error results with `details.timedOut`; the client-bridge terminal creation/execution timeout paths throw `ToolError`. Non-timeout cancellations throw across these tool-call routes.
## Implementation files