Skip to content

fix: persist chain error detail and move error banner to bottom - #89

Merged
Zeptiny merged 1 commit into
fix/quota-connection-gatingfrom
fix/persist-and-reposition-chat-errors
Aug 14, 2026
Merged

fix: persist chain error detail and move error banner to bottom#89
Zeptiny merged 1 commit into
fix/quota-connection-gatingfrom
fix/persist-and-reposition-chat-errors

Conversation

@Zeptiny

@Zeptiny Zeptiny commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Errors from failed chat turns are now persisted on the chain row (error_detail, error_title) so they survive session switches and restarts. The ErrorBanner moved from the top to the bottom of the chat stream, the Failed badge on ChainFooter shows the error as a tooltip, and hydrating a session with a FAILED chain restores the error banner automatically.

  • Add errorDetail/errorTitle to Chain type, ChainStorageDict, DB schema (with migration for existing DBs), and storage R/W
  • Thread error fields through persistTurnConversation → persistTurn → finishActiveChain at error emission time
  • Populate lastChainError in chat:snapshot and session:open payloads
  • Restore error via local_error projection on hydration
  • Move ErrorBanner below streamNodes in ChatStream
  • Add errorDetail tooltip to ChainFooter Failed badge
  • Update all Chain construction sites and test factories

Errors from failed chat turns are now persisted on the chain row
(error_detail, error_title) so they survive session switches and
restarts. The ErrorBanner moved from the top to the bottom of the
chat stream, the Failed badge on ChainFooter shows the error as a
tooltip, and hydrating a session with a FAILED chain restores the
error banner automatically.

- Add errorDetail/errorTitle to Chain type, ChainStorageDict, DB
  schema (with migration for existing DBs), and storage R/W
- Thread error fields through persistTurnConversation → persistTurn
  → finishActiveChain at error emission time
- Populate lastChainError in chat:snapshot and session:open payloads
- Restore error via local_error projection on hydration
- Move ErrorBanner below streamNodes in ChatStream
- Add errorDetail tooltip to ChainFooter Failed badge
- Update all Chain construction sites and test factories
@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 6e33a55c-b305-48fc-8fe5-93633144437a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@Zeptiny
Zeptiny merged commit ced7ac3 into main Aug 14, 2026
5 checks passed
@Zeptiny
Zeptiny deleted the fix/persist-and-reposition-chat-errors branch August 14, 2026 04:54
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