Expand description
Task management system for RustyClaw.
Tasks are first-class entities that can be:
- Foregrounded (streaming output to user)
- Backgrounded (running silently)
- Paused/resumed
- Cancelled
Task sources include:
- Shell commands (exec)
- Sub-agent sessions
- Cron jobs
- MCP tool calls
- Long-running tools (browser, web_fetch, etc.)
Structs§
- Task
- A task with full metadata.
- Task
Handle - Handle to a running task for control and monitoring.
- TaskId
- Unique identifier for a task.
- Task
Indicator - Indicator style for chat display.
- Task
Manager - Manages all tasks across sessions.
- Task
Progress - Progress information for a task.
- Task
Thread - A task thread — an independent conversation context.
- Thread
Info - Summary info about a thread for display (unified tasks + threads).
- Thread
Manager - Manager for task threads within a session.
- Thread
Message - A message in a task thread’s conversation.
- Tool
Interaction - A tool call and its result.
Enums§
- Message
Role - Message roles.
- Task
Event - Events emitted by the task manager.
- Task
Icon - Icon representation for task status.
- Task
Kind - Kind of task — determines behavior and display.
- Task
Status - Task status with progress tracking.
Functions§
- format_
task_ icons - Format a set of tasks as icon bar (for status display).
- format_
task_ indicators - Format tasks for chat indicator line.
- format_
task_ status - Format a task status for display.
Type Aliases§
- Shared
Thread Manager - Shared thread manager.