Skip to content

fix(im): put the seven Chinese reply strings back into English - #73

Merged
y49 merged 1 commit into
mainfrom
chore/im-copy-english
Aug 4, 2026
Merged

fix(im): put the seven Chinese reply strings back into English#73
y49 merged 1 commit into
mainfrom
chore/im-copy-english

Conversation

@y49

@y49 y49 commented Aug 4, 2026

Copy link
Copy Markdown
Owner

The IM surface was mixed. Approval cards, /help, continue cards and the settlement text are English, but seven error and status replies were Chinese — so a user could get an English card and then a Chinese error inside the same interaction. One try/catch had an English success path and a Chinese failure path one line apart.

This was found while reviewing the desktop-toast localization in #72, which explicitly localizes nothing outside the toast. It is not a regression from that work — all seven predate v4.0.0.

where now
pause: button reply Approvals paused — this one is allowed, and everything after it is auto-allowed. Send /trust off to resume.
several wrapped sessions N sessions are active — reply to a message from the one you mean.
nothing can take text tlive: no active session can take text. Reply to a session's message to send text to that terminal — the session must be wrapped with tlive run. See /help for commands.
quoted message has no session No session matches that message — the daemon may have restarted. Reply to a more recent one.
session gone That session has ended.
session not wrapped [label] is not wrapped with tlive run, so text cannot be injected. Use the buttons for approvals, and reply under a "Turn finished" card to continue a run.
injection threw [label] injection failed — the session may have exited.

Wording reuses vocabulary the repo already has rather than inventing a second set: Approvals paused from the trust toggle in toggle.ts, wrapped with tlive run, and the Turn finished card title.

Deliberately unchanged

The two additionalContext strings in normalizer.ts stay Chinese. Those are injected into Claude Code's context at session start and read by the model, not the user — they shape how the agent guides someone through setup. Changing them is a separate decision with a different consequence, so it does not belong in a copy-consistency pass.

Tests

793 passing, tsc and build clean.

Three assertions pinned Chinese fragments — 无法注入, 引用, and a /no longer active|引用/ alternation. They now pin the corresponding English fragments rather than being loosened to something that would pass regardless. Worth noting how they surfaced: a pre-flight grep for the full Chinese sentences came back empty and suggested nothing was pinned, because the assertions match short substrings, not whole strings. The three failures were the correction.

The IM surface was mixed: approval cards, /help, continue cards and the
settlement text are English, but seven error and status replies were Chinese —
so a user could get an English card and then a Chinese error inside the same
interaction. One try/catch even had an English success path and a Chinese
failure path.

Wording reuses vocabulary the repo already has rather than inventing a second
set: Approvals paused from the trust toggle, wrapped with tlive run, and the
Turn finished card. Three test assertions pinned Chinese fragments and now pin
the English ones, so they still hold the copy rather than being loosened.

The two additionalContext strings in normalizer.ts stay Chinese: those are read
by the model, not the user, and changing them is a separate decision about how
the agent guides someone through setup.
@y49
y49 merged commit afd5168 into main Aug 4, 2026
4 checks passed
@y49
y49 deleted the chore/im-copy-english branch August 21, 2026 03:31
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