feat(site): show task log preview in paused and failed states#22063
feat(site): show task log preview in paused and failed states#22063
Conversation
1910361 to
33913c0
Compare
b5d251a to
2e54f1b
Compare
2e54f1b to
9c7c2f1
Compare
9313d9a to
3551eff
Compare
Documentation CheckDocumentation Enhancement RecommendedThis PR adds a user-visible UI improvement that would benefit from documentation:
Rationale: The log preview feature is fully implemented and is a significant UX improvement that users will see immediately when interacting with paused or failed tasks. Brief documentation would help users understand this feedback mechanism and know how to proceed. Implementation Details: The PR successfully implements:
Status: Re-reviewed after commit cb464bc (2026-02-19) - latest commits refined empty snapshot handling and scroll behavior, but documentation still not added. Automated review via Coder Tasks |
DanielleMaywood
left a comment
There was a problem hiding this comment.
Nice work, just one little comment about the use of useRef().current.
54643c4 to
628ae4b
Compare
|
See coder/internal#1271 (comment) for the doc content |
628ae4b to
f27765c
Compare
mafredri
left a comment
There was a problem hiding this comment.
One minor catch, but otherwise LGTM!
- Add `getTaskLogs` API method and `taskLogs` react-query query - Add `TaskLogPreview` component rendering last N lines of AI chat logs in a ScrollArea with auto-scroll-to-bottom - Show log preview below state message in paused and failed task states - Extract `useScrollAreaAutoScroll` hook shared with BuildingWorkspace - Update Storybook stories with mock task log data
… preview Add a left border to log lines with [user] and [agent] labels on type transitions. Add a snapshot timestamp tooltip to the log header. Make InfoTooltip title optional.
f27765c to
cb464bc
Compare
Shows a preview of the last 30 AI chat log messages when a task is paused or its build has failed, giving users context about what happened before the task stopped.
TaskLogPreviewcomponent with auto-scroll,[user]/[agent]group labels, and a left border on each log lineInfoTooltiptitleprop optionaluseScrollAreaAutoScrollhook shared withBuildingWorkspaceCloses coder/internal#1268