Add a Reasoning tab to commit history with a revisit action
The history page now has Commits and Reasoning tabs. The Reasoning tab lists every decision on the page, newest first, and marks the ones a later decision supersedes. A reviewer can open a decision and revisit it: refs creates a task that tells an agent to start from the head of the ref, carry the change through every later commit that builds on the decision, and record a decision that supersedes it. A new task now delivers its description to the agents it mentions, as editing the description already did.
3 decisions
Revisiting a decision on a ref creates a task that reworks it on top of the ref's head and supersedes the old decision, instead of branching from the commit before it.
Why
- Later work on the ref is kept; the agent carries the change through it
- The superseding decision closes the loop in the existing reasoning views
Paths considered
- Chosen
- branch-from-beforeThrows away or forks every later commit on the ref.
Touches
repo-commits.tsxhistory-reasoning.tsx
createTask delivers its body to the live agent sessions it mentions and takes an assign flag.
Why
- Task.describe already delivers mentions, so a new task silently dropping them was inconsistent
- The revisit flow needs a new task to reach the mentioned agent
Touches
index.tshandles.ts
The history Reasoning tab resolves supersedes only within the loaded page of commits.
Why
- A server-side decision index does not exist yet
Assumes
- A decision and the one that supersedes it are usually within 30 commits of each other