Repository navigation
fix(engine): settle inline findings from the conversation, and finish the 👀 - #71
Conversation
A conversation comment could only settle findings listed in a review body.
When someone answered an inline finding there instead of in its thread
("@appwrite read the comments - its resolved"), Hansi agreed but had no
finding to mark, so the finding, summary and review stayed as they were.
A mentioned conversation comment now names inline findings too, and the
threads of the ones it settles are resolved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC
Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
Code review
Conversation replies can settle applicable findings, including inline findings, and the engine refreshes the review summary and closes their threads. Only pull-request-author comments can settle findings, and acknowledgement reactions are completed with provider-specific behavior after chat or mention-review jobs finish. Latest changes: The retry path now recovers the original conversation comment before matching settled findings and closes the settled thread(s) after a thread-resolution failure; a regression test covers this retry. Walkthrough (20)
Fixed since the last review (1)
Reviewed the commits since Tip Comment |
…-x5w6n8 Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com> # Conflicts: # packages/engine/src/chat-job.test.ts
The reaction said Hansi was on it, but nothing ever removed it, so every mention kept 👀 forever. A chat removes it after its answer (or after the fixed failure reply on the last attempt), and a review asked for by a mention removes it once the review has ended. A failed attempt that will be retried keeps it. GitHub, GitLab and Gitea remove only the bot's own reaction; Origin and Bitbucket have nothing to remove. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
GitHub's reactions have no check mark, so 👍 marks a comment as answered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
…ews the PR Each project reviewing a repository gets the conversation comment and sees only its own findings, so a mention that names none could settle one finding in every project. The only-open-finding guess now needs the pull request to carry no other repository row's summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
The findings that requested changes are resolved. See the summary comment for what is still open.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
A reply from anyone else still gets an answer, but Hansi gets no mark_finding tool for it and is told not to call the finding settled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
Resolving the thread of a finding a chat settled could fail after the answer was posted, and a redelivery stopped at the answer's marker, so the thread stayed open. A failure now fails the attempt while attempts remain, and a retry that finds the answer closes the threads of the findings the comment settled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>
On a retry the findings a conversation comment named are no longer open, so the comment's text was not loaded and nothing matched. Read it from the conversation, and when a mention named no finding, close every settled finding's thread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC Co-authored-by: Torsten Dittmann <1759475+TorstenDittmann@users.noreply.github.com>

Requested by Torsten · project thread
What happened
On appwrite-labs/application-configuration#1420 Hansi left one inline finding (a missing toleration). Torsten replied in its thread that the nodes aren't tainted, but Cloud dropped that reply before it reached Hansi (fixed in appwrite/appwrite#16212). He then wrote in the conversation: "@appwrite read the comments - its resolved", and later "@appwrite then dismiss and approve".
Hansi agreed both times that the finding didn't apply, but nothing changed: the finding stayed open, the thread unresolved, the summary at Tier B and the check run neutral. The second answer even said "I can't change the GitHub review state from here."
A conversation comment could only settle findings listed in a review body (
openBodyFindings, no thread). An inline finding had to be answered in its thread, so the chat had no finding to mark and nomark_findingtool.The fix
openFindings()lists every open finding, inline or in a body, with its thread root.openBodyFindings()is that list without the inline ones.path:line, or the only open one when it names none). An unmentioned conversation comment still only reaches body findings, as Appwrite queues those only when body findings are open.With #70, that refresh also approves once nothing open holds approval back, so "it's resolved" in the conversation ends the same way as in the thread.
Only the pull request's author settles a finding
A finding is resolved or dismissed only from a comment by the pull request's author, in its thread or in the conversation. Anyone else still gets an answer, but the chat gets no
mark_findingtool, and the prompt says the finding stays as it is. Before this, a trusted maintainer who wasn't the author could dismiss a minor note.The 👀 now turns into 👍
Hansi reacted 👀 to every comment it took on, and nothing ever removed it. Now:
GitHubClient.finishAcknowledgementdoes the swap. On GitHub, creating the 👀 again returns the bot's existing reaction, so its id is found without knowing the bot's login, and only that reaction is deleted. GitLab (thumbsup) and Gitea swap only the bot's own reaction too. Origin can't take a reaction back, so the 👍 is added next to the 👀. Bitbucket has no reactions. GitHub's reactions have no ✅, so 👍 stands in for done.Tests
chat-job.test.ts: #1420's case, where a mention in the conversation dismisses an inline finding, resolves its thread and grades S; and an unmentioned conversation comment leaves inline findings alone.chat-finding.test.ts:openFindingsreturns both kinds with their thread roots.chat-job.test.ts/review-job.test.ts: the reaction is swapped after an answer, after the last failed attempt and after a skipped mention review, and kept after a failed attempt that will be retried.pulls.test.ts) client tests cover the swap requests.chat-job.test.ts: a member who isn't the PR author gets an answer but can't settle the finding; a mention that names no finding isn't matched to one while another project reviews the PR.bun run lint,bun run checkandbun run test(506 pass, after merging main with #70) are green.https://claude.ai/code/session_01F3M7ttH9uWbxTyZiza9BAC
Generated by Claude Code