Repository navigation
Let agents raise the request deadline with PROOFLINE_REQUEST_TIMEOUT_MS - #14
Open
ap-beep-ship-it wants to merge 1 commit into
Open
ap-beep-ship-it wants to merge 1 commit into
ap-beep-ship-it wants to merge 1 commit into
Conversation
Slow tools such as codebase questions and plans on large repositories can need more than 35 seconds. The bridge now reads an optional PROOFLINE_REQUEST_TIMEOUT_MS (35000 to 600000, whole milliseconds) and refuses anything else at startup with an error that names the variable. The default is unchanged and timed-out requests still get the correlated -32000 error.
This branch has not been deployed
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.
Who this helps
People who run the stdio bridge with agents that call the slower Proofline tools. Codebase questions, architecture documents and plans on a large repository can take longer than the fixed 35 second deadline, and the agent then gets a timeout even though the server is still working. The same happens on slow or high latency networks. Today the only workaround is to patch the package. With this change they can set one variable in the agent's MCP
envblock:What changed
configuration()reads an optionalPROOFLINE_REQUEST_TIMEOUT_MSand returns it astimeout. Unset keeps 35000, so nothing changes for existing users.post()usesconfig.timeoutfor theAbortSignal.timeoutdeadline. It falls back to 35000 if a caller passes a config without it, so direct users ofbridge()keep working.-32000error withdata.category: "timeout"and the bridge keeps running.--helplists the variable, and the README explains when to use it and why it has limits.Decisions
60e3,60000.5,+60000, padded values, hex and the empty string are refused rather than guessed at, so a bad value is caught at startup instead of silently becoming some other deadline. Refusing the empty string matches howPROOFLINE_BASE_URLis treated on main today.Set PROOFLINE_REQUEST_TIMEOUT_MS to a whole number of milliseconds from 35000 to 600000, or leave it unset.The existing generic message is kept for token and origin problems, so nothing new is printed for those and the value itself is never echoed.node:test.How I verified it
npm run check,npm testandnpm run test:packageall pass locally on Node 24.22.1, andnode --test tests/*.test.jspasses on Node 22.23.5 (the CI major).tests/bridge.test.jsalso run against the packed tarball throughtest:package:PROOFLINE_REQUEST_TIMEOUT_MS=120000, a preload asserts that everyAbortSignal.timeoutcall gets exactly 120000 (and shortens it so the test stays fast). A stalledtools/callgets the correlated-32000timeout, and the nexttools/liststill succeeds on the same stdio session.tests/configuration.test.jscovers the default, both range boundaries and the parsing edge cases againstconfiguration()directly.PROOFLINE_TOKEN=x PROOFLINE_REQUEST_TIMEOUT_MS=5 node src/cli.jsprints the error above and exits 1, and--helpshows the new line.