Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(site/src/pages/AgentsPage): show error state with retry when chat fetch fails - #27887

Merged
DanielleMaywood merged 3 commits into
mainfrom
fix/chat-fetch-error-state
Aug 5, 2026
Merged

fix(site/src/pages/AgentsPage): show error state with retry when chat fetch fails#27887
DanielleMaywood merged 3 commits into
mainfrom
fix/chat-fetch-error-state

Conversation

@DanielleMaywood

Copy link
Copy Markdown
Contributor

The Coder Agents chat page rendered "Chat not found" whenever the chat detail or initial messages query failed. A network error, 500, or timeout was indistinguishable from a genuine 404, leaving users with no way to recover short of a manual reload.

Add an error branch before the not-found branch: when either query fails with no data, the page renders a "Failed to load chat" view with a retry button that refetches both queries. The API layer (axios) throws on 404, so the not-found view is now reserved for a genuine 404 from the detail endpoint or a successful response with absent data. A background refetch that fails after content already rendered keeps showing the conversation instead of blanking the page.

Stories added to AgentChatPage: detail query error, initial messages error, retry recovery via play function, and genuine 404 still rendering "Chat not found".

PR generated by Coder Agents.

… fetch fails

The chat detail and initial messages queries rendered "Chat not found"
for any failure, making a transport error indistinguishable from a
genuine 404. Render an error view with a retry button when either query
fails without data; reserve the not-found view for a real 404 from the
detail endpoint.
@DanielleMaywood

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: d5155b9597

ℹ️ 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".

@DanielleMaywood
DanielleMaywood marked this pull request as ready for review August 5, 2026 13:17
@DanielleMaywood
DanielleMaywood merged commit 5ed73f0 into main Aug 5, 2026
31 checks passed
@DanielleMaywood
DanielleMaywood deleted the fix/chat-fetch-error-state branch August 5, 2026 13:50
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 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