Repository navigation
fix(ios): keep conversation history visible during agent discovery - #198251
Conversation
Worked on by: - @mikengyn - @vyctorbrzezowski Co-authored-by: mikengyn <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 0565032c-15bc-4f97-aaaf-9c91f4cefcfe
|
🦞👀 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: needs maintainer review before merge. What this changesPreserve displayed messages across verified same-conversation agent discovery and alias handoffs until authoritative history replaces them. Example: The displayed conversation changes from main to agent:main:main while replacement history is pending.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR provides a focused, maintainer-backed fix for conversation blanking that remains possible on current main; no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe iOS presenter replaces transport-backed shared chat models during agent discovery; the shared model reconciles Gateway history, cached display rows, and durable outbox messages for the native transcript. flowchart TD
A[iOS agent discovery] --> B[Chat presentation owner]
B --> C[Gateway and account identity check]
C --> D[Shared transcript owner]
E[Accepted canonical identity] --> D
D --> F[Retained display rows]
G[Fresh Gateway history] --> D
F --> H[Native chat transcript]
D --> H
Technical reviewBest possible solution: Retain only verified same-conversation display rows through the existing transcript owner while fresh history restores live state and replaces the display. Do we have a high-confidence way to reproduce the issue? Current main visibly clears session-owned rows or replaces the presentation model during these transitions, and the inspected earlier native comparison demonstrates the resulting blank transcript. Is this the best way to solve the issue? The patch uses the existing presenter and transcript owners, preserves routing isolation, excludes outbox-owned rows from transfer, and lets authoritative empty history remove retained display. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6ba51132e323. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +65, Tests +294. Total +359 across 6 files. Added test files: 0. 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. Review metrics
LabelsLabel 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 HistoryReview history (1 earlier review cycle)
Reviewed November 16, 2026, 10:07 PM ET / November 17, 2026, 03:07 UTC (Revision 2). |
Baseline-Refresh: 6aa14bf052cd1f0910eb993f416a062241448479
|
Maintainer integration updated against current main, preserving the newer streaming, send, outbox and authority owners. The iOS app builds; all 4 ChatSendHydrationTests cases and 211 shared tests across 5 suites pass. The shared package manifest was intact, with no exclusions or overlays. All six tested source files match dcdd2de byte-for-byte; strict lint/format and a fresh independent review pass. The description now separates this integration's test results from the retained earlier native before/after captures and their disclosed runtime limits. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
…penclaw#198251) * fix(ios): keep conversation history visible during agent discovery Worked on by: - @mikengyn - @vyctorbrzezowski Co-authored-by: mikengyn <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 0565032c-15bc-4f97-aaaf-9c91f4cefcfe * fix(ios): preserve current history owners during display handoff * test(ios): format transcript hydration coverage --------- Co-authored-by: mikengyn <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Related: #159404
What Problem This Solves
An already displayed conversation can become empty while iOS resolves its default agent or replaces a presentation alias with the same canonical conversation.
User Impact
Previously displayed replies remain visible during a verified same-conversation handoff. Unknown or different Gateway, account, agent, or conversation identities still clear the old display, and fresh empty history removes retained rows.
Why This Change Was Made
The iOS presenter verifies matching Gateway/account/ingress inputs. The transcript owner compares the canonical key and agent recorded by accepted history with the resolved destination. Only display rows survive; live authority, cursor, run ownership, outbox mappings, permissions and capabilities do not transfer. Drafts and durable outbox entries retain their existing owners. No schema, configuration, dependency, or animation change.
The maintainer integration preserves current main's asynchronous history decoding, synchronous foreground question expiry, run-scoped streaming retirement, local-send revision and attachment/question authority guards. Only the display handoff is added to those current owners.
Evidence
Before / after: canonical-alias handoff
These captures are from base 0633f25 and the original candidate d240ab4 with the previously recorded mechanical repair. They are not new runtime captures of the integrated published head.
Proof limits
Fresh late-agent/config launch hydration and a real different-owner runtime control were not completed; the owner and history tests cover those contracts. This PR does not claim scroll-position continuity across presenter replacement or CPU, memory, or latency improvements. It keeps transcript rows visible, not the separate reader-position state.
Contributor credit
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by