Skip to content

A run whose last message says it is still waiting is reported as finished #3690

Closed

Description

@integry

Problem

On #3479 the agent's last message said it was still waiting (for a background job), yet the run was reported as finished with that text as the summary (#3680 item 4). 0.9.2 added summary selection by the summarization model (packages/core/src/agents/runSummarySelection.ts), which picks the best message but does not flag an unfinished run.

Expected / acceptance criteria

  • When the agent exits while its final message states that work is still in progress or waiting, the completion comment says the run ended before the agent confirmed completion, and still lists what was committed. It must not present the run as a clean success.
  • The detection is non-deterministic by design: the summarization model that already selects the summary also returns whether the run looks unfinished (one call, no extra request). When no summarization model is configured or the call fails, behaviour is unchanged.
  • Tests with mocked model output for finished, unfinished and failed-call cases.

Implementation

Extend the selection prompt/result in runSummarySelection.ts with an unfinished flag and a one-line reason; thread it to the completion comment builder. Keep the fallback path identical to today.

Activity

  1. propr-dev commented on Nov 18, 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: 3690/claude-opus-5-5-a-run-whose-last-message--20261118-1725-mmr
    • Base Branch: 3686-epic-0-9-g6i
    • Worktree: issue-3690-20261118-1725-claude-opus-5-5-mmr

    🔍 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