Commit 433358a
fix(app-shell): make AI-build "开始搭建" send a gate-matching approval (#2023)
The proposed-plan card's confirm button ("开始搭建") sent the Chinese
message "就按这个方案搭建吧。", which the cloud confirm gate's APPROVAL_RE
(service-ai-studio confirm-gate.ts) does NOT recognize as approval — it
anchors Chinese approval on 确认 / 直接搭建. So clicking sent a message the
agent re-proposed on instead of building, and the button looked inert
(typing a "确认…" reply worked, which is the tell).
Align both zh approve messages with the gate (确认-anchored):
planApproveMessage "就按这个方案搭建吧。" → "确认,开始搭建。"
planApproveDefaultsMessage "就按你的合理假设直接搭建,…" → "确认搭建,未决问题按你的合理假设和默认处理。"
across the two hosts that wire them (i18n zh locale used by AiChatPage,
and ConsoleFloatingChatbot's inline zh locale). English already matched
("build it as proposed" / "build it with your best"). Adds an i18n test
that pins both messages to the gate's 确认 anchor so a future reword can't
silently re-break the button.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8c34607 commit 433358a
3 files changed
Lines changed: 30 additions & 6 deletions
File tree
- packages
- app-shell/src/layout
- i18n/src
- __tests__
- locales
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
101 | 116 | | |
102 | 117 | | |
103 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | | - | |
1176 | | - | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
1177 | 1182 | | |
1178 | 1183 | | |
1179 | 1184 | | |
| |||
0 commit comments