fix(ai-chat): conversation-language locale, build-first default tab, honest publish errors#2351
Merged
Merged
Conversation
…st publish errors (cloud#771/#772) Trust-polish batch from the 2026-07-09 magic-flow acceptance run (objectstack-ai/cloud#771, #772): - The chat surface now speaks the CONVERSATION's language: a Chinese thread under an English console got English canned approval messages ("Looks good — build it as proposed."), English progress labels and English starter chips. detectConversationLanguage() reads the latest user message (CJK → zh) and wins over the UI locale; falls back to the UI language for fresh threads. - Default agent tab prefers BUILD when the catalog offers it: the build surface is the one that resumes its in-progress conversation, so landing on the ask tab hid the user's build thread behind a tab switch ("my build chat disappeared" → they rebuild from scratch — the user-side path of cloud#769). Ask-only users are unaffected. - Build persona stops masquerading as a data-Q&A box: its empty-state pitch and starter chips are now build-flavoured (zh + en), instead of the ask persona's "query and analyze your data" copy with metadata chips. - Publish failure toast carries the real error: the handler threw `new Error(String(failedCount))`, so users saw "Publish failed — 2". Now it surfaces the first failed item's type/name/error (+N more) or the server error message. - The floating panel's publish success now pulses emitMetadataRefresh() (the full-page AI route already did), so the launcher/app switcher lists the new app WITHOUT a page reload — "open it from the launcher" was a lie until F5. - Re-hydrated tool-call-only turns no longer render their internal placeholder ("(called todo_write, propose_blueprint)") as prose; they collapse to a quiet localized activity note. Build green (turbo app-shell+plugin-chatbot), vitest 1242 passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
2026-07-09 魔法流程验收(objectstack-ai/cloud#771 / cloud#772)的 UI 侧修复批:
detectConversationLanguage()读最近 user 消息(CJK→zh),UI locale 只作新会话回退。throw new Error(String(failedCount))→ 用户看到 "Publish failed — 2";现在给出首个失败项的 type/name/error(+N more)或服务端 error.message。emitMetadataRefresh()(全页 /ai 路由早已有):launcher/app 切换器无需 F5 即出现新 app——"从启动器打开"不再说谎。测试
Refs objectstack-ai/cloud#771, objectstack-ai/cloud#772
🤖 Generated with Claude Code