Repository navigation
feat(ios): tool rows say what each call did and open a timeline sheet - #206602
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis PR gives native tool calls descriptive labels, groups repeated failures, and opens call details in an iOS timeline sheet. Example: A read call for synthetic.txt fails.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 5 items remain Keep this maintainer-authored draft open: the presentation improvement is worthwhile, but live-call visibility, result propagation, and file-diff inspection need repair. Reviewed head: Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe shared Apple chat UI projects Gateway history and live events into transcript rows; iOS adds grouping and sheets while macOS retains inline expansion. flowchart TD
A[Gateway history and events] --> B[Message decoder and view model]
B --> C[Transcript presentation]
C --> D[Tool labels and grouping]
D --> E[iOS transcript]
E --> F[Timeline and call details]
D --> G[macOS inline details]
Technical reviewBest possible solution: Keep the descriptive rows and sheets while preserving visible active work, recording live receipts at ingestion, and reusing existing diff inspection. Do we have a high-confidence way to reproduce the issue? The introduced failures are traceable through production source: active tail projection drops calls, incoming result events never populate the new result field, and sheet output omits diffs whenever summary text exists; no target code was executed. Is this the best way to solve the issue? The existing transcript and tool-presentation owners are appropriate, but the cutover must preserve their inspection contracts before replacing inline details. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9e9b55f127c8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +2178, Tests +1294. Total +3472 across 42 files. Added test files: 6. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 27, 2026, 6:14 AM ET / 11:14 UTC. |
8eef2f4 to
64ed9d2
Compare
…st (#207259) ## Problem `security-fast` fails on every PR based on current `main`: ``` Protocol event coverage check failed: - [ios] allowlist entry "session.tool" is now handled; remove it from scripts/protocol-event-coverage.allowlist.json. ``` #206602 (`5b4c5401`) made the iOS chat surface handle `session.tool`, but the allowlist still says iOS does not handle it. On `main`, the push CI does not reach this check, so `main` looks green. PR runs (for example, #207238) fail. ## Solution Remove the iOS `session.tool` allowlist entry. The Android entry stays: Android still does not handle the event. ## Evidence - `node scripts/check-protocol-event-coverage.mts` on `origin/main` `9c9e3c74`: the failure above. - The same check on this branch: `Protocol event coverage OK: 75 gateway events; ios handles 29, allowlists 46; android handles 26, allowlists 49.` - Local ClawSweeper on `b8041413`: patch is correct, no findings. Co-authored-by: Ayaan Zaidi <[email protected]>
…st (openclaw#207259) ## Problem `security-fast` fails on every PR based on current `main`: ``` Protocol event coverage check failed: - [ios] allowlist entry "session.tool" is now handled; remove it from scripts/protocol-event-coverage.allowlist.json. ``` openclaw#206602 (`83d7a819`) made the iOS chat surface handle `session.tool`, but the allowlist still says iOS does not handle it. On `main`, the push CI does not reach this check, so `main` looks green. PR runs (for example, openclaw#207238) fail. ## Solution Remove the iOS `session.tool` allowlist entry. The Android entry stays: Android still does not handle the event. ## Evidence - `node scripts/check-protocol-event-coverage.mts` on `origin/main` `704cd214`: the failure above. - The same check on this branch: `Protocol event coverage OK: 75 gateway events; ios handles 29, allowlists 46; android handles 26, allowlists 49.` - Local ClawSweeper on `b8041413`: patch is correct, no findings. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
On iPhone, the tool calls in a chat are hard to read. Each call shows its tool name and raw argument in monospace ("Read synthetic.txt", "Knowledge status Original pending control"). A failed call turns red. Nested calls hide behind a "Tool details" disclosure, and tapping a row expands its raw output inline in the transcript. A finished run of commands is a list of separate rows. Repeated failures to the same chat repeat the same row, and a call to another chat can show that chat's raw session key. The Control UI already says what each call did in plain words and opens the details on demand.
User Impact
This is one of a series of pull requests that bring the iOS app's chat in line with the Control UI. With this change alone, a person on iPhone sees:
Some parts still look old or are missing until later pull requests in the series:
Why This Change Was Made
A tool call matters for what it did, not for its tool name and arguments. So the row reads as a sentence, in the same words the Control UI uses (
tool-operations.json), and the arguments and result move into a sheet that opens on demand. Grouping a finished stretch into one row keeps a long turn short. Grouping repeated failures by target keeps one broken target from filling the screen.ChatCompletedWorkSummarynames a group by its kinds of work,ChatToolRepeatsmerges repeats and resolves chat names, andChatToolGroupSheetdraws the timeline and the detail page.Evidence
Built the iOS app and both test bundles with the SwiftFormat and SwiftLint build phases. The native localization inventory matched (5,045 entries);
git diff --checkpassed.On iPhone 17 Pro (iOS 27.2), all 12 tool-row and related UI cases and all 6 selected iOS unit tests passed. The 104 selected OpenClawKit tests passed.
A separate existing transcript test failed at the rendered start of a long reply sent with the keyboard closed. The runs did not establish whether the patch caused it. The original assertion remains intact.
The visual review found no material difference from the approved tool-row and detail-sheet design. The paired screenshots below use the same synthetic chat on an iPhone 17 Pro simulator in light mode. Before:
0d8e62f26004. After:64ed9d27efdb(same native inputs as the tested candidate). No live Gateway or physical device was used.Screenshots
Clean comparison
Annotated comparison
Expanded tool result