Skip to content

feat(sidebar): show app-attested changes since last visit - #371

Merged
johannesjo merged 5 commits into
mainfrom
task/attention-list-what-changed-since-last-look-d72fdf
Nov 13, 2026
Merged

johannesjo merged 5 commits into
mainfrom
task/attention-list-what-changed-since-last-look-d72fdf

Conversation

@johannesjo

Copy link
Copy Markdown
Owner

Review rows in the sidebar "Needs you" list now show what changed since you last had the task open: new commits · rating outdated · verify failed · checks failed.

Why: the list says which task needs you, but not whether the evidence behind a review moved since you last looked. The line uses only data the app itself observed. The agent's self-reports (verification, plan, finish items) are deliberately not inputs.

What

  • New persisted Task.lastVisit { at, headSha, codeFingerprint }. It's stamped when a task becomes active and again when you leave it (src/store/task-visits.ts, same pattern as previous-task.ts).
  • changesSinceVisit (src/lib/task-visit.ts) reports:
    • HEAD moved since the visit.
    • A rating made outdated by code read after the visit. Re-reading unchanged code doesn't count.
    • Failures of the app's own verify run or check suite. Passes are omitted.
  • Only review rows get the line, in muted text, with its space always reserved so rows don't jump. The tooltip holds the full "Since you looked: …" sentence.

Known limits

  • "New commits" means HEAD moved, so there's no count, and a rebase or amend counts too. A count would need a rev-list IPC.
  • There's no stamp on quit: the active task is re-stamped on startup.
  • Existing tasks show nothing until they've been opened and left once.

Also on this branch (committed before this work): f1f3fb96 animate dots on the CI running label, 9168a70d move Create PR to Ctrl+Shift+H.

Verification: npm run check and the full npm test passed (pre-push hook). Unit, client and persistence round-trip tests are added. Checked in the real app with the showcase harness: the review row shows new commits · verify failed, and the question row is unchanged.

@johannesjo
johannesjo merged commit 0db6d66 into main Nov 13, 2026
3 checks passed
@johannesjo
johannesjo deleted the task/attention-list-what-changed-since-last-look-d72fdf branch November 13, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant