Repository navigation
feat(mobile): an Owner's worktree cleanups in the Inbox, to finish on web or desktop - #991
Conversation
… web or desktop An Owner's mobile bell counted worktree cleanups that the Inbox screen couldn't show. The screen now lists each one, read-only: the worktrees a Crew's archive kept, with each one's thread, branch, uncommitted files, commits not on the default branch and pull request, and a note to keep or remove them on web or desktop. The logic moves from web to client-runtime. 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 10 billable files and costs up to $2.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 13 minutes for your next included review. View limit details
|
Jacksondr5
left a comment
There was a problem hiding this comment.
Combined review: reviewer-opus and reviewer-sol (Claude Opus 5.5 and GPT Sol 6.1), head faf845c
Both of us reviewed the PR independently. Neither found anything that blocks merge.
- Nothing on the phone can answer an item.
WorktreeCleanupsSectiononly expands a row, shows more, and opens the PR URL throughLinking. There's no keep, remove or respond command, and the note sends the Owner to web or desktop, per Jackson's decision 5 in #836. - The Owner gate is the server's alone.
clientReadRpc'scleanupsReachedreturns[]for anyone who isn't an Owner, so a non-Owner's source is ready and empty, with no error notice.readOpenInboxCountalready adds open cleanups, so the bell's count is unchanged, and its comment now says so. - Source.
worktreeCleanupSourcesAtomuses the same source input (capability andwritesNowhere) with status "open", and the inbox revision rereads it. It's joined to focus (refreshAll), pull (readInboxSources), the notices and the empty state. Project and environment data stay scoped per item. - Web. The lift of
crewWorktreeCleanup.logic.tstoclient-runtime/j5/crewWorktreeCleanup.tsis a rename.mergeWorktreeCleanupSourcessorts the fresh array fromflatMap, andorderCleanupRowsnow sorts a copy. Web's two files change only their import paths, so their behaviour is unchanged. FORK cases 101 and 102 and the export are recorded. - Tests. 83 focused tests pass: 27 runtime cleanup and Inbox tests, and 56 mobile pull, seam and dependency-graph tests.
Code approval: the panel has no open code findings. Still pending: the native captures, the tester's verdict and green J5 CI.
Problem
An Owner's mobile Inbox bell counted worktree cleanups (the server's open count includes them for an Owner), but the Inbox screen couldn't show them, so the count could have no matching item. Closes #910. Part of #836 (piece 7).
What changed
The mobile Inbox lists an Owner's open worktree cleanups, read-only, as Jackson decided in #836 (decision 5).
Reads: the same
j5.crews.listWorktreeCleanupsread web uses, open items only. The server lists them to Owners alone, so nobody else sees anything. The server's inbox revision rereads them, as do coming into view and a pull, with no timer. A server that can't be read shows its own source line.Shared logic: web's
crewWorktreeCleanup.logic.tsmoves unchanged topackages/client-runtime/src/j5/crewWorktreeCleanup.ts(export./j5/crew-worktree-cleanup), with its test. The only edits aresorton fresh copies in place oftoSorted, which Hermes lacks.Tests: the moved logic's tests come with it. The screen adds no logic of its own, so its proof is the tester's captures.
UI changes
Android, base (before) and this PR (after), with a real Haiku Crew archived with two unfinished worktrees, viewed as the server's Owner.
After: a Viewer on the same server sees no cleanup.
After: answered with Keep all on web, the item leaves the phone.
pull-after-web-keep-faf845c-after.mp4
Live testing
Android: PASS at
faf845c1d3, this PR's head, by the crew tester (Sol 6.1).The setup was a real Haiku 5.5 Crew with two workers in J5-created worktrees: one left an uncommitted file, the other a local commit, both checked with git. Archiving the Captain kept both worktrees and filed the cleanup.
Not exercised:
Upstream impact
packages/client-runtime/package.json: appends the./j5/crew-worktree-cleanupexport, recorded in FORK.md case 101 (and case 102's bell count now names the cleanups).No upstream product behaviour changes.
Checklist
packages/client-runtime/package.json, recorded in FORK.md case 101Built by Claude Opus 5.5 in Claude Code (J5 crew seat builder-identity).
🤖 Generated with Claude Code