Repository navigation
feat(chatbot): retire the build chat frontend - #37720
Conversation
The build agent is retired. Delete the code that drew its conversation: the proposed-plan, proposed-change, build-result and builder-handoff cards with their detectors and props in plugin-chatbot; the Build Doctor drawer, pending-drafts bar, spreadsheet import bar, maker start chips and empty state, and Studio's copilot panel and topbar entry in app-shell; and the 280 released i18n keys only that UI read. Ask chat (dock and full page) and Studio keep working, and an old /ai/build address still lands on the ask chat. publishHealthFromResponse and PublishHealth stay because the preview's Publish all reads them. Tests that only pinned removed code are deleted; the rest are retargeted to the ask chat. Seventeen tests that reach AiChatPage now preload @object-ui/plugin-grid at module top, which the deleted import bar used to pay for during collection. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjMnLQVLzcho6g8WAL3
…-axvsip # Conflicts: # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.changesCount-11787.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.copilotDoors-12894.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.copilotDraftBadge-12725.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.createAppAccessibleName.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.graphite-37455.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.packageLessFlows-11553.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.publishPosture-12517.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.publishReadOnlyReason-12303.test.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.rightSlot-12725.test.tsx
…odule check-vi-mock-specifiers flags a vi.mock whose relative path resolves to nothing; #37579 added it against StudioAiCopilot, which this branch deletes. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjMnLQVLzcho6g8WAL3
…-axvsip # Conflicts: # ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
…and test-only patches Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjMnLQVLzcho6g8WAL3
|
epic:#5024#1 · hotlong · session_01Q4EjjPTfYJJKJmzZ3By7a7 维护者速读
Seat opinion: approve and land. 席位核对Seat L1 verdict: ACCEPT · head
|
|
epic:#5024#1 · hotlong · session_01Q4EjjPTfYJJKJmzZ3By7a7 席位核对 — ACCEPT · epic:#5024#1 · head
|
|
epic:#5024#1 · hotlong · session_01Q4EjjPTfYJJKJmzZ3By7a7 Contract reviewServed-tier: Read: card #37682 (body and all four comments), PR #37720 (body, 223-file list, net diff against merge-base
① Derived judgmentsMeasured by diffing the declarations of base and head, not by the PR body.
② Semver level
③ Boundary flags
④ Design judgmentM1 (must-fix) — stated in ②: the declaration reads S1 (should-fix) — two consumer documents still teach the removed surface, and one ships in the tarball. S2 (should-fix) — S3 (should-fix, by a follow-up card, not in this PR) — Per scoped file:
Nits:
No finding touches the removed files themselves: The FAIL is M1 alone. A head that carries Implemented-by: VERDICT: FAIL |
… page; declare the narrowing The plugin-chatbot README (shipped in the tarball) and the docs page still described the build cards and their props. Both changesets now read Clause-② no (narrowing), and the frontend one names ObjectChatMessage. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjMnLQVLzcho6g8WAL3
|
epic:#5024#1 · hotlong · session_01Q4EjjPTfYJJKJmzZ3By7a7 Contract reviewServed-tier: Delta review. The first-round record on head Check-runs on
① Derived judgmentsThe delta changes no export, prop, type member or key. One judgment moves:
Every other ① judgment of the first round stands unchanged. ② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nits:
Implemented-by: VERDICT: PASS |
Resolve the conflict with the move-only split of StudioDesignSurface.tsx: take main's split and drop the copilot from studioSurfaceRightSlot.tsx and its consumers, as this branch had done in the unsplit file. The right slot holds only the open item's properties. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjMnLQVLzcho6g8WAL3
|
epic:#5024#1 · hotlong · session_01Q4EjjPTfYJJKJmzZ3By7a7 Contract reviewServed-tier: Second delta review. Earlier records: FAIL on Check-runs on this head are not concluded: 6
① Derived judgmentsNo public-surface change. The four resolved files are internal to ② Semver levelUnchanged. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nits:
The verdict is on the merge resolution. It is not a statement that this head's gates are green; they were still running. Implemented-by: VERDICT: PASS |
|
epic:#5024#1 · hotlong · session_01Q4EjjPTfYJJKJmzZ3By7a7 Dogfood battery on
|
|
epic:#5024#1 · hotlong · session_01Q4EjjPTfYJJKJmzZ3By7a7 席位核对 — ACCEPT · epic:#5024#1 · head
|
Requested by Jack · project thread
Fixes #37682
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: updated here
维护者速读
What changes
The build agent's chat frontend is deleted. Ask chat (dock and
/ai/ask) and Studio keep working;/ai/build/…addresses still redirect to the ask chat.@object-ui/plugin-chatbot: the build-only cards (proposed plan, proposed changes, build result and publish line, builder handoff, designing-plan wait), their detectors, the build-progress mapping and the 59 props that fed them.@object-ui/app-shell: the Build Doctor drawer, the pending-drafts bar, the spreadsheet import bar, the maker start chips and empty state, Studio's copilot panel and topbar entry, and the build branches inAiChatPage,ChatDockandConversationsSidebar.@object-ui/i18n: the 280 released keys only that UI read, and the zh-Hant generator'sGATE_ONLY_KEYS, which had nothing left to leave out.publishHealthFromResponse/PublishHealthstay: the preview's Publish all reads them.Both changesets say the removal is breaking (
!in the summary line, a BREAKING banner andClause-②: no (narrowing)). Theplugin-chatbotREADME, which ships in the tarball, andcontent/docs/frontend/plugins/plugin-chatbot.mdxno longer describe the removed props and fields. The ADR-0087 marker isruntime-export-retiredfor the package exports andno-migration-prescriptionfor the keys;check-adr-0087-registrationpasses.Removed published exports, by package
@object-ui/plugin-chatbot(root entry)detectDraftResult,detectProposedPlan,detectProposedChanges,detectBuilderHandoff,detectBuiltAppPackage,detectAuthoringVerdict,detectReplayOutcome,buildProgressFromDraftReviewDraftReview,ProposedPlan,ProposedChanges,BuilderHandoff,ReplayOutcome,PublishOutcomeChatbotEnhancedToolInvocation(andSeamToolInvocation):draftReview,proposedPlan,proposedChanges,builderHandoff,replayOutcomeChatbotEnhancedMessage(andSeamChatMessage):buildProgress,blueprintProgressChatbotLabels:designingPlanLabel,designingPlanHintsFloatingChatbotPropsandChatbotEnhancedProps(59 each, the same set):onBuildMaterialized,onBuildResult,onDesignBuiltApp,onDiscardDrafts,onDraftArtifacts,onOpenBuilder,onOpenBuiltApp,onPlanApprovalPendingChange,onPreviewDraft,onPreviewDraftApp,onPublishDrafts,onReviewDraft,onReviewDraftsbuilderHandoffOpenLabel,builderHandoffSupersededTitle,builderHandoffTitleLabel,changesAppliedLabel,changesApplyingLabel,changesConfirmedLabel,changesConfirmHintLabel,changesConfirmLabel,changesConfirmMessage,changesDraftedLabel,changesFailedLabel,changesTitleLabel,changeVerbLabels,designBuiltAppLabel,nextStepsLabel,openBuiltAppLabel,planAdjustLabel,planAnswerMessage,planApproveDefaultsMessage,planApproveHintLabel,planApproveLabel,planApproveMessage,planAssumptionsLabel,planBuildingLabel,planBuildNewAppMessage,planBuiltLabel,planDeferredLabel,planExtendExistingMessage,planExtendLabel,planQuestionsLabel,planReadyLabel,planTitleLabel,previewDraftLabel,publishDraftsLabel,publishedLabel,resolveAppLabel,resolveFieldLabel,resolveFieldTypeLabel,resolveObjectLabel,toolReviewLabel,verifiedLabelautoPublishDrafts,fetchPendingDraftCount,getArtifactAction,publishFromShellBar,subscribeMetadataRefresh@object-ui/plugin-chatbot/corePublishOutcome@object-ui/app-shellConversationsSidebarpropincludeAskConversations(the sidebar lists the active agent's conversations)@object-ui/i18n@object-ui/i18n@18.6.0: 271 language-pack keys (209 from all eleven locales, 6console.ai.*Messagekeys from en and zh-Hans, the rest with their plural siblings) and 9engine.studio.copilot.*/ slot keys of the Studio namespace. The full list is in.changeset/37682-i18n-retire-build-chat-keys.md.Tests
outbound-agent-messages, the three maker scope tests, the zh-Hant gate test).useChatConversationcache sanitising now uses a plain tool invocation; theAiChatPageruntime-message seam test uses the ask agent and a pending approval;ChatDockrequest-context pins that a build agent in the catalog binds no package; the ChatDock menu test pins Share and Expand with no build doctor.Acceptance notes
Four leftovers are deliberately not in this PR. They are not build UI, and removing them reaches past this card's surface. The seat decides which ones to file:
chatDockTarget.ts(BuilderHandoffState,ChatDockHandoff,ambientAppPackage),chatDockControl, the handoff inuseConsoleChatDock, andAiAddressRedirect's handoff branch. Nothing sets a handoff any more.assistantBus,usePlanApprovalPending, and the pending marker onAssistantTopBarButton. Nothing raises plan approval any more.hooks/surfaceAgent.ts, anduseChatConversation'srekeyScopeand legacy options that only served them.ChatDockConversationalways sendsshowDebug: falsenow that the Build Doctor drawer is gone, andchatDockTarget'sshowDebugfield has no reader.One more build entry outside this diff:
ui/apps/console/src/pages/system/AppManagementPage.tsx:691still draws an ungated "Edit with AI" button that opens{ agent: 'build', packageId }. It behaved the same on main once build closed, so it is not this diff's regression; the seat files it.Smaller stale text, also left: a historical comment in
ui/scripts/check-eager-closure-budget.mjsnaming the deleted bars, the pendingui/.changeset/12724-plan-card-posture.mdthat describes the deleted plan card, and comments in the preview'susePublishAllDrafts.Verification
Read first:
ui/packages/plugin-chatbot/src/index.tsx(the export list),ui/packages/app-shell/src/console/ai/AiChatPage.tsx(the ask-only path that stays), and the two changesets.Two-minute check:
pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/ChatDock.requestContext-30043.test.tsx packages/app-shell/src/console/ai/__tests__/AiChatPage.runtimeMessageSeam.test.tsx(the dock binds no package for a build agent; the full page keeps its approval seam).Main was merged in after #37579 landed (Studio's top-left rows). Nine Studio tests conflicted. Main's new tests that assert the copilot and its AI assistant button were dropped with it; the rest keep main's assertions, and the right slot's toggle stays the title row's only control.
Two dispatch-gate fixes this change needed:
check-test-source-alias: 17 tests that reachAiChatPagenow load@object-ui/plugin-gridat module top. The deleted spreadsheet import bar used to load it during collection; without it, the page's ownimport('@object-ui/plugin-grid')would be paid inside a clocked case.check-hand-rolled-comment-mask: the DEBT entry forconsole-namespace-3546.test.tsxis deleted, because the code that carried it went with the build keys.check-vi-mock-specifiers: thenoTopBar-37456suite's mock of the deletedStudioAiCopilotis dropped.Local readings
pnpm console:build: 81 of 81 tasks succeeded.tscin app-shell, bothtsconfig.jsonandtsconfig.test.json: exit 0 on the merged head.eslint
--quietover the 128 changed.ts/.tsxfiles: 0 errors.Affected suites before the merge: 707 files, 6156 tests passed.
After the merge,
packages/app-shell/src/views/studio-designpluspackages/i18n: 386 files, 4184 tests (4170 passed, 13 skipped, and 1 failure fixed and re-run green).pnpm --dir ui exec vitest run scripts/: 174 files (171 passed, 2 skipped, 1 failed: the vi.mock gate above, fixed, and its file re-run green with 57 tests).dispatch-gates: all 42 derived commands ran before the merge. Three failed and were fixed (ADR-0087 marker, test-source-alias, the scripts suite). On the merged head,
check-adr-0087-registration --base origin/main,check:test-source-alias,check:i18n-keys,check:i18n-driftand the scripts suite were re-run and exit 0.check-platform-checklist --changed-from origin/mainandcheck:new-line-citationsalso exit 0.check-i18n-dead-keys: no new dead key, and 16 fewer than base.The full ui suite with
--maxWorkers=3was still running at push time. Its first attempt, run alongsideconsole:build, was killed for memory. CI's sharded run is the verdict; the local result goes in the card report.Dogfood battery (
pnpm --filter @objectstack/dogfood testunderos-verify-lock, closure built first) on head18cec5f4: running; the reading goes in the card report.After feat(plugin-grid,core): the Import Wizard names the column a lookup cell was scoped by; a scope no read could filter by says so #37706 landed, main was merged again: the de-quote-pairing pin is 129 (135 minus this PR's six spans).
overlap-check: main merges cleanly. Two textual conflicts with open PRs outside epic cloud#5027:de-quote-pairing-3876.test.ts: a count pin, 133 → 127 here and 133 → 135 there.StudioDesignSurface.tsx: a move-only split of the file.Whichever PR lands second takes the other's change.
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4EjjMnLQVLzcho6g8WAL3