Skip to content

feat: with postAlerts on, the daemon posts the findings behind an alert to the pull request, prefixed, and keeps the pull request as the reviewer's - #107

Merged
fiddur merged 2 commits into
developfrom
inbox-post-alerts
Sep 8, 2026
Merged

feat: with postAlerts on, the daemon posts the findings behind an alert to the pull request, prefixed, and keeps the pull request as the reviewer's#107
fiddur merged 2 commits into
developfrom
inbox-post-alerts

Conversation

@fiddur

@fiddur fiddur commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

PR B of #101. With the new postAlerts setting on, the daemon posts the findings the agent named behind an ALERT to the pull request as soon as the review is prepared — one COMMENT review in your name, its body the alert reason and every inline comment opening with postPrefix, at most once per head. A path alert (alertPaths) posts nothing. The post is the daemon's own gh call after the agent has finished; the agent still never gets your credentials.

Those findings are marked as sent in the prepared session (new hidden diffity agent mark-posted), travel that way in the bundle (BundleThread.posted), and so are left out of your own submit. A submitted review withdraws the review request, so a row the daemon posted to is reconciled as if the search still listed it: it stays openable, a push re-prepares and posts again at the new head, a dismissal holds, and your own review moves it to Handled. A failed post is logged and leaves the review prepared with its alert showing.

Also: auto_posted_* on inbox_prs, the posted card says "posted to the pull request · HH:MM" with the review URL in its hover, the tab notification says so too, and the README's "never posts" paragraph is rewritten.

To try it: turn on "Also post the alert findings to the pull request" in the inbox page's Settings, with words in "Notify me if", and bump a pull request the agent will flag.

Closes #101

🤖 Generated with Claude Code

https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w

fiddur and others added 2 commits September 8, 2026 17:19
…rt to the pull request, prefixed, and keeps the pull request as the reviewer's

Turn `postAlerts` on and the daemon puts the findings the agent named as the
reason for an alert on the pull request itself, the moment the review is
prepared: one COMMENT review in the reviewer's name, its body the alert reason
and each inline comment opening with `postPrefix`, at most once per head. A
path alert posts nothing, and the post is the daemon's own `gh` call after the
agent has finished — the agent still never gets the reviewer's credentials.

The posted findings are marked as sent in the prepared session (a hidden
`agent mark-posted`), travel that way in the bundle, and are left out of the
reviewer's own submit. A submitted review withdraws the review request, so a
row the daemon posted to is reconciled as though the search still listed it: it
stays openable, a push re-prepares and posts again at the new head, a dismissal
holds, and the reviewer's own review moves it to Handled. A post that fails is
logged and leaves the review prepared with its alert.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bwp5QefjsjMFeq6CK6cT6w
…wer but not the pull request

The reason alone goes to the author only for an alert that named no findings,
which is all there is to say about it. When the agent named findings and none
of them is open by the time the review goes out — the checking pass dismissed
them — nothing is posted: the pull request would otherwise carry an alert whose
whole basis has just been rejected. The row still shows the alert, so the
reviewer decides what to do with it.

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 15:31
@fiddur
fiddur merged commit d523553 into develop Sep 8, 2026
2 checks passed
@fiddur
fiddur deleted the inbox-post-alerts branch September 8, 2026 15:32
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.

Inbox: Auto-commenting

1 participant