Normalize shell and patch tool cards
This commit is contained in:
1 parent
4dc3e3d784
commit
b507656abd
11 files changed
+327
-16
No files matched your search
@@ -114,6 +114,12 @@ seq N", so there is no separate history path to drift from the live one.
|
||||
by drivers**, so every device renders the conversation from one stream.
|
||||
- `AssistantText { delta }` — streaming text, rendered as markdown.
|
||||
- `ToolStart / ToolUpdate / ToolEnd { tool, input, output }`.
|
||||
The tool vocabulary is common too (2026-09-09), not just the envelope:
|
||||
Codex's `/usr/bin/bash -lc` argv and Claude's Bash call are both
|
||||
`Bash { command }`, while Codex file changes and Claude Edit calls are both
|
||||
`Patch { diff }`. Patch success boilerplate is omitted and failures remain
|
||||
as output. This normalization belongs in the drivers, before persistence;
|
||||
the phone never decodes a provider's tool schema.
|
||||
- `Image { ref }` — saved under the session dir, fetched by URL.
|
||||
- `Question { id, prompt, options }` — anything needing a human. Claude's
|
||||
AskUserQuestion and permission requests (canUseTool) are the same shape;
|
||||
|
||||
Reference in new issue
Block a user