Expand description
Canonical error message constructors.
Responsibilities:
- Provide helper functions for all “task not found” error scenarios
- Ensure consistent formatting and actionable hints
Does not handle:
- Error types (use anyhow/thiserror in consuming modules)
- I18N (messages are English-only)
Invariants/assumptions:
- All task ID parameters are non-empty trimmed strings
- Messages include actionable hints where appropriate
Functions§
- root_
task_ not_ found - Root task not found (for tree/graph commands).
- source_
task_ not_ found - Source task not found (for clone/split operations).
- task_
no_ longer_ exists - Task no longer exists (for session recovery scenarios). Used when a task was deleted during execution.
- task_
not_ found - Generic task not found (for simple cases).
- task_
not_ found_ batch_ failure - Task not found for batch operations (recorded as failure).
- task_
not_ found_ for_ edit - Task not found for edit operations with file context.
- task_
not_ found_ in_ done_ archive - Task not found in done archive specifically.
- task_
not_ found_ in_ queue - Task not found in the active queue only.
- task_
not_ found_ in_ queue_ or_ done - Task not found in either queue or done archive.
- task_
not_ found_ with_ include_ done_ hint - Task not found with hint to use –include-done.
- task_
not_ found_ with_ operation - Task not found with operation context (for QueueQueryError).