Skip to content

feat(mobile): mark read or unread, mute notifications and move to status from the phone's workspace menu - #44242

Merged
AmoabaKelvin merged 5 commits into
mainfrom
feat/phone-row-menu-read-status-mute
Nov 19, 2026
Merged

AmoabaKelvin merged 5 commits into
mainfrom
feat/phone-row-menu-read-status-mute

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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
menu-dark-read.png menu-dark-unread.png menu-dark-muted.png menu-dark-status.png

Light: menu-light-read.png

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.set isUnread: 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)

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

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.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4b6f821a-e026-47ce-9b2f-68d5a9e5f568
Commits

Reviewing files that changed from the base of the PR and between ce04033 and 62ad07a.

Files selected for processing: 19

  • mobile/src/host-screen/catalog/use-host-worktree-catalog.ts
  • mobile/src/host-screen/host-screen-overlays.tsx
  • mobile/src/host-screen/workspace-actions/use-host-worktree-actions.ts
  • mobile/src/host-screen/workspace-actions/use-host-worktree-row-writes.ts
  • mobile/src/host-screen/workspace-actions/use-workspace-notification-mutes.ts
  • mobile/src/host-screen/workspace-actions/use-workspace-row-menu-actions.ts
  • mobile/src/host-screen/workspace-actions/workspace-row-menu-operations.ts
  • mobile/src/host-screen/workspace-actions/workspace-status-sheet.tsx
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/en.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
  • mobile/src/worktree/row-presentation/worktree-host-row-identity.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@AmoabaKelvin
AmoabaKelvin force-pushed the feat/phone-row-menu-read-status-mute branch from 62ad07a to 5a6372d Compare November 18, 2026 20:11

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a16f63ea-9e52-490e-b809-3b597b429e73
Commits

Reviewing files that changed from the base of the PR and between 62ad07a and 5a6372d.

Files selected for processing: 2

  • mobile/src/host-screen/host-screen-overlays.tsx
  • mobile/src/host-screen/workspace-actions/use-host-worktree-actions.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a6921658-23ac-4bea-ae54-acf3869c7588
Commits

Reviewing files that changed from the base of the PR and between 5a6372d and 79e8544.

Files selected for processing: 2

  • mobile/src/host-screen/workspace-actions/use-host-worktree-row-writes.ts
  • mobile/src/host-screen/workspace-actions/workspace-status-sheet.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@AmoabaKelvin
AmoabaKelvin force-pushed the feat/phone-row-menu-read-status-mute branch 2 times, most recently from 94f2ee4 to b574afd Compare November 18, 2026 23:42
…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.
@AmoabaKelvin
AmoabaKelvin force-pushed the feat/phone-row-menu-read-status-mute branch from b574afd to f8a2429 Compare November 19, 2026 02:14
@AmoabaKelvin
AmoabaKelvin merged commit 2932f05 into main Nov 19, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant