Skip to content

default get_change_comments to unresolved threads - #81

Merged
xobotyi merged 1 commit into
mainfrom
comments-default-unresolved
Jul 15, 2026
Merged

default get_change_comments to unresolved threads#81
xobotyi merged 1 commit into
mainfrom
comments-default-unresolved

Conversation

@xobotyi

@xobotyi xobotyi commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Breaking (agent-facing): a bare get_change_comments call now returns unresolved threads only — the actionable subset. status=all restores the previous behavior; status=resolved unchanged.

Motivation: on long reviews (100+ comments) the full history overflows the client's tool-result budget and forces a re-read; the settled threads are the bulk and rarely what the agent needs.

  • Tool description and input docstring steer the model: default named, status=all flagged as potentially very large.
  • New test pins default == unresolved against the same golden as the explicit filter; pipeline-mechanics tests now pass status=all explicitly.
  • Notification payloads unaffected (thread selection there is by new comment, not resolution state) — Test_DeltaRenderer_ThreadParity still green.
  • README tool list updated.

BREAKING: a bare get_change_comments call now returns unresolved
threads only; pass status=all for the previous behavior.

The full comment history of a long review can dwarf the context it
lands in -- a change with a hundred-plus comments overflows the
client's tool-result budget and forces a re-read. The actionable
subset is the unresolved discussion, so that is what a bare call
returns; status=all and status=resolved stay available unchanged, and
the tool description steers the model to reach for the history only
when the settled context matters.

Notification payloads are unaffected: their thread selection is by
new comment, not by resolution state.
@xobotyi
xobotyi merged commit 2397b0a into main Jul 15, 2026
6 checks passed
@xobotyi
xobotyi deleted the comments-default-unresolved branch July 15, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant