Skip to content

fix(web-ui): Name the device that runs a chat instead of "This computer" - #3997

Merged
bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:fix/composer-execution-device-name
Nov 19, 2026
Merged

bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:fix/composer-execution-device-name

Conversation

@bobleer

@bobleer bobleer commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

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:

  • local surface: this machine's account alias, or its host name when signed out
  • peer surface: the controlled device's alias or name

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 run on useExecutionDeviceName.test.tsx (local name, signed-out host name, alias, peer device, unknown) and DispatchTargetPicker.test.tsx: 8 passed
  • pnpm run i18n:audit passed; ESLint and type checks on the changed files are clean

Follow-up to #3994.

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.
@bobleer
bobleer merged commit 2215a7a into openBitFun:main Nov 19, 2026
9 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