Skip to content

feat(chat): add localized error message for model API call and improve error handling in chat history#947

Merged
hazeone merged 2 commits intomainfrom
feat/chat-localized-model-api-error
Apr 30, 2026
Merged

feat(chat): add localized error message for model API call and improve error handling in chat history#947
hazeone merged 2 commits intomainfrom
feat/chat-localized-model-api-error

Conversation

@hazeone
Copy link
Copy Markdown
Contributor

@hazeone hazeone commented Apr 30, 2026

  • Add chat.runError.title strings for en, ja, ru, and zh (banner uses t('runError.title')).
  • Assert the English run-error title in the chat execution graph E2E flow.
  • Add a unit test so loadHistory clears stale runError when the latest turn ends in a successful assistant reply.

Summary

Related Issue(s)

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other

Validation

Checklist

  • I ran relevant checks/tests locally.
  • I updated docs if behavior or interfaces changed.
  • I verified there are no unrelated changes in this PR.

…e error handling in chat history

- Add chat.runError.title strings for en, ja, ru, and zh (banner uses t('runError.title')).
- Assert the English run-error title in the chat execution graph E2E flow.
- Add a unit test so loadHistory clears stale runError when the latest turn ends in a successful assistant reply.

Made-with: Cursor
Copy link
Copy Markdown
Contributor

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

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: c9dcbf4ab4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +2 to +4
"runError": {
"title": "Model API call error"
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Remove duplicate runError key that overrides new title

The newly added runError object is shadowed by an existing runError key later in the same JSON file, so the new title is never used at runtime. In JSON, duplicate keys keep only the last value, which means t('runError.title') still resolves to the older string ("Model call failed") and the new E2E assertion for "Model API call error" will fail. The same duplicate-key pattern is present in src/i18n/locales/ja/chat.json, ru/chat.json, and zh/chat.json as well.

Useful? React with 👍 / 👎.

Add data-testid=chat-run-error to the run-error banner and target it in the execution-graph E2E so CI passes when the UI locale is not English.

Made-with: Cursor
@hazeone hazeone merged commit e6c1802 into main Apr 30, 2026
5 checks passed
@hazeone hazeone deleted the feat/chat-localized-model-api-error branch April 30, 2026 10:46
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