-
Notifications
You must be signed in to change notification settings - Fork 281
[Fix] Prevent unavailable tools from appearing in system prompts #1505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
1c2fad9
initial fix for issues #1240 and #505
DaubnerF d52e160
Merge branch 'main' into bugfix_for_1240_505
DaubnerF 41a7698
1st round of fixes
DaubnerF a607ec9
Merge branch 'main' into bugfix_for_1240_505
DaubnerF f27387b
fixed comments
DaubnerF 8f2245f
Merge branch 'main' into bugfix_for_1240_505
DaubnerF bc6f8ff
increase test coverage
DaubnerF 6968a98
revert: remove Windows shell invocation from stryker-diff
DaubnerF e00a2b1
fix: address CodeRabbit review on tool-policy prompt unification
DaubnerF 943a16e
fix(test): correct apiModelId in generateSystemPrompt state mock
DaubnerF bd7894c
drop use_mcp_tool from policy when no MCP tool is permitted
DaubnerF c289453
Merge branch 'main' into bugfix_for_1240_505
DaubnerF 26a3a68
code hardening
DaubnerF 7e42bf5
Merge branch 'Zoo-Code-Org:main' into bugfix_for_1240_505
DaubnerF 528b023
bound model fetch with timeout, typed provider state test doubles
DaubnerF aa8f108
cover preview model fetch timeout path with tests
DaubnerF 415422b
pin completion-time history save ordering with unit tests
DaubnerF 1db50a1
poll history length in restart e2e to tolerate atomic write window
DaubnerF 227ab61
Merge remote-tracking branch 'upstream/main' into bugfix_for_1240_505
DaubnerF 6a769b5
share one model-info snapshot per request between prompt and tools
DaubnerF 92c6f32
resolve provider state once before the MCP wait
DaubnerF 2ce570a
cover the undefined provider state path in the system prompt tests
DaubnerF ac35870
reuse one model-info snapshot per request and honor cancellation
DaubnerF b75e73b
pin the retry count the request seam receives
DaubnerF b1236cd
refactor(task): require callers to thread provider state into system …
DaubnerF 85beb67
fix(api): cancel abandoned model-metadata waits via AbortSignal
DaubnerF d06883a
test(api): cover abort-signal detach paths and thread request model s…
DaubnerF 2366d23
Apply disabled and excluded tool policy to dynamic MCP declarations
DaubnerF cfd835e
Forward request options through API retry recursion
DaubnerF aa894b4
Forward derived model snapshot through API retry recursion
DaubnerF f943876
Tighten build-tools test assertions and provider double
DaubnerF 28439fb
Use the request model snapshot for context-window recovery math
DaubnerF 0a41225
Merge branch 'Zoo-Code-Org:main' into bugfix_for_1240_505
DaubnerF 9b0a6a5
Stop manual condensation when the task is cancelled
DaubnerF 7955068
Recheck cancellation before summarizing and rewriting history
DaubnerF 17d6176
Make the first cancellation checkpoint observable to tests
DaubnerF 795b639
Correct a rationale comment in the cancellation tests
DaubnerF 855531d
Merge branch 'Zoo-Code-Org:main' into bugfix_for_1240_505
DaubnerF 73670b8
Merge remote-tracking branch 'origin/bugfix_for_1240_505' into bugfix…
DaubnerF 575d35d
Narrow the change set to the tool-policy work and its regression tests
DaubnerF 610acb1
Merge branch 'Zoo-Code-Org:main' into bugfix_for_1240_505
DaubnerF fddb744
Merge origin/main (01c7357a7) into bugfix_for_1240_505
DaubnerF 4bef223
Remove dead export, untriggerable timer guard, and duplicated prompt-…
DaubnerF ad6a9a1
Merge remote-tracking branch 'origin/bugfix_for_1240_505' into bugfix…
DaubnerF 24c2fba
Merge branch 'Zoo-Code-Org:main' into bugfix_for_1240_505
DaubnerF dc2666d
fix(prompts): enforce effective tool policy guidance
roomote cc8ceaf
Merge branch 'Zoo-Code-Org:main' into bugfix_for_1240_505
DaubnerF 5ae40b8
fix(task): restore caller-layer cancellation for model-metadata fetches
DaubnerF d015183
fix(task): set disposal state before cancelling metadata waits
DaubnerF c76dc83
Merge branch 'main' into bugfix_for_1240_505
DaubnerF a715cf0
chore(ci): bump coverage-contract baseline for branch-added policy mo…
DaubnerF 9de70e1
Merge upstream/main (77e422faf) into restored pre-rewrite state
DaubnerF 60de0ee
test: mock CodeIndexManagerRegistry in build-tools.spec (upstream #16…
DaubnerF 37a21fa
fix: describe codebase_search as semantic search; anchor read_file in…
DaubnerF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.