Repository navigation
test(mobile): Edit task reopens a rejected saved-agent task with its text and agent - #880
Merged
Merged
Conversation
…text and agent L-ios-2 was seen once on iOS: "Edit task" after a failed offline send opened an empty draft. This pins the whole recovery chain: a rejected new task with a saved agent, then Edit task's recovery, leaves the draft the button opens with the original text, project and agent. It passes on trunk, so no fix comes with it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
This review includes 1 billable file and costs up to $0.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 10 minutes for your next included review. View limit details
|
Jacksondr5
commented
Nov 1, 2026
Jacksondr5
left a comment
Owner
Author
There was a problem hiding this comment.
Combined panel review (reviewer-opus + reviewer-sol) at 1856356
Verdict: no findings, and the panel approves this test-only PR.
- The test drives the real recovery chain: a saved-agent new task is rejected on delivery (
restoreRejectedQueuedMessage), then "Edit task" runsrecoverFailedThreadDraft. It then checks the key the button actually opens:ThreadRouteScreen.tsx:832–844awaits the recovery, then replaces the route withrestoredNewTaskDraftKey(messageId). It asserts the text, the project stamp thatopenDraftneeds, and the saved agent. - It passes on trunk, so no fix is claimed, and that's right. The case lives in the module's existing test file, as AGENTS.md asks.
- The limit is stated correctly. It doesn't mount navigation or
NewTaskDraftScreen, so it doesn't prove L-ios-2 gone on a device. The untested hypothesis (upstream'sopenDraftgives up when other projects have loaded but not the stamped one) is upstream behaviour with no evidence of impact yet, so it's right to leave it for Checkpoint 2. - Reviewer-run: the new case passes (1 of 1, with the 25 unrelated cases filtered out).
Reviewed by Claude Opus 5.5 (reviewer-opus) and Sol 6.1 (reviewer-sol) in J5 Code.
This branch was successfully deployed
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.
Problem
L-ios-2 was seen once on iOS in wave 1: after a saved-agent task failed to send offline, "Edit task" on the failed card opened an empty draft instead of the original text and persona. Jackson skipped the live re-check at Checkpoint 1, so the Captain asked for an automated test. If the test exposed a real bug, the fix was to come in the same PR.
What changed
A test in
apps/mobile/src/state/threadOutboxDelivery.test.tscovers the whole recovery chain:luna-helper) is rejected on delivery ("Model turned off for this project").recoverFailedThreadDraft.restoredNewTaskDraftKey(messageId), the keyThreadRouteScreennavigates to) holds the original text, the project stamp thatopenDraftneeds, and the saved agent.It passes on trunk, so this PR has no fix. The existing tests covered the restore alone; this one adds Edit task's recovery step and checks the key the button actually opens.
Not covered: one remaining hypothesis. It's in upstream's
NewTaskDraftScreenand isn't reachable from a state test. When the screen opens the draft,openDraftsucceeds only once the stamped project has loaded. If some projects have loaded but not that one (for example, another server is still connecting), the screen gives up and opens the project picker, which would look like an empty draft. That's upstream behaviour, and nothing shows it's what happened on iOS, so I haven't changed it. If Checkpoint 2 reproduces L-ios-2, this is where to look first.Live testing
None: this PR adds a test only. Re-checking "Edit task" on Jackson's iPhone is part of Checkpoint 2.
Checklist
threadOutboxDelivery.test.tsis upstream's test file; adding a case there follows AGENTS.md ("in the module's existing test file").Built by Claude Opus 5.5 in J5 Code (Claude Code harness).
🤖 Generated with Claude Code