Repository navigation
fix(plugin-chatbot): the build result card draws the checklist verification line and states a failed build once - #34858
Merged
objectstack-fleet[bot] merged 2 commits intoNov 17, 2026
Conversation
…fication line and states a failed build once Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
… line Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d) · 2026-11-17T14:27ZL1: ACCEPT Read at that head: the file list (4 paths), the full diff, the PR body, card #34627 with triage 6938627484 and cloud note 6941198748, claim 6948872692, os-dev report 6950309631, and the 52 check-runs. Checklist
Must-fixNone. Should-fixNone. Notes
Landing: not governed, all checks green. Area o3-H lands it. A later push owes a delta read. |
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa Landing (area o3-H) · 2026-11-17T14:28Z
State change: ready + auto-merge enabled; |
objectstack-fleet
Bot
deleted the
claude/issue-34627-checklist-verification-line
branch
November 17, 2026 15:01
This was referenced Nov 17, 2026
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.
Requested by Yibo Wang · project thread
Fixes #34627
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
Clause-②: no
Metadata-protocol: none
维护者速读
verification行(红色,显示云端给的标签和问题数);清单失败时,搭建的草稿卡不再显示「N 处待修复」标签和红色的「fix the problems」提示,失败只在清单里说一次。清单里其它新种类的行(如之后的publish)按其status和line原样显示,不必再改控制台。verificationline, and drop the 「Completed · N to fix」 card beside a failed checklist (consumer half of objectstack-ai/cloud#4799) #34627(cloud#4799 的控制台一半)。以前控制台丢掉这一行,失败的搭建显示「核对通过 4/5」却只列 4 行,同一屏还重复说了两次失败。@object-ui/plugin-chatbot的映射和结果卡渲染,没有新的语言键,不动契约和服务端;已有三种行的显示与原来一致。回滚即 revert。ui/packages/plugin-chatbot/src/mapMessages.ts的checklistLineOf(哪些行保留、哪些丢弃);ChatbotEnhanced.tsx的BuildChecklistRows(红色行)和renderToolDetail的failureOnChecklist(什么时候不画标签和红字)。pnpm --dir ui exec vitest run packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.checklistVerification-34627.test.tsx,预期 9 个测试全部通过。What changes
mapMessages.ts).BuildResultChecklist.linesis now a union,BuildResultChecklistLine.detectBuildChecklistreads each line throughchecklistLineOf:object/view/sampleData: read as before (status+line).verification(cloudChecklistVerificationLine,{ kind: 'verification', status: 'failed', label, count }): kept only whenstatusisfailed,labelis a non-empty string andcountis a non-negative integer. Anything else under this kind is dropped; it is not read as a generic line.statusand a non-empty stringlineis kept as{ kind: 'other', servedKind, status, line }(the claim's last paragraph, from cloud note 6941198748: cloud#4809'spublishline is the next such kind).ChatbotEnhanced.tsx,BuildChecklistRows). Averificationrow is drawn in red (XCircle,text-red-600 dark:text-red-400,data-kind="verification"). It shows the producer'slabel, then the count through the existingchatbot.build.issuesCountkey (zh3 处待修复, en3 to fix). No new locale key, and no copy of the producer's wording. Anotherrow is drawn like the existing rows, bystatusandline. Rows of the existing kinds keep their markup unchanged. The chip still reads the servedpassed/total.statusisfailed,renderToolDetailgetsfailureOnChecklist. The build's draft card then draws neither its error-count chip (draft-verification-chip, "N to fix") nor the reddraft-issues-summary("fix the problems"). The findings stay behind its closed Technical details disclosure. A clean "Verified" chip and the amber warnings-only summary are not failure statements, so they draw as before.@object-ui/plugin-chatbot.detectBuildChecklistand its types are not exported from the package index, so no public type changes.Tests
New
ui/packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.checklistVerification-34627.test.tsx(9 tests). Every message goes through the realuiMessageToChatMessage:count: -1,count: '3',status: 'passed', alineinstead oflabel/count); apublishline is kept bystatus+line, and malformed ones are dropped. CONTROL: a checklist without the new line maps exactly as before.核对通过 4/5over 5 rows. Exactly one row is failed, and it reads校验未通过 · 3 处待修复in red. The draft card has nodraft-verification-chipand nodraft-issues-summary, and Technical details is still there. A new kind renders by its line. CONTROL: a passed checklist without the new line draws 7/7 over 7 rows with nodata-kind, and the draft card keeps its chip and summary. CONTROL: no checklist (an older producer) keeps the chip and summary.Readings at head 61db196
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-chatbot/(lock VERDICT command-exit 0):Test Files 102 passed (102),Tests 1038 passed (1038).pnpm --filter @object-ui/plugin-chatbot run type-check(tsc --noEmit && tsc -p tsconfig.test.json): VERDICT command-exit 0.eslint --no-inline-configon the three touched files: exit 0, 0 errors (12 warnings, allreact-hookswarnings outside this diff's hunks).checklistLineOf'sif (r.kind === 'verification') {was replaced throughscripts/ablation-replace.mjs(anchor 1 to 0, blob4268370a3031to7f5534781a7a). The new file went red:3 failed | 6 passed (9). The mapper keep test, the malformed-drop test and the 4/5 card test failed. Restored: blob equals HEAD, andgit diff HEADis empty.{ failureOnChecklist: buildChecklist?.status === 'failed' }was replaced with{ failureOnChecklist: false }(blobaf2d03d4e901tod75c90814fb0). Result:1 failed | 8 passed (9), and the failed test is the draft-card test. Restored: blob equals HEAD, andgit diff HEADis empty.node scripts/pm/dispatch-gates.mjs --ran):39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero — all 39 recorded an exit code and none of them is 3). This includespnpm --dir ui exec vitest run scripts/(Tests 5077 passed | 2 skipped).pnpm --dir ui run check:new-line-citations:0 new citation(s).node scripts/pm/overlap-check.mjs --branch=claude/issue-34627-checklist-verification-line:VERDICT clean exit 0against origin/main 7752cac.Acceptance notes
__tests__/fixtures/build-cards.schema.ts, copied at cloud f0ecef3a) predatesChecklistVerificationLine. This session cannot read the cloud repository, so the copy was not refreshed. The new fixtures follow the shape the card and the claim name, and they are not routed throughbuildCards.contract-12724.test.ts. Refreshing the vendored copy at a cloud sha that carries the line would let the contract test check them.toolResultParsers.ts, which this diff does not touch. Overlap-check reports a clean merge, and CI runs on the merge ref.Verification
Run the new test file (command in 维护者速读). In a running console, a failed AI build's result card should read "Checks passed 4/5" over five rows, with one red row naming the issue count. The draft card under it should show no "N to fix" chip and no red "fix the problems" sentence.
Human Minimum
packages/specchange.pnpm lintis CI's run.main, one pull request.packages/specnot touched.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code