Skip to content
refs

Add a Reasoning tab to commit history with a revisit action

Aman Kumarcommitted Oct 7, 20263f5b188parent ea7ddd9

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

  1. Chosen
  2. branch-from-beforeThrows away or forks every later commit on the ref.

Touches

  • repo-commits.tsx
  • history-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.ts
  • handles.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
4 files changed · +276 −11
apps/backend/contract/handles.ts+2 −0
apps/backend/index.ts+1 −0
apps/frontend/components/history-reasoning.tsx+198 −0
apps/frontend/routes/repo-commits.tsx+75 −11