fix(webui): keep subtask details reachable in long results

Keep the current task header above its independently scrolled result, including code copy controls. Preserve selection, detail focus and reading position.

Refs NAN-364
This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-26 23:40:42 +08:00
1 parent 7e5dcb79e0
commit 23c4acc216
3 files changed
+31 -3

No files matched your search

@@ -211,7 +211,7 @@ function TaskTree({ tasks, maxHeight }: { tasks: ObservedSubagentTask[]; maxHeig
<ol className="space-y-0.5">
{tasks.map(task => <li key={task.task_id} data-task-state={task.state}
className="rounded-lg transition-colors duration-150 hover:bg-muted/50 focus-within:bg-muted/50 motion-reduce:transition-none">
<div className="flex min-w-0 items-center gap-0.5">
<div className="sticky top-0 z-20 flex min-w-0 items-center gap-0.5 bg-card">
<SubagentTaskButton task={task} surface="activity" />
{task.state === "queued" || task.state === "running" ? <HoverHint content={t("thread.subagents.stopTask", { label: task.label })}>
<Button type="button" variant="ghost" size="icon"