Skip to content

Bot comments and PR bodies: say what failed, drop internal paths and debug blocks (text only) #3673

Closed

Description

@integry

Replaces part of PR #3654 (issue #3622), which grew to 3,100 lines because it also tried to deduplicate comments across workers. This issue is the text-only part. Start from the epic branch, not from that PR. No deduplication, locking, Redis state, retries or scheduling changes here.

Changes

  1. Failed or invalid review comments. Today: "⚠️ Review output was invalid and could not be displayed safely." with no reason and a "Next step: Comment /fix…" block (PR [3548 by Claude Opus 5.5] Plugin handlers: SDK types, scoped ProPR client, outbound HTTP, plugin state and the core-import lint rule #3573), or "❌ Review failed: " followed by nothing (PR [3442 by Claude Opus 5.5] Flag automation runs that repeat the same report or act without changing anything #3454). Expected: one sentence saying why (the review output could not be parsed; the reviewer returned no text; the provider call failed), the error marker, no "Next step" block, and the parent "Posted N reviews" comment does not count it as a posted review.
  2. Failure comments. Expected: a one-sentence cause in plain words (provider authentication failed; the agent process stopped unexpectedly) and a link to the task. Remove "Comment ID: 0", container log paths (/usr/src/app/logs/…), the <synthetic> model line, zero-cost lines for runs that never called a model, and upstream HTML page titles such as "403 Attention Required! | Cloudflare" (keep the status code).
  3. PR bodies. Remove the "Detailed Logs" block (conversation count, session id, log file paths) and the "Latest Conversation Messages" block that begins ASSISTANT: [content unavailable]. Put one link to the task page in their place. Existing PR bodies are not rewritten.
  4. CI-failure comment link. The "Commit:" link text is a SHA but points to the job run; make it point to the commit, and keep a separate link to the run.
  5. Labels and ids. AI and llm-* labels are applied twice at PR creation (22 of 77 PRs): apply once. When AI-done is added, remove AI. Task ids for PR comment batches never contain the literal -undefined- (find the id builder; omit the missing part).

Non-goals

  • Suppressing or merging repeated comments (separate issue for CI comments; the rest is deferred to after 0.9.2).
  • Rate-limit notices and retry timing (deferred to after 0.9.2).
  • Any change to when a comment is posted or to job scheduling.

Acceptance

  • A unit test per item on the comment or body builder output, using the quoted examples as inputs.
  • No file under src/jobs gains locking, Redis keys or new queue logic in this PR.
  • Keep it small: builders and their tests. If an item turns out to need more than a builder change, leave it out and name it in the PR description.

Implementation

Search for the quoted strings: Review output was invalid, Review failed, Detailed Logs, Latest Conversation Messages, Comment ID, CI failed. Comment builders are in src/jobs and packages/core/src/services.

Activity

  1. propr-dev commented on Nov 17, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3673/claude-opus-5-5-bot-comments-and-pr-bodie-20261117-1404-xif
    • Base Branch: 3616-epic-0-9-d8b
    • Worktree: issue-3673-20261117-1404-claude-opus-5-5-xif

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions