Summary
The default execution timeout for chat is currently 900 seconds (15 minutes), set via `agent_ownership.execution_timeout_seconds`. Many real-world agent tasks — long research runs, multi-step code generation, batch processing — routinely exceed this, causing silent failures that look like success to the user until they notice the truncated output.
Raising the default to 3600 seconds (60 minutes) aligns with the upper bound of what agents are expected to do autonomously and removes a common friction point for new users who haven't yet discovered the per-agent timeout setting.
Context
- Schema: `agent_ownership.execution_timeout_seconds INTEGER DEFAULT 900`
- API: `GET/PUT /api/agents/{name}/timeout` (range: 60–7200s)
- Existing per-agent override is correct and should remain; this changes only the default for newly created agents
- Surfaces in both chat (`/chat`) and scheduled task execution paths — both read from the same column
Acceptance Criteria
Technical Notes
- Schema default change: `src/backend/db/schema.py` — update `DEFAULT 900` → `DEFAULT 3600`
- Migration target: `src/backend/db/migrations.py` — `UPDATE agent_ownership SET execution_timeout_seconds = 3600 WHERE execution_timeout_seconds = 900`
- No API surface change needed — range 60–7200 already covers 3600
Summary
The default execution timeout for chat is currently 900 seconds (15 minutes), set via `agent_ownership.execution_timeout_seconds`. Many real-world agent tasks — long research runs, multi-step code generation, batch processing — routinely exceed this, causing silent failures that look like success to the user until they notice the truncated output.
Raising the default to 3600 seconds (60 minutes) aligns with the upper bound of what agents are expected to do autonomously and removes a common friction point for new users who haven't yet discovered the per-agent timeout setting.
Context
Acceptance Criteria
Technical Notes