Skip to content

fix(ai): retry gateway connect failures and reset streams - #6345

Merged
dan-petty merged 1 commit into
mainfrom
fix/4753-a-short-connect-failure-to-the-gateway-stops-intake
Nov 19, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/4753-a-short-connect-failure-to-the-gateway-stops-intake

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A short connection failure to the AI gateway can stop a roadmap command like intake. The existing HTTP transport retry makes five attempts in 38 seconds. When a temporary network glitch lasts slightly longer, the command fails and writes nothing. Also, when a connection error occurs, the error message lacks details like the exception class and host.

Closes #4753

Change: openspec/changes/archive/2026-11-19-4753-a-short-connect-failure-to-the-gateway-stops-intake/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 19, 2026
@dan-petty
dan-petty force-pushed the fix/4753-a-short-connect-failure-to-the-gateway-stops-intake branch from faf13b4 to 69da5ad Compare November 19, 2026 02:25
Retry gateway connect failures up to 10 attempts bounded by outer read timeout.
Retry pre-output stream resets before first chunk.
Stop replay after stream output and report connection error with root cause.

Closes #4753
OpenSpec: archive/2026-11-19-4753-a-short-connect-failure-to-the-gateway-stops-intake
@dan-petty
dan-petty force-pushed the fix/4753-a-short-connect-failure-to-the-gateway-stops-intake branch from 69da5ad to c50f8f6 Compare November 19, 2026 02:34
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: c50f8f623f481152bb85e7ba695ca1bca105df02

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
CodeQL success run
Plan Check skipped run
Dependency Freshness skipped run
Test Job Duration skipped run
Tests on Main skipped run
Tests & Coverage (shard 5 of 5) success run
Tests & Coverage (shard 2 of 5) success run
Tests & Coverage (shard 1 of 5) success run
Design Tokens success run
Static Analysis success run
Changed-Test Independence success run
Tests & Coverage (shard 4 of 5) success run
MCP Server Image success run
Tests & Coverage (shard 3 of 5) success run
Runner Image success run
Fail-to-Pass Check success run
Service Image success run
Analyze (actions) success run
Analyze (python) success run
Semantic PR title success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/44445309601/job/135295897624

Skipped check: Plan Check
Skipped check: Dependency Freshness
Skipped check: Test Job Duration
Skipped check: Tests on Main

@dan-petty
dan-petty marked this pull request as ready for review November 19, 2026 02:41
@dan-petty
dan-petty merged commit f0a5435 into main Nov 19, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/4753-a-short-connect-failure-to-the-gateway-stops-intake branch November 19, 2026 02:46
dan-petty-release Bot added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.179.2](v0.179.1...v0.179.2)
(2026-11-19)


### Bug Fixes

* **ai:** retry gateway connect failures and reset streams
([#6345](#6345))
([f0a5435](f0a5435))
* **deps:** drop the ignore of the withdrawn picomatch advisory
([#6348](#6348))
([1447ec3](1447ec3))
* **k8s:** loosen the stage limits and correct the Service config notes
([#6356](#6356))
([397d066](397d066))
* **roadmap:** skip Python keywords in stage removal names
([#6349](#6349))
([5e6822d](5e6822d))
* **roadmap:** Tell the stage planner what counts as source code
([#6335](#6335))
([b9060f5](b9060f5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ai): a short connect failure to the gateway stops intake

1 participant