Repository navigation
feat(mobile): rename a workspace from its ⋯ menu - #1007
Merged
Merged
Conversation
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
enabled auto-merge (squash)
October 13, 2026 03:58
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.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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 ownrename_workspace({ workspaceId, name }) and converges on the catalogue the host answers with, through the same versioned snapshot aset_workspace_pinnedacknowledgement uses. No optimistic write: the name shown is the one the host accepted, and a refusal rejects instead of having to be rolled back.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.rename_workspaceunconditionally (remote_host/business/mod.rs:79) and its feature list advertises no rename feature, unlikeworkspace_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 passnpx tsc --noEmit→ 0;npx eslint .→ 0New 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).