Skip to content

feat: localize WORKING_DIR_NOT_FOUND SSE errors#197

Open
xuxu777xu wants to merge 1 commit intoop7418:mainfrom
xuxu777xu:feat/sse-error-i18n
Open

feat: localize WORKING_DIR_NOT_FOUND SSE errors#197
xuxu777xu wants to merge 1 commit intoop7418:mainfrom
xuxu777xu:feat/sse-error-i18n

Conversation

@xuxu777xu
Copy link
Contributor

Summary

  • emit structured WORKING_DIR_NOT_FOUND SSE errors from the claude client
  • localize missing-directory SSE errors in chat and shared SSE consumers
  • sync current locale for non-React translation fallback and cover the consume path with tests

Validation

  • npx tsx --test src/tests/unit/use-sse-stream.test.ts
  • npm run typecheck
  • npx eslint src/hooks/useSSEStream.ts src/app/chat/page.tsx src/components/layout/I18nProvider.tsx src/i18n/index.ts src/lib/claude-client.ts src/i18n/en.ts src/i18n/zh.ts src/tests/unit/use-sse-stream.test.ts

- add structured WORKING_DIR_NOT_FOUND handling from claude client to chat UI

- sync current locale for non-React SSE formatting helpers

- add unit coverage for translated SSE error formatting
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