fix(display): lowercase 'ultraworker' to avoid ZWSP rendering glitch in OpenCode TUI

The agent sort shim injects zero-width space (ZWSP, U+200B) characters
into agent names for UI ordering. When the display name contains a
capital letter immediately after the ZWSP (e.g., 'Ultraworker'), the
OpenCode TUI renderer can swallow the first visible character, showing
'Sisyphus - ltraworker' (appears as 'Itraworker' in certain fonts).

Changing to lowercase 'ultraworker' avoids the rendering issue while
maintaining semantic clarity. All test assertions updated to match.
This commit is contained in:
survivor998
2026-05-11 13:13:56 +08:00
parent 29c29da3a8
commit cd39f8858e
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
* type selector dropdown. Use ` - ` (space-dash-space) instead of `(...)`.
*/
export const AGENT_DISPLAY_NAMES: Record<string, string> = {
sisyphus: "Sisyphus - Ultraworker",
sisyphus: "Sisyphus - ultraworker",
hephaestus: "Hephaestus - Deep Agent",
prometheus: "Prometheus - Plan Builder",
atlas: "Atlas - Plan Executor",