You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Selected results / 已选择结果 row at the bottom of the Desktop Agent Graph panel wraps instead of staying on one line.
At the panel's full measure min(680px, calc(100% - 32px)) with no narrowing at all, Selected results already wraps to two lines when the code sibling holds two graph_record_* ids. The span label has no flex-shrink: 0 / white-space: nowrap, so it shrinks to min-content as soon as the code is long enough. zh is the louder symptom(one character per line), en wraps to two lines — same shrink, not a separate zh-only case. Captured at both 430px and 980px in fix(desktop): keep Agent Graph results label from shrinking #3970.
Root cause in apps/desktop/src/renderer/agent-graph-panel.tsx:484:
code is a single-line graph_record_xxx, graph_record_yyy with white-space: nowrap. The span defaults to min-width: auto; flex: 0 1 auto without white-space: nowrap. Under flex shrink the label collapses to min-content (one character for scripts without break opportunities), producing the vertical layout.
This affects all locales. The current shipped locales in packages/core/src/ui-locale.ts are ['zh', 'en'] (UI_LOCALES), and the panel only branches on locale === 'zh'. The mechanism holds for any script without break opportunities, but the observed cases are zh and en only.
How to reproduce
Start Desktop and trigger a task that produces an Agent Graphfinish (--graph or TUI /graph <task>) so snapshot.finish.resultIds contains two or more long graph_record_* ids.
Open the session and look at the Selected results row at the bottom of the panel.
At the default width min(680px, calc(100% - 32px)) with no resize, the label already wraps. Narrowing is not required for en; two ids are sufficient at 680px. zh shows the vertical per-character wrapping, en shows a two-line wrap.
Stable reproduction, no specific model required. Reproducible at both 430px and 980px (see #3970).
Environment
Maka version or commit: c66846ddb (fix/shell-run-legacy-visibility-tolerance branch, 2026-08-27)
OS and version: Linux
Surface: Desktop
Node.js version: >=22.19.0 (when running from source)
Logs, screenshots, or additional context
Screenshot:
Expected: span stays on one line, code takes the remaining space with ellipsis. Suggested fix:
What happened
The
Selected results / 已选择结果row at the bottom of the DesktopAgent Graphpanel wraps instead of staying on one line.min(680px, calc(100% - 32px))with no narrowing at all,Selected resultsalready wraps to two lines when thecodesibling holds twograph_record_*ids. Thespanlabel has noflex-shrink: 0/white-space: nowrap, so it shrinks tomin-contentas soon as thecodeis long enough.zhis the louder symptom(one character per line),enwraps to two lines — same shrink, not a separatezh-only case. Captured at both 430px and 980px in fix(desktop): keep Agent Graph results label from shrinking #3970.Root cause in
apps/desktop/src/renderer/agent-graph-panel.tsx:484:paired with
apps/desktop/src/renderer/styles/agent-graph.css:40:codeis a single-linegraph_record_xxx, graph_record_yyywithwhite-space: nowrap. Thespandefaults tomin-width: auto; flex: 0 1 autowithoutwhite-space: nowrap. Under flex shrink the label collapses tomin-content(one character for scripts without break opportunities), producing the vertical layout.This affects all locales. The current shipped locales in
packages/core/src/ui-locale.tsare['zh', 'en'](UI_LOCALES), and the panel only branches onlocale === 'zh'. The mechanism holds for any script without break opportunities, but the observed cases arezhandenonly.How to reproduce
Agent Graphfinish(--graphor TUI/graph <task>) sosnapshot.finish.resultIdscontains two or more longgraph_record_*ids.Selected resultsrow at the bottom of the panel.min(680px, calc(100% - 32px))with no resize, the label already wraps. Narrowing is not required foren; two ids are sufficient at 680px.zhshows the vertical per-character wrapping,enshows a two-line wrap.Stable reproduction, no specific model required. Reproducible at both 430px and 980px (see #3970).
Environment
c66846ddb(fix/shell-run-legacy-visibility-tolerancebranch, 2026-08-27)Logs, screenshots, or additional context
spanstays on one line,codetakes the remaining space withellipsis. Suggested fix:apps/desktop/src/renderer/agent-graph-panel.tsx:94,484,apps/desktop/src/renderer/styles/agent-graph.css:40,174bug