mirror of
https://github.com/systemd/systemd.git
synced 2026-06-30 19:57:29 +00:00
Claude now identifies which existing review comment threads should be resolved (because the issue was addressed or someone disagreed) and returns their REST API IDs in a new `resolve` array in the structured output. The post job uses GraphQL to map comment IDs to threads and resolve them. Also switches all GitHub data fetching from MCP tools to `gh api` calls, since the MCP tool strips comment IDs during its GraphQL-to-minimal conversion and cannot be used for thread resolution. The thread resolution GraphQL pagination is wrapped in a try/catch so that a failure to fetch threads degrades gracefully instead of aborting the entire post job. Unmatched comment IDs are logged for debuggability. Adds explicit instructions to complete all data fetching before starting review and to cancel background tasks before returning structured output, working around a claude-code-action issue where a late-completing background task triggers a new conversation turn that overwrites the structured JSON result. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>