Skip to content

Match skill responses to the user's language - #679

Closed
shrektan wants to merge 2 commits into
garrytan:mainfrom
shrektan:codex/match-user-language-in-skills
Closed

shrektan wants to merge 2 commits into
garrytan:mainfrom
shrektan:codex/match-user-language-in-skills

Conversation

@shrektan

Copy link
Copy Markdown
Contributor

This adds a small but explicit language rule to the shared skill voice preamble:

  • match the user's language by default
  • if the user is writing mostly in Chinese, respond in Chinese
  • only switch languages when the user asks, or when the source material is clearer in its original language

Why:
Many skills have long English instructions, which can unintentionally override the user's language context. In practice, that can make the agent reply in English even when the user is clearly interacting in Chinese.

Implementation:

  • update the shared voice generator in scripts/resolvers/preamble.ts
  • regenerate affected SKILL.md files
  • add a validation test so the rule does not regress

@time-attack

Copy link
Copy Markdown
Contributor

Thanks for this. The patch targets the former voice resolver, and its presence-only coverage does not address mixed-language prompts, explicit overrides, or preservation of technical text. Implement the rule in the current voice resolver, regenerate all hosts, and test those cases while keeping commands, paths, code, and quotations unchanged.

@capy-ai

capy-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Landed in v1.91.66.0 (#3087): skills replying in the user's language, rewritten on current main with credit to you (Co-authored-by). Thank you @shrektan!

@capy-ai capy-ai Bot closed this Oct 8, 2026
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.

2 participants