Skip to content

Stream workspace startup logs in TaskDetailView#797

Merged
EhabY merged 4 commits intomainfrom
add-startup-logs-in-task-detail-view
Feb 19, 2026
Merged

Stream workspace startup logs in TaskDetailView#797
EhabY merged 4 commits intomainfrom
add-startup-logs-in-task-detail-view

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Feb 16, 2026

When a task's workspace is building or its agent is initializing, stream build/agent logs via WebSocket and display them in the detail view instead of "Logs not available."

  • Add LazyStream class and generalize stream functions to accept onOutput callbacks; refactor WorkspaceStateMachine to use it
  • Add streamWorkspaceLogs to TasksPanel with ANSI stripping and phase-aware stream selection (build vs agent logs)
  • Extract LogViewer/LogViewerPlaceholder shared components from AgentChatHistory; add WorkspaceLogs with dynamic headers
  • Add useWorkspaceLogs hook for log accumulation and socket cleanup
  • Add isBuildingWorkspace, isAgentStarting, isWorkspaceStarting helpers
  • Add workspace test factory with full type coverage

Closes #793

@EhabY EhabY self-assigned this Feb 16, 2026
@EhabY EhabY force-pushed the add-startup-logs-in-task-detail-view branch from f8948b6 to 77e2ed9 Compare February 17, 2026 08:22
@EhabY EhabY force-pushed the tasks/detail-view branch from 7ca195b to 1b3f642 Compare February 17, 2026 08:56
Base automatically changed from tasks/detail-view to main February 17, 2026 09:02
@EhabY EhabY force-pushed the add-startup-logs-in-task-detail-view branch 2 times, most recently from 1a28298 to e20a7bd Compare February 17, 2026 14:52
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did my best!

@EhabY EhabY force-pushed the add-startup-logs-in-task-detail-view branch from e20a7bd to aeccdf8 Compare February 19, 2026 12:12
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

When a task's workspace is building or its agent is initializing,
stream build/agent logs via WebSocket and display them in the detail
view instead of "Logs not available."

- Add LazyStream class and generalize stream functions to accept
  onOutput callbacks; refactor WorkspaceStateMachine to use it
- Add streamWorkspaceLogs to TasksPanel with ANSI stripping and
  phase-aware stream selection (build vs agent logs)
- Extract LogViewer/LogViewerPlaceholder shared components from
  AgentChatHistory; add WorkspaceLogs with dynamic headers
- Add useWorkspaceLogs hook for log accumulation and socket cleanup
- Add isBuildingWorkspace, isAgentStarting, isWorkspaceStarting helpers
- Add workspace test factory with full type coverage
@EhabY EhabY force-pushed the add-startup-logs-in-task-detail-view branch from aeccdf8 to f93eb37 Compare February 19, 2026 12:33
@EhabY EhabY force-pushed the add-startup-logs-in-task-detail-view branch from 601747d to 48d8f1b Compare February 19, 2026 12:56
@EhabY EhabY merged commit f06d76d into main Feb 19, 2026
6 checks passed
@EhabY EhabY deleted the add-startup-logs-in-task-detail-view branch February 19, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stream startup logs (workspace build and agent startup scripts) in task detail view

2 participants

Comments