feat(deep-scan): add configurable graceful time limits - #369
Merged
Conversation
zcrab-oai
reviewed
Aug 12, 2026
zcrab-oai
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for syncing the full Deep Scan timeout/cost stack. One cost-exhaustion reporting edge case remains in the bundled plugin. Also, the current Windows/Node 24 node-ci job is red: the long-path prompt test exceeds its 60-second hook timeout, then reports a missing scoped path, and the test step ultimately exceeds its 10-minute limit; please get that matrix job green before merging.
soyeon-oai
approved these changes
Aug 12, 2026
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
scan --mode deep --max-time-hoursand SDKmaxTimeHours, supporting positive fractional durations up to 96 hours--max-costis exceeded after deep discovery succeeds, stop model execution and seal an honest partial report without additional model callsThe default discovery limit is 96 hours, leaving approximately one hour for final reduction and result delivery under the 97-hour transport deadline. Explicit CLI/SDK options override
[deep_scan] max_time_hoursin the existing Codex Security configuration.Verification
--max-time-hours 1.5and rejects values above 96