diff --git a/docs/dashboard-guide.md b/docs/dashboard-guide.md index 8b9948fa61..7096e024ef 100644 --- a/docs/dashboard-guide.md +++ b/docs/dashboard-guide.md @@ -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 `in-progress` tasks with an assigned agent session, 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 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 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: diff --git a/packages/dashboard/app/components/TaskChatTab.tsx b/packages/dashboard/app/components/TaskChatTab.tsx index dab24982f6..a603cd3752 100644 --- a/packages/dashboard/app/components/TaskChatTab.tsx +++ b/packages/dashboard/app/components/TaskChatTab.tsx @@ -29,6 +29,7 @@ interface AgentLogGroup { } const ACTIVE_STATUSES = new Set(["planning", "researching", "executing", "finalizing", "merging", "merging-fix"]); +const REVIEW_STEERABLE_STATUSES = new Set(["reviewing", "merging", "merging-fix", "fixing"]); const BOTTOM_FOLLOW_THRESHOLD = 48; function getRoleLabel(role: AgentLogRole): string { @@ -80,10 +81,12 @@ function groupEntriesByAgent(entries: AgentLogEntry[]): AgentLogGroup[] { function isActiveAgentSession(task: Task | TaskDetail): boolean { const hasAssignedAgent = Boolean(task.assignedAgentId || task.checkedOutBy); - const statusAllowsSteering = !task.status || ACTIVE_STATUSES.has(task.status); - return task.column === "in-progress" + const statusAllowsProgressSteering = !task.status || ACTIVE_STATUSES.has(task.status); + const statusAllowsReviewSteering = !task.status || REVIEW_STEERABLE_STATUSES.has(task.status); + const columnAllowsSteering = (task.column === "in-progress" && statusAllowsProgressSteering) + || (task.column === "in-review" && statusAllowsReviewSteering); + return columnAllowsSteering && hasAssignedAgent - && statusAllowsSteering && !task.paused && !task.userPaused; } @@ -250,7 +253,7 @@ export function TaskChatTab({ task, projectId, active, addToast }: TaskChatTabPr