ui/widgets/task_detail_views
library
Functions
-
formatToolUseSummary(String name, dynamic input)
→ String
-
Format a compact tool use summary for remote sessions.
Port of formatToolUseSummary() from RemoteSessionDetailDialog.tsx.
-
getTaskStatusColor(TaskStatus status, {bool isIdle = false, bool awaitingApproval = false, bool hasError = false, bool shutdownRequested = false})
→ Color
-
Returns the appropriate semantic color for a task based on status and flags.
Port of getTaskStatusColor() from taskStatusUtils.tsx.
-
getTaskStatusIcon(TaskStatus status, {bool isIdle = false, bool awaitingApproval = false, bool hasError = false, bool shutdownRequested = false})
→ IconData
-
Returns the appropriate icon for a task based on status and state flags.
Port of getTaskStatusIcon() from taskStatusUtils.tsx.
-
isTerminalStatus(TaskStatus status)
→ bool
-
Returns true if the given task status is terminal (finished).
Port of isTerminalStatus() from taskStatusUtils.tsx.
-
renderToolActivity(ToolActivity activity)
→ String
-
Format a tool use activity into a human-readable string.
Port of renderToolActivity() from renderToolActivity.tsx.
-
Returns true when BackgroundTaskStatus would render nothing because the
spinner tree is active and every visible background task is an in-process
teammate. Port of shouldHideTasksFooter() from taskStatusUtils.tsx.