You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(mobile): mark read or unread, mute notifications and move to status from the phone's workspace menu - #44242
Design item, held for review: please don't merge until Kelvin has reviewed the design.
ELI5
The phone's workspace menu gets three things the desktop row menu already has: Mark Read / Mark Unread, Mute Notifications, and Move to Status.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
17
$\color{#1a7f37}{\Huge{\mathbf{+}}}$503
$\color{#cf222e}{\Huge{\mathbf{−}}}$79
$\color{#1a7f37}{\Huge{\mathbf{+}}}$424
What Changed
Before: the phone row menu had Source Control, Rename, Sleep, Pin and Delete.
After: the menu is Source Control, Rename, Sleep, Mark Read / Mark Unread, Mute / Unmute Notifications, Pin, Move to Status, Delete. The labels are desktop's. Move to Status opens a sheet with the desktop's status columns, and the current one is ticked.
Mechanism:
Read state and status use worktree.set (isUnread, workspaceStatus), sent to the row's owner through clientForRow, the same route pin, rename and sleep use. The row redraws right away and goes back if the host refuses. Writes to the same row field run one after another, and only the latest write's refusal undoes the row. Mark Read also sends acknowledgeAttention: true, the same whole-workspace read desktop's Mark Read does (older hosts strip that field).
Mute toggles the paired desktop's own notificationsMutedByWorktree map: the one desktop's row menu toggles, the host's phone-push filter reads, and the desktop renderer re-reads on ui:stateChanged. Each toggle reads the map fresh and then writes it back with ui.set, and toggles are queued, because ui.set replaces the whole map.
Structure: the row menu moved out of host-screen-overlays.tsx into use-workspace-row-menu-actions.ts. Read/status writes are in use-host-worktree-row-writes.ts, mute in use-workspace-notification-mutes.ts, and the status sheet in workspace-status-sheet.tsx.
Why
This follows the design recommendation for WS-L8: desktop's statuses and wording, gated on host support, and comment, multi-select and drag-reorder left out. Where the build differs from the recommendation, and why:
Move to Status isn't offered on server rows. Desktop shows a server row the server's own columns, but the phone can't read them. The desktop answers ui.get itself even when the call names a server (PAIRED_DESKTOP_METHODS). Offering the desktop's columns would write ids the server doesn't have. Adding it needs the desktop to relay a server's columns to the phone, which is a new route.
Mute is offered only when ui.get returns notificationsMutedByWorktree. Desktops from before per-workspace mute (2026-11-16) don't return it, and their strict ui.set would refuse the key, so those phones see no Mute row.
Linked Issue
Surface parity gap WS-L8 (no GitHub issue).
Visual Proof
Rendered in Chromium at phone width from the real useWorkspaceRowMenuActions hook and WorkspaceStatusSheet, fed a desktop that answers ui.get with a mute map. Before: the menu from #44206 (Source Control, Rename, Sleep, Pin, Delete).
Read row
Unread row
Muted row
Move to Status
Light:
Testing
Live three-process topology (headless orca serve, a hidden desktop paired to it, and a phone socket paired to the desktop), using a throwaway spec:
worktree.setisUnread: true, workspaceStatus: 'in-review', then isUnread: false with acknowledgeAttention: true, all routed to the server: each was accepted, and the server row read back unread true / in-review, then unread false.
ui.set { notificationsMutedByWorktree: { <id>: true } } from the phone was accepted. ui.get returned the new map, and the desktop renderer store had notificationsMutedByWorktree[<id>] === true.
mobile typecheck, focused mobile Vitest (src/test-support/rpc-recording, src/host-screen, src/i18n), pnpm check:changed, React Doctor changed-lines gate.
No tests added: the change wires existing host writes into a menu. The live topology run checks the parts that cross processes.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Risk
The riskiest part is Mute. ui.set replaces the desktop's whole mute map, so if the desktop changes its map between the phone's fresh read and its write (a round trip), the desktop's change is lost. Desktop's own writer also writes the whole map. Read/status writes are optimistic, and the next catalog read corrects them. Mixed versions:
Older desktops: no Mute row.
Older hosts: ignore acknowledgeAttention.
Back out with a plain revert.
Level: Low
AI Disclosure
Review
Two review rounds (Codex and Claude). These fixes are in the PR:
Mute reads the map fresh on each tap, and toggles are queued.
A refused row write undoes the row only if it is still the latest write, and writes to one row field run in order.
Move to Status is removed from server rows, because the phone was going to show the desktop's columns for them (see Why).
Left as is: in de/pt/ru/tr the mute labels are English, because desktop has no translation for them either.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Phone-only. No new RPC. SSH rows go through the desktop as before. Each row menu open adds one ui.get to read the mute map.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The host screen now delegates workspace row menu construction to useWorkspaceRowMenuActions. The menu includes read-state and notification-mute actions, and it can open a status sheet for eligible rows. New hooks and deferred RPC operations read and update notification mutes, worktree read state, and workspace status. Read-state and status changes update row data optimistically and restore previous values after refused or failed writes when appropriate. Locale files add labels for the new actions.
Merge Risk: Low · previous review 94f2e
The new phone workspace menu actions work, but the status sheet can show or restore an outdated status if the desktop changes it while the menu is open and the phone's write is refused. The effect is small and self-corrects on the next refresh. It is worth fixing by using the live row, but it should not block merge once the design review is done.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the phone workspace menu gains Mark Read/Unread, Mute Notifications, and Move to Status. The raw summary and objectives confirm these actions and the status sheet. The…
Description check
The description follows the template. It covers ELI5, What Changed (before/after and mechanism), Why (with the deviations from the design recommendation), Linked Issue, Visual Proof, Testing, Risk wit…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the phone workspace menu gains Mark Read/Unread, Mute Notifications, and Move to Status. The raw summary and objectives confirm these actions and the status sheet. The title is long (104 characters), but it stays on topic and specific.
Full details: Description check
Explanation
The description follows the template. It covers ELI5, What Changed (before/after and mechanism), Why (with the deviations from the design recommendation), Linked Issue, Visual Proof, Testing, Risk with a level, Review, Notes, and the checklist. The Linked Issue section names no GitHub issue, only 'Surface parity gap WS-L8 (no GitHub issue)', and the template requires an actual issue for outside contributors. The AI Disclosure section is blank. Two checklist items are unchecked: the pnpm lint/typecheck/test/build run is not confirmed. The description also says it is held for design review and must not merge until Kelvin reviews it.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 71fa96ad-c4fd-4142-9439-538044bdcb30
Commits
Reviewing files that changed from the base of the PR and between ee90259 and 94f2ee4.
Files selected for processing: 9
mobile/src/i18n/locales/de.json
mobile/src/i18n/locales/es.json
mobile/src/i18n/locales/fr.json
mobile/src/i18n/locales/ja.json
mobile/src/i18n/locales/ko.json
mobile/src/i18n/locales/pt.json
mobile/src/i18n/locales/ru.json
mobile/src/i18n/locales/tr.json
mobile/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 9
mobile/src/i18n/locales/de.json
mobile/src/i18n/locales/es.json
mobile/src/i18n/locales/fr.json
mobile/src/i18n/locales/ja.json
mobile/src/i18n/locales/ko.json
mobile/src/i18n/locales/pt.json
mobile/src/i18n/locales/ru.json
mobile/src/i18n/locales/tr.json
mobile/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
…hone's workspace row menu
Adds desktop's Mark Read/Unread, Mute Notifications and Move to Status to the
phone row menu. Read state and status are written at the row's owner like
pin and rename (a server row's status sheet lists that server's columns).
Mute toggles the paired desktop's own per-workspace mute map through ui.get
and ui.set, and is offered only when the desktop keeps one.
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
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.
Design item, held for review: please don't merge until Kelvin has reviewed the design.
ELI5
The phone's workspace menu gets three things the desktop row menu already has: Mark Read / Mark Unread, Mute Notifications, and Move to Status.
What Changed
worktree.set(isUnread,workspaceStatus), sent to the row's owner throughclientForRow, the same route pin, rename and sleep use. The row redraws right away and goes back if the host refuses. Writes to the same row field run one after another, and only the latest write's refusal undoes the row. Mark Read also sendsacknowledgeAttention: true, the same whole-workspace read desktop's Mark Read does (older hosts strip that field).notificationsMutedByWorktreemap: the one desktop's row menu toggles, the host's phone-push filter reads, and the desktop renderer re-reads onui:stateChanged. Each toggle reads the map fresh and then writes it back withui.set, and toggles are queued, becauseui.setreplaces the whole map.host-screen-overlays.tsxintouse-workspace-row-menu-actions.ts. Read/status writes are inuse-host-worktree-row-writes.ts, mute inuse-workspace-notification-mutes.ts, and the status sheet inworkspace-status-sheet.tsx.Why
This follows the design recommendation for WS-L8: desktop's statuses and wording, gated on host support, and comment, multi-select and drag-reorder left out. Where the build differs from the recommendation, and why:
ui.getitself even when the call names a server (PAIRED_DESKTOP_METHODS). Offering the desktop's columns would write ids the server doesn't have. Adding it needs the desktop to relay a server's columns to the phone, which is a new route.ui.getreturnsnotificationsMutedByWorktree. Desktops from before per-workspace mute (2026-11-16) don't return it, and their strictui.setwould refuse the key, so those phones see no Mute row.Linked Issue
Surface parity gap WS-L8 (no GitHub issue).
Visual Proof
Rendered in Chromium at phone width from the real
useWorkspaceRowMenuActionshook andWorkspaceStatusSheet, fed a desktop that answersui.getwith a mute map. Before: the menu from #44206 (Source Control, Rename, Sleep, Pin, Delete).Light:
Testing
Live three-process topology (headless
orca serve, a hidden desktop paired to it, and a phone socket paired to the desktop), using a throwaway spec:worktree.setisUnread: true,workspaceStatus: 'in-review', thenisUnread: falsewithacknowledgeAttention: true, all routed to the server: each was accepted, and the server row read backunread true / in-review, thenunread false.ui.set { notificationsMutedByWorktree: { <id>: true } }from the phone was accepted.ui.getreturned the new map, and the desktop renderer store hadnotificationsMutedByWorktree[<id>] === true.mobiletypecheck, focused mobile Vitest (src/test-support/rpc-recording,src/host-screen,src/i18n),pnpm check:changed, React Doctor changed-lines gate.No tests added: the change wires existing host writes into a menu. The live topology run checks the parts that cross processes.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Risk
The riskiest part is Mute.
ui.setreplaces the desktop's whole mute map, so if the desktop changes its map between the phone's fresh read and its write (a round trip), the desktop's change is lost. Desktop's own writer also writes the whole map. Read/status writes are optimistic, and the next catalog read corrects them. Mixed versions:acknowledgeAttention.Back out with a plain revert.
Level: Low
AI Disclosure
Review
Two review rounds (Codex and Claude). These fixes are in the PR:
Left as is: in de/pt/ru/tr the mute labels are English, because desktop has no translation for them either.
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Phone-only. No new RPC. SSH rows go through the desktop as before. Each row menu open adds one
ui.getto read the mute map.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)