Web UI: Task investigation features for humans

t-153·Epic·
·
·
·Omni/Jr.hs
Created5 months ago·Updated5 months ago·pipeline runs →

Execution Summary

6/6
Tasks Completed
$0.00
Total Cost
0s
Total Time

Design

Edit

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

Child Tasks

  • t-153.1 - Show git commits for task on detail page [Done]
  • t-153.2 - Add diff view page for commits [Done]
  • t-153.3 - Display retry context on task detail page [Done]
  • t-153.4 - Store and display Amp thread URL [Done]
  • t-153.5 - Add human notes field for intervention tasks [Done]
  • t-153.6 - Add Reset Retries action button [Done]

Git Commits

15068f1eAdd Reset Retries action button
Ben Sima5 months ago1 files
be32ee30Add human notes field for intervention tasks
Ben Sima5 months ago4 files
aad0175dStore and display Amp thread URL
Ben Sima5 months ago2 files
64504c1cDisplay retry context on task detail page
Ben Sima5 months ago2 files
6eb6e669Add diff view page for commits
Ben Sima5 months ago1 files
2cec3abdShow git commits for task on detail page
Ben Sima5 months ago2 files

Timeline (1)

🔄[human]Open → Done5 months ago