Repository navigation
feat(mobile): an Owner keeps or removes a Crew's kept worktrees from the Inbox - #1037
Conversation
…the Inbox The phone listed a worktree cleanup read-only and sent the Owner to web or desktop. It now answers it as web does: Keep all, or pick worktrees (or Select all) and Remove selected after a confirmation that says uncommitted changes are discarded and branches kept. The item then shows what was removed, kept, skipped or failed, and decided cleanups join the Answered shelf. Which items stay in place after an answer moves from web's hook into client-runtime, so both clients share it and it has a test. Closes #1013 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Panel review: reviewer-opus and reviewer-sol, at 0920329Verdict: approve once one small fix lands. Should fixDecided cleanups are missing from the Inbox notices (
Checked and fine
Left as isThe Remove button says "Removing…" while Keep all is pending. Web says the same, so mobile follows web. Checks run on the PR head
The tester's device pass is still to come. — Claude Opus 5.5 (reviewer-opus) and GPT 6.1 Sol (reviewer-sol), J5 Code |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Panel re-check at db9e1d6: approved. The one should-fix is resolved. The decided cleanup sources now feed the Inbox notices, so a failed read or reread shows its notice. The delta is only those two lines. Mobile typecheck is clean and — Claude Opus 5.5 (reviewer-opus) for the panel with GPT 6.1 Sol (reviewer-sol), J5 Code |
Problem
On the phone, an Owner's worktree cleanup item was read-only (#991): it listed the worktrees a Crew's archive kept and sent the Owner to web or desktop to keep or remove them. Jackson chose the full flow on the phone. Closes #1013.
What changed
The mobile item now answers as web does (Inbox definition, Worktree cleanup):
It's Owner-only through the existing
answerCrewWorktreeCleanupcommand and its permission atom. A session that can't answer sees web's "only an Owner of this server can answer" line, with the actions disabled. No server change. There's noMenuand no new modal, so Android's Menu-behind-Modal problem doesn't arise; the confirmation is the platform alert.Which items stay in place after an answer (
placeWorktreeCleanups) moves from web's hook into client-runtime, so both clients share it, with a test. Web's behaviour is unchanged.Docs (for the wave docs PR)
docs/j5/product/features/inbox.mdline 38: replace "An Owner's worktree cleanups are listed read-only there and finished on web or desktop." with "An Owner answers worktree cleanups there as on web: keep all, or pick worktrees and remove them after a confirmation, then see what was removed, kept, skipped or failed."inbox.mdHistory: "- — the mobile Inbox answers an Owner's worktree cleanups as web does: keep all, or remove the picked worktrees after a confirmation, with the result in place (Jackson, #1013)."docs/j5/user/personas.mdline 123: replace "On the mobile app the item is read-only: finish it on web or desktop." with "On the mobile app, removing asks you to confirm first."UI changes
iOS
A one-worktree cleanup, expanded:
A two-worktree cleanup, expanded:
Worktrees picked:
The confirmation before removing:
After Keep all, kept in place:
After Remove selected: one removed, one skipped as changed:
Both answered cleanups on the Answered shelf:
A Viewer session: no access to the server's Inbox items:
A Collaborator session: no cleanup item:
iOS after (played at 2× speed): Keep all, picking, Cancel then Remove, the results, and the Answered shelf:
ios-cleanup-owner-flow-2x-after.mp4
Android
The Inbox with the filed cleanup:
The cleanup expanded, with its actions:
All three worktrees picked, with Select all disabled:
The confirmation before removing:
Cancel keeps the two picked rows:
One removed, one kept and one skipped, in place:
The mixed result on the Answered shelf after reopening the Inbox:
A Viewer session's Inbox, with no cleanup:
Live testing
iOS: PASS at
db9e1d631dagainst base2d3250db7c(crew tester, reporttest-reports/pr-1037/ios-db9e1d631d.md). Real Haiku Crew archives filed the cleanups.Not exercised on iOS: a failed removal, the already-answered refusal, and a failed read of answered cleanups. These need a forced failure or a second device in a race. The "only an Owner can answer" line wasn't reachable with normal grants either: non-Owners don't get the item at all.
Android: PASS at
db9e1d631dagainst base2d3250db7c(crew tester, reporttest-reports/pr-1037/db9e1d631d.md, stills only because recording is broken, #1034). A real Haiku Captain with three Haiku workers, each leaving an uncommitted file in its J5 worktree. The archive filed all three, and one file was changed after filing.Not exercised on Android: a second Keep all item (Keep all passed on iOS), the already-answered race, a forced failure to read answered cleanups, dark theme, and offline.
Checklist
placeWorktreeCleanups(client-runtime)Claude Opus 5.5 in J5 Code (Claude Code harness).
🤖 Generated with Claude Code