FN-6315: Scroll task chat to latest output
Ensure the task-details Chat transcript opens at the newest agent output without breaking live scroll-away behavior. - Track active-state transitions and initial log population to snap populated transcripts to the bottom. - Preserve existing near-bottom live-follow behavior and inactive cached scroll bookkeeping. - Cover initial desktop/mobile load, reactivation, delayed population, and empty transcript cases. - Document the updated Chat tab behavior and add a published package patch changeset. Files changed: .changeset/fn-6315-chat-scroll-bottom.md | 5 + docs/dashboard-guide.md | 2 +- packages/dashboard/app/components/TaskChatTab.tsx | 25 ++- .../app/components/__tests__/TaskChatTab.test.tsx | 182 ++++++++++++++++++++- 4 files changed, 211 insertions(+), 3 deletions(-) Fusion-Task-Id: FN-6315 Fusion-Task-Lineage: 6cd7c418-124f-4730-a533-cc866f9a16a8
This commit is contained in:
@@ -728,7 +728,7 @@ Recommended workflow: ordinary chains stay as `Blocks N` so noise stays low, hig
|
||||
|
||||
### Logs → Agent Log view
|
||||
|
||||
The **Chat** tab sits between Definition and Logs and presents a live, chat-styled transcript of task agent output. Consecutive entries are grouped by role and labeled as Planner, Executor, Reviewer, or Merger; legacy log rows without an agent role use the neutral Agent fallback. The transcript follows new live output when you are already near the bottom, but it preserves your scroll position when you review older messages. For active, assigned, non-paused agent sessions in `in-progress` or `in-review` (reviewing/merging/fixing) tasks, the composer sends guidance to the running agent through the same steering path used by comments; when no active session is available, the composer is disabled with an explanatory hint.
|
||||
The **Chat** tab sits between Definition and Logs and presents a live, chat-styled transcript of task agent output. Consecutive entries are grouped by role and labeled as Planner, Executor, Reviewer, or Merger; legacy log rows without an agent role use the neutral Agent fallback. The transcript opens at the latest output whenever the tab loads or becomes active, then follows new live output when you are already near the bottom while preserving your scroll position when you review older messages. For active, assigned, non-paused agent sessions in `in-progress` or `in-review` (reviewing/merging/fixing) tasks, the composer sends guidance to the running agent through the same steering path used by comments; when no active session is available, the composer is disabled with an explanatory hint.
|
||||
|
||||
The **Logs** tab includes an **Agent Log** subview designed for debugging long-running and tool-heavy sessions:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user