Skip to content

fix(pilotctl): configurable appstore call timeout (default 120s, was hardcoded 8s)#244

Merged
Alexgodoroja merged 2 commits into
mainfrom
fix/appstore-call-timeout
Jun 9, 2026
Merged

fix(pilotctl): configurable appstore call timeout (default 120s, was hardcoded 8s)#244
Alexgodoroja merged 2 commits into
mainfrom
fix/appstore-call-timeout

Conversation

@Alexgodoroja

Copy link
Copy Markdown
Collaborator

pilotctl appstore call set an 8s read deadline on the app socket, capping every method. Slow-but-healthy methods (e.g. cosift.research, ~11s; cold LLM answers) hit a spurious i/o timeout at 8s even though the app and backend completed fine.

Fix: default the reply deadline to 120s; override with --timeout <dur> or $PILOT_APPSTORE_CALL_TIMEOUT. Dial timeout stays short (local socket). Verified: cosift.research now returns in ~12s; fast methods unchanged; --timeout parses.

appstore call hardcoded an 8s socket read deadline, which cut off any
legitimately slow method (multi-step research, cold LLM synthesis) long
before it could return — surfacing as a spurious 'i/o timeout' even though
the app and backend were healthy. Default to 120s and allow per-call
--timeout / $PILOT_APPSTORE_CALL_TIMEOUT. The 8s was a reply deadline, not
a dial timeout; dialing the local socket stays fast.
@Alexgodoroja Alexgodoroja requested a review from TeoSlayer as a code owner June 9, 2026 22:44
@Alexgodoroja Alexgodoroja merged commit fd7c145 into main Jun 9, 2026
7 of 9 checks passed
@Alexgodoroja Alexgodoroja mentioned this pull request Jun 9, 2026
7 tasks
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