Skip to content

fix(agent): a turn past its cap still sends the answer to an open request - #41

Merged
den-vasyliev merged 1 commit into
mainfrom
fix/reply-past-turn-cap
Nov 30, 2026
Merged

den-vasyliev merged 1 commit into
mainfrom
fix/reply-past-turn-cap

Conversation

@den-vasyliev

Copy link
Copy Markdown
Contributor

A turn that passed its tool-call or token cap had every tool refused except the built-ins, so it could not post the answer it had worked for. The cap message told the model to answer from what it had, but answering is a tool call.

  • Past a cap, one say_in_workspace with reply_to still runs, with one more try if it did not go.
  • The post and recall gates let that call through, since the calls that open them are refused by then. The reply check still applies.
  • The cap message says so. Nothing else gets through.

Checked locally: make check. The new loop tests fail without the change.

@den-vasyliev
den-vasyliev merged commit 6e61195 into main Nov 30, 2026
3 checks passed
@den-vasyliev
den-vasyliev deleted the fix/reply-past-turn-cap branch November 30, 2026 20:37
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