Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 791 Bytes

File metadata and controls

14 lines (12 loc) · 791 Bytes
@objectstack/service-ai patch

feat(ai): tell the agent the user's language explicitly so generated labels match it

The build/ask agents were only told to "answer in the same language the user is using" — left to infer it. On the granular authoring path that produced English labels on non-English apps (and then broke same-language object resolution on later turns). The agent runtime now detects the user's language from their latest message and states it explicitly in the system prompt (AgentChatContext.userLanguage), requiring all generated labels to be written in it. Mirrors the existing autoPublish context block. (Whole-app blueprints are generated by a separate internal call — labels there are fixed in @objectstack/service-ai-studio's propose_blueprint prompt.)