fix(preflight): timeout hung adapter auth checks (OPS-002) - #147
Merged
cursor[bot] merged 1 commit intoJul 8, 2026
Merged
Conversation
Co-authored-by: Ravindra Kumar <ravidsrk@gmail.com>
cursor
Bot
merged commit Jul 8, 2026
1eb4dd6
into
cursor/adversarial-review-base-256a
1 of 2 checks passed
5 tasks
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
Closes OPS-002 from the adversarial review (
c6c486).adapter_preflight.check()ran auth probes with no timeout, so a hung check could block headless/campaign startup indefinitely.Changes
timeout=30(override viaFLEET_ADAPTER_AUTH_TIMEOUT_S)TimeoutExpiredfailure messageBase
Merges into
cursor/adversarial-review-base-256a(mission BASE).Greptile Summary
This PR adds a timeout for adapter auth preflight checks. The main changes are:
FLEET_ADAPTER_AUTH_TIMEOUT_Soverride with fallback for invalid or non-positive values.Confidence Score: 5/5
Safe to merge with minimal risk.
The change is narrowly scoped, preserves existing skip and aggregation behavior, handles invalid overrides, and includes focused tests for the new timeout paths.
No files require special attention.
What T-Rex did
Important Files Changed
Sequence Diagram
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant Caller participant Preflight as adapter_preflight.check() participant Env as FLEET_ADAPTER_AUTH_TIMEOUT_S participant Auth as Auth command Caller->>Preflight: check(requires, intent, environ) Preflight->>Env: read timeout override Env-->>Preflight: positive float or default 30s Preflight->>Auth: "subprocess.run(..., timeout=timeout_s)" alt command completes Auth-->>Preflight: returncode Preflight-->>Caller: "auth failure if returncode != 0" else command exceeds timeout Auth-->>Preflight: TimeoutExpired Preflight-->>Caller: timed-out auth failure message end%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% sequenceDiagram participant Caller participant Preflight as adapter_preflight.check() participant Env as FLEET_ADAPTER_AUTH_TIMEOUT_S participant Auth as Auth command Caller->>Preflight: check(requires, intent, environ) Preflight->>Env: read timeout override Env-->>Preflight: positive float or default 30s Preflight->>Auth: "subprocess.run(..., timeout=timeout_s)" alt command completes Auth-->>Preflight: returncode Preflight-->>Caller: "auth failure if returncode != 0" else command exceeds timeout Auth-->>Preflight: TimeoutExpired Preflight-->>Caller: timed-out auth failure message endReviews (1): Last reviewed commit: "fix(preflight): timeout hung adapter aut..." | Re-trigger Greptile