Skip to content

fix(share): make usage request timeout configurable - #1974

Draft
NginxL wants to merge 1 commit into
getagentseal:mainfrom
NginxL:fix/peer-usage-timeout-1966
Draft

NginxL wants to merge 1 commit into
getagentseal:mainfrom
NginxL:fix/peer-usage-timeout-1966

Conversation

@NginxL

@NginxL NginxL commented Dec 6, 2026

Copy link
Copy Markdown

Refs #1966. This addresses the configurable-timeout part of the report; it does not change Antigravity scanning performance.

Summary

  • Raise the peer /api/usage request timeout from 15 to 60 seconds for cold scans.
  • Allow CODEBURN_PEER_TIMEOUT_MS to override it with a positive integer.
  • Keep the existing connect, pairing, and other request timeouts unchanged.
  • Add focused timeout parsing cases and document the environment variable.

Verification

  • Ran a loopback TLS harness against the changed client: invalid values fall back to 60 seconds, a 20 ms override aborts a delayed response with peer timed out, and a 1000 ms override allows the same response to succeed.
  • git diff --check passed.

Gaps

  • The full npm test suite, the committed Vitest case, and TypeScript checking were not run because local JavaScript dependencies are absent and no package installation was performed in this environment. CI is pending.
  • I did not reproduce the reported multi-gigabyte Antigravity corpus or measure scan speed.

AI disclosure

An AI coding assistant helped diagnose the request path, implement the change, and build the local harness. The commands and results above are from the actual working tree.

Allow cold peer usage scans longer than 15 seconds to complete. Default usage requests to 60 seconds and let CODEBURN_PEER_TIMEOUT_MS override the limit without changing pairing or other peer requests.

Refs getagentseal#1966

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant