Skip to content

fix: report chat history read failures instead of empty history - #1154

Merged
sidneyswift merged 1 commit into
mainfrom
codex/history-read-failure
Oct 25, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/history-read-failure

Conversation

@sswiftdrtv

Copy link
Copy Markdown
Contributor

A failed chat_messages read was converted into HTTP 200 with an empty history, preventing the app from offering its existing history retry. Return the shared typed HTTP 500 error on a null read result; successful empty and populated responses retain their payloads.

Validation: regression reproduced before the fix; 144 related tests pass, including seven actual GET-route cases with the real reader and mocked database/network guard. Changed-file ESLint passes. Full TypeScript checking produces identical diagnostics on the unchanged base and this head (existing repository/dependency errors). Independent Spec and Standards reviews: zero findings each.

Authorization, streaming, Stop, and shared reader semantics are unchanged. No live database calls. Coordinator owns merge and release.

@vercel

vercel Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 25, 2026 5:51pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sidneyswift
sidneyswift marked this pull request as ready for review October 25, 2026 18:02
@sidneyswift
sidneyswift merged commit 0069e64 into main Oct 25, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3d62fddf Deployed Oct 25, 2026 by vercel[bot]
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.

2 participants