Repository navigation
Fix app gaps the scenario harness reproduced - #715
Merged
Merged
Conversation
Both apps, both protocols, behind the domain adapters: - v2 `patch` tool renders as a Patch row with per-file counts, like v1 `apply_patch`. - A session deleted by another client closes its open Session Chat (v1 carries the id only in `info.id`). - An event-stream 401/403 no longer stops retries: it shows "Authentication failed" and retries on a slow backoff (5, 10, 20, then 30s) until a lease reconnects; pull-to-refresh and foreground retry now. - A pending revert from any client (v1 `session.updated` info.revert, v2 `session.revert.staged`) hides the reverted turns live and shows the revert chip; clearing brings them back (#619). Co-Authored-By: Claude Opus 5.5 <[email protected]>
ivanfenenko
commented
Oct 17, 2026
ivanfenenko
left a comment
Collaborator
Author
There was a problem hiding this comment.
Nice set of fixes. The 401/403 change in particular is a clear improvement: the stream now shows AuthFailed but keeps retrying on a slower 5–30s backoff, foreground and pull-to-refresh cut that short, and both platforms got tests for the recovery path. The session-deleted handling and the v2 patch tool chrome look good and match across Android and iOS.
One thing I'd fix before merging, inline below: on a v2 server, a session rename clears a pending revert on this device.
A v2 `session.renamed` is projected as a `session.updated` with a partial `info` (id and title only), which read as "no revert pending" and cleared the boundary while the server still had the revert staged. Only a full session `info` (with `time`, as v1 always sends) is read as a revert snapshot now. Also splits an over-long line in the Android timeline projection. Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes four gaps the scenario harness (PR #714) reproduced against real opencode v1 1.19.1 and v2
dev. Each fix ships on both apps and stays behind the domain adapters (no v1/v2 UI fork).Closes #619
What changed
patchtool showed a generic "Called patch" rowpatchmaps like v1apply_patch: Patch row, file count, per-file +/− frommetadata.filesEventDomainAdapter.sessionDeletedID(v1 carries the id only ininfo.id, v2 sendssessionID);SessionInforequests leave, so the chat returns to Homestart()no longer refuses after an auth failureEventDomainAdapter.sessionRevertUpdatereads v1session.updatedinfo.revertand v2session.revert.staged/cleared/committed. Session Chat Commands owns the boundary; the timeline hides the boundary message and later turns while a revert is pending and shows the revert chip. Clearing restores them; commit keeps today's truncateThe harness's fifth gap (a subagent's ask not reaching the parent) does not reproduce on
main: both apps show the child's approval card in the parent and child chats on v1 and v2. The Home "Needs approval" roll-up for child asks only applies tot3-experiment(#345) and is left for a separate change there.Verification
testDebugUnitTest, iOSOpenCode MobileTests(2038 tests).tool-patch-multifile(v2): Patch · 3 files +3 −5 on both appssession-deleted-from-outside: chat returns to Home, row gone, on both apps and protocolssse-auth-error-no-hot-loop: "Authentication failed" during the 30s window, one attempt per backoff step, back to live 30–40s after auth recovers, on both apps and protocolsrevert-from-outside(+clearvariant): turns 2–3 hidden with the revert chip, restored on clear, on both apps and protocols🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmithwith what you need.