Skip to content

Completion comments and commit messages sometimes contain the agent's reply to an internal notification instead of the summary of the change #3621

Closed

Description

@integry

Problem

When the agent's last message is a reaction to a background notification (a monitor or watcher timing out) rather than its summary, ProPR publishes that message as the "Summary of Changes" in the PR comment and as the commit subject.

Observed (9 of 305 follow-up comments in six days, 13 commits on main):

Expected / acceptance criteria

  • The published summary and the commit subject come from the agent's final answer about the work, not from a later message that only reacts to a notification. When the final message refers back to an earlier summary ("my summary above still holds") or is a short status note, ProPR uses the most recent substantive summary of the run instead.
  • If no substantive summary exists, the comment says so plainly ("The agent did not provide a summary.") and the commit subject falls back to the issue or request title; it never publishes a status note as the summary.
  • A run is not reported as finished while the agent's last message says it is still waiting for running work (the Defer jobs whose agent is at its ceiling instead of holding a worker, and charge the actual direct agent #3479 case): it is treated as incomplete/failed with that reason.
  • Tests built from the transcripts' shapes above (final message after a late tool/notification turn; "summary above" back-reference; "Summarizing now.").

Implementation

Find where the final result text of a Claude/Codex run is chosen for the completion comment and commit message (run result extraction in packages/core/src/agents / packages/core/src/claude, and the commit message builder). Prefer a structural rule (the last assistant message that followed the agent's own work rather than a notification turn; fall back to the longest of the last N assistant messages when the last one is short and has no change description) over keyword matching alone.

Notes

Ordinary task runs are one-shot: do not add any mid-run interaction. Do not change the commit message format otherwise.

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: 3621/claude-opus-5-5-completion-comments-and-c-20261117-0458-4qk
    • Base Branch: 3616-epic-0-9-d8b
    • Worktree: issue-3621-20261117-0458-claude-opus-5-5-4qk

    🔍 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