feat: per-tool timeout overrides via AGY_TIMEOUT_<TOOL> env vars#1
Merged
Conversation
Each tool can now have its timeout set independently with AGY_TIMEOUT_<TOOL_NAME> (e.g. AGY_TIMEOUT_DEEP_SEARCH=300) without affecting the others. Precedence: per-tool env > global AGY_TIMEOUT > per-tool default. - config: parse AGY_TIMEOUT_<TOOL> env vars into perToolTimeouts - server: resolve per-tool override ahead of global/default - README: document the pattern and full variable list - tests: parsing, ignore-invalid, per-tool-only, override-precedence
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
Each tool can now have its timeout configured independently via an
AGY_TIMEOUT_<TOOL_NAME>env var — without touching the others or republishing the package.Previously the only knob was the global
AGY_TIMEOUT, which overrides every tool's timeout at once (e.g. raisingdeep_searchto 300s would also dropdelegatefrom 600s to 300s).Precedence: per-tool env (
AGY_TIMEOUT_DEEP_SEARCH) > globalAGY_TIMEOUT> per-tool default.Changes
AGY_TIMEOUT_<TOOL>env vars into aperToolTimeoutsmap (keyed by lowercased tool name; ignores non-positive/non-integer values)Variables
AGY_TIMEOUT_ANALYZE_FILES,AGY_TIMEOUT_DEEP_SEARCH,AGY_TIMEOUT_WEB_LOOKUP,AGY_TIMEOUT_ADVERSARIAL_REVIEW,AGY_TIMEOUT_FOLLOW_UP,AGY_TIMEOUT_DELEGATEVerification
npm run typecheck✅npm test— 70 passed, 1 skipped (+4 new tests) ✅npm run build✅