Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Summary
Manual task executions from the Tasks panel have no UI control for timeout duration. The backend already supports timeout_seconds on the /api/agents/{name}/task endpoint (default 900s), and the scheduling UI (SchedulesPanel) has a timeout input field — but the manual execution form in TasksPanel always uses the default with no way for users to override it.
Current Behavior
- Scheduling UI (
SchedulesPanel.vue): Has a timeout input field (default 900s / 15 min) that users can adjust per schedule - Manual execution UI (
TasksPanel.vue): No timeout control — always sends the default - Backend API (
POST /api/agents/{name}/task): Already acceptstimeout_secondsparameter viaParallelTaskRequestmodel
Desired Behavior
Add a timeout control to the manual task execution form in TasksPanel.vue, consistent with how scheduling already handles it:
- Add a timeout input field (dropdown or number input) to the task submission form
- Use the same default (900s / 15 min) as scheduling
- Pass the user-selected timeout as
timeout_secondsin the API request - Consider common presets: 5m, 10m, 15m (default), 30m, 1h, 2h
Key Files
| Component | File | Notes |
|---|---|---|
| Manual task UI | src/frontend/src/components/TasksPanel.vue |
Needs timeout input added to form |
| Schedule UI (reference) | src/frontend/src/components/SchedulesPanel.vue |
Has working timeout control to mirror |
| Backend model | src/backend/models.py |
ParallelTaskRequest.timeout_seconds already exists |
| Backend endpoint | src/backend/routers/chat.py |
execute_parallel_task() already handles timeout |
| Agent execution | docker/base-image/agent_server/services/claude_code.py |
Enforces timeout via asyncio.wait_for |
Implementation Notes
- The backend plumbing is already complete — this is primarily a frontend change
- Mirror the pattern used in
SchedulesPanel.vuelines 105-108 for the timeout input - The
formatTimeout()helper inSchedulesPanel.vue(line 895) can be reused or extracted to a shared utility
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat: Add timeout control for manual task executions (Abilityai#70)
fix(brain-orb): navigate shows a note WITH its connections; flush pen…
chore(.claude): bump the submodule pointer to main (f7ff3e7 -> 60ddc16)
chore(.claude): bump the submodule pointer to main (f7ff3e7 -> 60ddc1…