Skip to content

feat(mobile): rename a workspace from its ⋯ menu - #1007

Merged
huichen merged 2 commits into
mainfrom
feat/mobile-ws-rename
Oct 13, 2026
Merged

huichen merged 2 commits into
mainfrom
feat/mobile-ws-rename

Conversation

@huichen

@huichen huichen commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

What

The phone could create, pin and delete a workspace on the connected desktop, but not rename one — the only command-level gap in the remote catalogue (.future/remote-parity/*.md). A workspace menued by the desktop kept that name for the phone's whole session.

  • useSessionCatalog.renameWorkspace(workspaceId, name) sends the host's own rename_workspace ({ workspaceId, name }) and converges on the catalogue the host answers with, through the same versioned snapshot a set_workspace_pinned acknowledgement uses. No optimistic write: the name shown is the one the host accepted, and a refusal rejects instead of having to be rolled back.
  • The workspace ⋯ menu gains Rename workspace, opening the shared RenameModal (prefilled with the current name, titled for what it renames) — no "generate title", a workspace has no conversation to name it from and the host publishes no such operation.
  • Disabled while the desktop is unreachable or a delete is in flight, like the sibling actions; a blank name never reaches the wire (Save is closed for it, and the refusal is the host's own rule anyway).
  • No capability gate: the host routes rename_workspace unconditionally (remote_host/business/mod.rs:79) and its feature list advertises no rename feature, unlike workspace_pinning_v1 / workspace_create_v1. A test pins that down.

Verification

  • npx jest --runInBand src/remote src/screens src/i18n src/features/chat → 111 suites / 2376 tests pass
  • npx tsc --noEmit → 0; npx eslint . → 0

New tests: wire shape + accepted-name convergence, refusal/malformed reply leaving the catalogue intact, blank-name/no-connection sending nothing (useSessionCatalog.test.ts); menu entry, prefilled dialog, submission on dismissal, refusal alert, and rename offered without the pin capability (SessionList.test.ts); custom dialog title (RenameModal.test.ts).

The remote catalogue could create, pin and delete a workspace but not
rename one, so a name set on the desktop was the only name the phone
could ever show. Send the host's own `rename_workspace` and converge on
the catalogue it answers with (the same versioned snapshot a pin
acknowledgement uses — no optimistic name the host might refuse).

The ⋯ menu gains a Rename entry that opens the shared rename box,
prefilled with the current name and titled for what it renames; the
host's refusal is reported instead of leaving the draft looking saved.
@huichen
huichen enabled auto-merge (squash) October 13, 2026 03:58
@huichen
huichen merged commit 635104a into main Oct 13, 2026
12 checks passed
@huichen
huichen deleted the feat/mobile-ws-rename branch October 13, 2026 04:01
huichen added a commit that referenced this pull request Oct 13, 2026
…ay and gaps (#1019)

Bring §2.2.2 (The Desktop as a client) back in line with origin/main after the
remote-alignment round (#1007, #1009, #1010, #1012, #1013, #1014, #1015, #1017,
#1018):

- The two "mechanism, not a gap" table rows are gone: the desktop replays with
  get_events_since (falling back to one whole-page read) and probes
  get_prompt_receipt on a stored send, both as the phone does. The one remaining
  mechanism difference -- get_presence on a suspect socket vs. the presence
  subscription -- is stated in prose.
- The capability paragraph names the gains: workspace rename on the phone, and
  per-host/per-conversation drafts, the stored outbox, the done bell, question
  navigation, list search and image zoom on the desktop.
- The merged-list paragraph describes the pushed catalog: domain-tagged snapshots
  gated by {epoch, revision}, healed by the presence heartbeat, with a slow
  per-host read only as the fallback for older hosts.
- CONNECTION.zh-CN.md carries the same edits.
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