Problem
When a task needs human intervention, the web UI doesn't show enough context to understand what happened. Currently you can only see:
- Task title/description
- Current status
- Retry context (if any)
Missing:
- Git commits made for this task
- Amp thread URLs that worked on it
- Activity timeline (when work started/stopped)
- Diff of changes made
- Error logs/failure reasons
Use Case
Human sees 'needs intervention' task in web UI. They need to:
1. See what work was already done (commits, diffs)
2. See why it failed (retry context, error logs)
3. See the amp thread to understand agent's reasoning
4. Decide: fix manually, provide guidance, or reassign
Features Needed
1. Git History Section
- Show commits with Task-Id: matching this task
- Link to view full diff
- Show commit message (agent's summary)
2. Amp Thread Links
- Store amp thread URL in task_activity when worker starts
- Display as clickable link on task detail page
- Multiple threads if task was retried
3. Retry Context Display
- Show current attempt number
- Show failure reason (conflict files, test errors, etc.)
- Show previous attempt history
4. Activity Timeline (already partially done via t-148)
- When task was claimed
- When amp started/finished
- When review happened
- Timestamps for each stage
5. Quick Actions
- 'View in Amp' button (opens thread URL)
- 'View Diff' button (shows git diff)
- 'Add Notes' for human to provide guidance
- 'Reset Retries' to give task fresh start