Skip to content

feat: the agent names the findings behind an alert, and alerted pull requests sit at the top of the inbox - #106

Merged
fiddur merged 1 commit into
developfrom
inbox-alert-findings
Sep 8, 2026
Merged

feat: the agent names the findings behind an alert, and alerted pull requests sit at the top of the inbox#106
fiddur merged 1 commit into
developfrom
inbox-alert-findings

Conversation

@fiddur

@fiddur fiddur commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

What

The preparing agent can now say which findings make a pull request an alert, and the alerted ones are listed first.

  • Prompt: with alertWhen set, the agent is asked for an optional ALERT-FINDINGS: <thread id> <thread id> … line beside its ALERT: — the ids diffity agent comment printed (Created thread cf15e689), as 8-character prefixes or full uuids, spaced or comma-separated. verdictOf returns alertFindings; the last ALERT/ALERT-FINDINGS before PREPARED count, in either order, and findings without an alert are ignored.
  • Store: alert_findings TEXT on inbox_prs (JSON, migrated onto an older table, a bad value reads as none) and InboxPr.alertFindings. An alertPaths alert names none — only the agent names findings.
  • Surface: InboxView.alerted — the prepared or stale rows with an alert, most recently prepared first; ready is the rest, smallest first as before. New Alerted section above Ready on the page and in diffity inbox status, same card plus the alert text and "2 findings" on the meta line. A review the reviewer has posted still goes to Handled rather than staying alerted, and the tab notification fires from either list.

Try it

npm run build
node packages/cli/dist/index.js inbox status      # Alerted above Ready to review

Part of #101 — PR B has the daemon post those findings to the pull request.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w

…requests sit at the top of the inbox

The preparing agent can now print an ALERT-FINDINGS line beside its ALERT,
naming the inline findings that make the pull request one to look at now — by
the thread ids `diffity agent comment` printed, as 8-character prefixes or full
uuids, spaced or comma-separated. They are kept on the row in a new
`alert_findings` column, and a pull request with an alert is listed under a new
Alerted section above Ready, on the page and in `diffity inbox status`, most
recently prepared first. A posted review still takes the row to Handled, and an
alert notifies from either list.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w
@fiddur
fiddur marked this pull request as ready for review September 8, 2026 14:48
@fiddur
fiddur merged commit ca91075 into develop Sep 8, 2026
2 checks passed
@fiddur
fiddur deleted the inbox-alert-findings branch September 8, 2026 14:48
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