Repository navigation
fix(web-ui): Name the device that runs a chat instead of "This computer" - #3997
Merged
bobleer merged 1 commit intoNov 19, 2026
Merged
Conversation
The composer's run-target chip said "This computer" even while the window controlled another device, where the task actually runs on that device. Show the executing device's name: this machine locally (its account alias, or its host name when signed out) and the controlled device on a peer surface. The generic label remains until a name is known.
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
The composer's run-target chip (the laptop chip next to workspace and branch) said "本机 / This computer" for any task that runs where the window renders. While controlling another device, that task actually runs on the controlled device, so the label was misleading.
The chip and the matching option in its menu now show the name of the device that runs the task:
The generic label remains until a name is known. The menu's section title and description now say "current device" instead of "local".
Remote scenarios
Peer Device Mode: the name follows the rendered surface. Remote workspaces and dispatch targets keep their own labels.
Verification
AI-assisted; lightly tested (focused automated tests, not exercised in the running app).
node scripts/run-vitest.mjs runonuseExecutionDeviceName.test.tsx(local name, signed-out host name, alias, peer device, unknown) andDispatchTargetPicker.test.tsx: 8 passedpnpm run i18n:auditpassed; ESLint and type checks on the changed files are cleanFollow-up to #3994.