🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

fix(coderd/x/chatd): recover timed out agents - #27254

Merged
ethanndickson merged 3 commits into
mainfrom
ethan/codagt-802-chatd-never-escalates-dial-timeouts-for-never-connected
Jul 16, 2026
Merged

fix(coderd/x/chatd): recover timed out agents#27254
ethanndickson merged 3 commits into
mainfrom
ethan/codagt-802-chatd-never-escalates-dial-timeouts-for-never-connected

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Jul 15, 2026

Copy link
Copy Markdown
Member

Closes CODAGT-802

Coder Agents only escalated failed workspace dials when the agent had connected and later disconnected. An agent that never connected and had already exceeded its connection_timeout stayed on the soft retry error indefinitely, so a chat could keep attempting tools against an unhealthy workspace.

To fix, we'll classify the latest agent after a failed dial and return stop/start recovery guidance when its status is timeout. Agents still connecting, including templates with connection_timeout = 0, keep the existing retryable behaviour.

Before

image

After

image

@linear-code

linear-code Bot commented Jul 15, 2026

Copy link
Copy Markdown

CODAGT-802

@ethanndickson
ethanndickson marked this pull request as ready for review July 15, 2026 07:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b120fb201d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread coderd/x/chatd/chatd.go Outdated
@ethanndickson

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: dfb9104f65

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ethanndickson
ethanndickson merged commit 21d0824 into main Jul 16, 2026
28 of 29 checks passed
@ethanndickson
ethanndickson deleted the ethan/codagt-802-chatd-never-escalates-dial-timeouts-for-never-connected branch July 16, 2026 02:52
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants