Reassess work after tool batches - #503
Merged
Merged
Conversation
Ask the model to identify concrete remaining work after each completed tool batch before selecting more tools. Keep post-tool decision guidance transient and consistent across provider retries and restored confirmed-tool recovery. Preserve existing tools, permissions, saved session content, and completion validation.
Treat the internal post-tool decision prompt as transient guidance when fake providers identify current user intent and tool results. Update Vision and WASM fixtures for the new post-tool request shape.
Retain post-tool decision guidance after denied or review-held results and after duplicate confirmed-provider suppression. Cover both continuation paths with runtime regressions.
Derive post-tool decision state from restored execution memory so continued requests keep the guidance without persisting prompt text. Cover the durable local-tool checkpoint path with an exact-once regression.
The post-tool decision prompt already keeps selected-model requests user-ended, so the older assistant-prefill rejection recovery path is unreachable.
fazxes
marked this pull request as ready for review
August 28, 2026 22:22
Tell the model to continue the original task after each completed tool batch and defer its final response until the task is complete. Update request projection fixtures to match the new guidance.
Keep the Node and WASM workspace fake gateway aligned with the transient post-tool guidance so tool results remain associated with the original user request.
Tell the model to pair brief progress with the next tool action, avoid ending unfinished turns with progress-only prose, and explain genuine blockers normally. Update every exact-string fixture to match.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary