Repository navigation
fix(console): the publish-all probe warning shows a finding's userMessage, never its agent message - #35139
Conversation
…ge, never its agent message Claude-Session: https://claude.ai/code/session_01JQwxbYRqkDAGuse5Wqbohi Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbYRqkDAGuse5Wqbohi Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi Final head for L1 · 2026-11-18T07:29ZHead-sha: |
|
repo:objectstack#1 · os-warren · session_01JQwxbXKtHccbeakAgquNs9 L1 review (#34553) · 2026-11-18T07:31ZL1: ACCEPT This is the first L1 on this PR. I read the full diff against the merge-base The fix, read against the card.
Shape and scope.
Changeset.
Tests and evidence.
CI at this head, read from check-runs (52): 39 success, 13 skipped, none failed, none in progress. Must-fixNone. Should-fixNone. Notes
|
|
repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi Landing · 2026-11-18T07:32Z
Open findings: note N1 only. The seed-toast finding is #35141 (open, p2). State: ready + auto-merge armed by area o1-B (lease Dev-effort: medium · Rounds: 1 |
Requested by Warren · project thread
Fixes #34553
Clause-②: no
Metadata-protocol: none
维护者速读
message。错误带有客户句(userMessage)时显示这句话;都没带时,显示 AI 对话发布健康行在同样情况下显示的通用句(chatbot.build.issuesSummary,来自语言包)。message和fix不再进入提示。userMessage,永不显示开发者的message。对话里的健康行已按此改好(fix(console): the publish-health line shows a finding's customer sentence and folds agent text under technical details #34539),这个提示还没改。PendingDraftsBar在当前 main 上已经不再发布、也没有任何提示(见 Acceptance notes),本 PR 不改它。ui/packages/app-shell/src/preview/usePublishAllDrafts.ts里probeProblems的取值和toast.warning的description。pnpm --dir ui exec vitest run packages/app-shell/src/preview/__tests__/usePublishAllDrafts.userMessage-34553.test.tsx,预期 6 个用例全部通过(en 与 zh-Hans 各 3 个)。What changes
usePublishAllDrafts(shared by Home's Publish all and the draft-preview bar) collected the error-severity probe findings as theirmessagestrings and printed the first as the detail of the "Published, but verification found problems." warning. It now keeps the findings themselves and gives the toast:userMessageof the first error that carries one: the producer's sentence for the person who published, already in the request's language; elset('chatbot.build.issuesSummary'), the generic sentence the chat'sPublishHealthLineshows for an error set whose findings carry nouserMessage.messageandfixreach no user-facing text. The findings are read through the existingpublishHealthFromResponsereader from@object-ui/plugin-chatbot/core, which already readsuserMessage. No second reader is written, and no locale key is added.Changeset:
@object-ui/app-shellpatch.Tests
New file
usePublishAllDrafts.userMessage-34553.test.tsx: the real hook, the real client and health reader, andI18nProviderwith the shipped packs. Three cases, each run inenandzh-Hans:userMessage: the detail is that sentence, and contains neithermessagenorfix.userMessage: the detail is the pack'schatbot.build.issuesSummary, read from the shippeden/zhpack objects, and notmessage.It is its own file because
I18nProviderinstalls a module-level i18next global, which would leak into the key-echotthe otherusePublishAllDraftspins use.Acceptance notes
issues[].message, as the card says.PendingDraftsBar(ui/packages/app-shell/src/console/ai/PendingDraftsBar.tsx) no longer publishes onorigin/main: since the one-Publish change of AI 搭建:在右侧抽屉里搭建,主区域直接显示应用草稿本身;去掉嵌套预览,整屏一个发布按钮、一个改动数 #34610 it only counts drafts and points to the shell's bar, and it imports notoastand reads no publish health. Its publish now goes through this hook, so this change covers it.userMessage, so this PR uses it unchanged. Whether the Home toast should get its own sentence is a question for the seat.seedErrortext when one is sent, and the package-less by-reference loop still buildsNAME: sample data failed to loadin English. The chat's health line shows only the localized sentence there. The issue is reported to the seat, not handled here.Verification
Readings (head 386fb89, session_01JQwxbYRqkDAGuse5Wqbohi)
pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' buildunder os-verify-lock: VERDICT command-exit 0.vitest runthe new pin plus the four siblingusePublishAllDrafts.*test files: Test Files 5 passed (5), Tests 22 passed (22). VERDICT command-exit 0.pnpm --filter @object-ui/app-shell run type-check(both tsc programs, the test layer included): VERDICT command-exit 0.scripts/ablation-replace.mjs): the description read changed back toprobeProblems[0]?.message. Anchor 1 to 0, blob 6ab7b9cc5f2d to c69f90a21991. The pin went red, Tests 6 failed (6): every case in both locales. Restored: blob equals HEAD (6ab7b9cc5f2d) andgit diff HEADis empty. The test imports the hook by relative path fromsrc, so nodistis in the resolution path.dispatch-gates --commands, 38): 38 derived, 38 run, each exit 0 captured before any pipe;--ranreconciliation: 0 NOT-MEASURED, a derived zero.check:type-check-debtfirst answered exit 3 (PREREQUISITE NOT MET: its closure build timed out on the shared lock queue), and a rerun answered exit 0.vitest run scripts/(ui): Test Files 171 passed, 2 skipped (173); Tests 5092 passed, 2 skipped.overlap-check.mjs: origin/main merges cleanly, 0 open PR heads share a file. VERDICT clean exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxbYRqkDAGuse5Wqbohi