Repository navigation
fix(web-ui): never show an unknown remote workspace status - #3886
Merged
bobleer merged 1 commit intoNov 12, 2026
Merged
Conversation
In Peer Device Mode the SSH provider only recorded a status when a per-workspace event named a remote workspace, so a peer's other remote workspaces (a hydrated list emits none) rendered "Status unknown". Ask the peer for each connection's state on Peer activation, surface switches, and any workspace change that leaves a connection without a status. A peer host that does not report SSH state keeps the mirrored connected state; an unreachable peer reads as an error. A row whose first check has not landed shows connecting instead of unknown, and the unknown label is removed. The remote pill now keeps the same dot + host shape in every state; the dot and tint carry the status and the tooltip spells it out. Previously the hover actions squeezed the host label to nothing while the status text could not shrink.
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.
Summary
Remote workspace rows in the sidebar could show "Status unknown" (状态未知), and the pill for non-connected states glitched when hovered.
Unknown status. In Peer Device Mode,
SSHRemoteProvideronly recorded a status when a per-workspace event named a remote workspace. A peer's other remote workspaces (a hydrated list emits no per-workspace events) had no status, andWorkspaceItemrendered the missing value as "unknown". The same gap showed briefly at startup before the first check finished.ssh_is_connected). It does this when Peer mode starts, when another device surface is rendered, and when any workspace change leaves a connection without a status.true→ connected,false→ disconnected.nav.workspaces.remote.status.unknownlabel is removed from all locales.Pill glitch. For non-connected states the pill appended a status text that could not shrink, while the host label could. When the hover actions narrowed the row, the host collapsed to nothing, leaving
● · 状态未知. The pill now keeps the same dot + host shape in every state, like the connected state. The dot color and pill tint carry the status, and the tooltip / aria label spell it out.Type and Areas
Type: fix
Areas: web UI (navigation sidebar, SSH remote provider), locales
Motivation / Impact
Users no longer see an unknown status for remote workspaces, including peer devices' workspaces. Non-connected rows no longer jump or lose their host label on hover. Status words are now only in the tooltip, not inline.
Remote scenarios: Peer Device Mode is the affected path. It was exercised only with simulated surfaces in unit tests, not with a live Desktop ↔ CLI or Desktop ↔ Desktop peer. Local SSH workspaces only change in the row fallback (connecting instead of unknown).
Verification
vitest run src/features/ssh-remote/SSHRemoteProvider.test.tsx src/app/components/NavPanel/sections/workspaces: passed. Three new tests cover:pnpm run type-check:web,pnpm run i18n:audit,pnpm run theme:color-audit:all: passed.pnpm run check:webfails only on an existing typography violation indesign-system/packages/ui/src/components/Dialog/Dialog.module.css:77, which this PR does not touch.src/app/components/NavPanel/sections/deviceshas 17 failing tests on unmodifiedmainas well; unrelated to this change.Reviewer Notes
AI-assisted change, lightly tested (unit/DOM fixtures only).
A CLI peer does not handle
ssh_is_connectedtoday, so for CLI peers the row stays mirrored as connected. Adding a CLI handler (plus a registry row change) would give real status there; it is left as a follow-up because it is a cross-version peer capability change.Checklist