Repository navigation
fix(chat): route conversation-file write-error fallbacks through i18n and close test gaps (#21084) - #21149
fix(chat): route conversation-file write-error fallbacks through i18n and close test gaps (#21084)#21149mrveiss wants to merge 4 commits into
Conversation
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. |
Code review (code-reviewer pass) follow-up at 912d66dVerdict: no blocking findings. The code-reviewer subagent could not be launched from this session (no Agent tool), so this is a self-review of the
|
|
Code review (code-reviewer pass) at 912d66d
|
Code review (code-reviewer pass) follow-up at 912d66dVerdict: APPROVE. All 5 items in #21084 are delivered; en.json parses and carries every key the code reads. Two LOW follow-ups, neither blocking.
Verified:
|
|
Branch audit (zero-change deletion). This PR shows 0 changed files against |
Thinking Path
Issue #21084 collects the review findings deferred from the quota-refusal translation work. The write-error fallbacks in the conversation-files composable were still English literals, and the refusal spec asserted too little. Reuse the existing upload key, add three English-only keys, and tighten the tests.
What Changed
useConversationFiles.ts: upload, create, save and copy failure texts (thesuccess: falsepath and the catch fallback) come from i18n. Upload reuseschat.input.uploadError.unknown; newchat.conversationFiles.{createFailed,saveFailed,copyFailed}keys inen.json.PhaseProgressionIndicator.unscored.test.ts: asserts the Englishincompletestatus key exists and that a locale defining it renders it, not theformatStatusfallback.useConversationFiles.createRefusal.spec.ts: save, copy and upload assert the full mocked translation result;uploadFilesassertsfalseon refusal; new non-refusal tests forcopyFileanduploadFilesassert the server detail is kept; a table test asserts each translated fallback.Verification
Scratch copy run:
src/composables/__tests__plus the PhaseProgressionIndicator unscored and locale-parity tests: 111 files, 1460 passed, 1 skipped. eslint clean on the changed composable and spec. Closes #21084 (all 5 items delivered). Refs #21061, #21013.Model Used
Claude Sonnet 5.5