Description
Problem
The header of the Desktop Agent Graph panel (Agent Graph | Completed · 8/8 | Epoch selector | Stop Graph | X dismiss | ▼ collapse/expand) currently scrolls together with the content.
Panel style apps/desktop/src/renderer/styles/agent-graph.css:20:
.maka-agent-graph-panel { max-height:min(300px,36vh); overflow:auto; padding:var(--space-3); }Structure apps/desktop/src/renderer/agent-graph-panel.tsx:330:
<section class="maka-agent-graph-panel">
<header class="maka-agent-graph-heading">...</header>
<div class="maka-agent-graph-content"> {/* 8+ operators */} </div>
</section>When operators >= 6–8 (screenshot shows 8/8), each li { min-height: var(--h-control-md) } already exceeds 300px, so scrolling is inevitable. After scrolling:
- Global status (
Completed · 8/8, current/history epoch, progress) becomes invisible — violates system status visibility. - Panel-level actions (
Xdismiss,▼collapse,Stop Graph, epoch switch) are only reachable after scrolling back to the top, increasing interaction cost. - When reading
Selected resultsat the bottom, users lose context about which graph epoch they are viewing.
This is a usability defect, not a preference. The header is chrome, not content, and should not participate in scrolling.
Desired outcome
The Agent Graph header stays pinned at the top of the panel; only maka-agent-graph-content scrolls:
- While scrolling the list,
Completed · 8/8, the epoch selector,X/▼remain visible and clickable. - Visually the header is separated from content (
background: var(--surface-raised)opaque,border-bottom/shadowappears on scroll). - Collapsed state (
data-collapsed="true") keeps its current behavior.
Expected structure: panel { display:flex; flex-direction:column; overflow:hidden } + content { overflow:auto; min-height:0 }, or equivalently header { position:sticky; top:0; z-index:1 } with opaque background. Either works; the latter is the minimal change to the current overflow:auto, the former matches the standard card pattern.
Alternatives or workarounds
- Current workaround: manually scroll back to the top — no alternative.
- Considered: keep current behavior only for long lists, but 6+ operators is the common case (concurrent graphs), so a threshold is meaningless.
- Not adopted: make the entire conversation stream scroll instead of the panel — breaks the hierarchy between conversation and Graph.
Logs, screenshots, or additional context
- Screenshot (same panel as fix(desktop): prevent Agent Graph Selected results label from shrinking to min-content #3966, 8 operators filling the
300pxmax-height, header about to scroll out of view):
The same screenshot used for #3966 illustrates the panel at capacity. With 8/8 operators the content already overflows max-height: min(300px, 36vh), so the header scrolls away on the next scroll step. A dedicated before/after capture at 430px and 980px will be added in the PR.
- Related to
Selected resultswrapping (fix(desktop): prevent Agent Graph Selected results label from shrinking to min-content #3966) — samemaka-agent-graph-panelsurface, but independent change surface; separate PR recommended. - Related files:
apps/desktop/src/renderer/agent-graph-panel.tsx:330-400,apps/desktop/src/renderer/styles/agent-graph.css:20-75 - Label suggestion:
enhancement(could bebugif judged as defect)

Activity
testikun commentedon Aug 27, 2026
I would like to take this issue.
Proposed implementation
The panel currently owns the scroll container, so the header and operator list move together. I will make the panel a bounded vertical layout and move scrolling to the content region:
.maka-agent-graph-paneltodisplay: flex,flex-direction: column, andoverflow: hidden;.maka-agent-graph-headingas a non-scrolling flex item;.maka-agent-graph-contenttomin-height: 0,flex: 1 1 auto, andoverflow: auto;data-collapsed="true"behavior by leaving the collapsed panel unconstrained and non-scrolling;This keeps the status, epoch selector, stop action, dismiss action, and collapse toggle reachable while operators or selected results overflow. It does not change graph data loading, operator ordering, or the collapsed-state interaction.
Verification plan
I will add a focused layout regression covering a long Agent Graph panel: the panel must remain bounded, the header must stay outside the scrolling content region, and scrolling the content must not move the header. I will also run the focused renderer tests, the relevant Desktop build/type checks, and the repository format/lint checks.
中文摘要:我来处理这个 issue。当前整个 Agent Graph 面板一起滚动,导致状态、轮次选择器和操作按钮滚出视口。实现上保留面板现有尺寸和视觉样式,把面板改成纵向 flex 布局,仅让
.maka-agent-graph-content滚动;header 不参与滚动。折叠态保持原行为不变,并增加长列表布局回归测试,确认面板有界、内容可滚动且 header 始终可见。[-]feat(desktop): Agent Graph 头部应固定在面板顶部而非随内容滚动[/-][+]feat(desktop): keep Agent Graph header pinned while content scrolls[/+]fix(desktop): keep Agent Graph heading visible
fix(desktop): keep Agent Graph heading visible