Skip to content

fix(ui): the AI build chat says what really happened — plan card states, queued sends, preview empty state, customer wording, labels - #33333

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-vliw66
Nov 14, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-vliw66

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Refs #32984 (items 1, 2 and 3 in full; the ui halves of items 4 and 5). Items 4 and 5 each keep a producer half in the cloud build agent, named under Acceptance notes, so this PR does not close the card.

Clause-②: yes (widening) — measured on this diff: ChatbotEnhancedProps (exported by the published @object-ui/plugin-chatbot) gains three optional props, resolveObjectLabel, resolveFieldLabel and resolveFieldTypeLabel; the published @object-ui/i18n packs gain ten keys and one count family, chatbot.build.needsAttention (its base key plus each locale's plural slots), in all eleven shipped locales, and change or remove none.
Metadata-protocol: none

维护者速读

  • 改了什么:AI 搭建聊天五处:方案卡徽标按真实进度显示(已确认 → 正在搭建… → 已搭建,或「未搭建成功 · 没有创建任何内容」并重新给出「开始搭建」);回复进行中输入的消息排队在输入框上方、回复结束后自动发送,可取消;新会话创建期间的第二条消息并入第一条,不再丢(同一条连按两次只发一次,附件也只带一次);草稿预览里未发布对象的列表显示空状态和「发布后这里会显示记录」,不再显示 OBJECT_NOT_FOUND;搭建问题先给一句面向客户的话,给 agent 的原文收进默认折叠的「技术详情」;修改确认卡用对象、字段、字段类型的显示名;已发布草稿徽标上的「N 项需要处理」走语言包,不再是英文。
  • 为什么改:原来只要出现过一次 apply_blueprint 调用,方案卡就显示「已搭建」,哪怕六次都被拒、什么都没建;回复中途发的消息、新会话创建瞬间的第二条消息会无声丢失;预览页把引擎的报错原文给客户看;给 agent 的指令(Do NOT publish…)原样展示;确认卡全是机器名。
  • 风险与回滚:纯界面。方案卡判定改为读 apply_blueprint 结果的 status(drafted / published 才算已搭建),若云端改了这个信封字段,卡会显示「未搭建成功」而不是误报已搭建。预览空状态只拦预览模式下、本对象列表读取的 OBJECT_NOT_FOUND 一种答复,其他错误照常显示。回滚即 revert。
  • 先看:ChatbotEnhanced.tsx 的 resolvePlanBuildStates 与 applyBlueprintOutcome(徽标判定);同文件 handleSubmit 的排队分支和发送 effect;preview/unpublishedObjectReads.ts(只吞那一种答复)。
  • 两分钟验证:pnpm --dir ui exec vitest run packages/plugin-chatbot/src/__tests__/ChatbotEnhanced.buildChat-32984.test.tsx packages/app-shell/src/views/ObjectView.unpublishedPreview-32984.test.tsx,预期 Tests 15 passed (15)。
  • 需要你做的:无,席位落地。

What changes

  • Item 1, the plan card's badge (ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx). builtPlanIds counted any apply_blueprint after a plan as built, running or refused. It is replaced by resolvePlanBuildStates, which gives every plan card one of pending · confirmed · building · built · failed. An attempt is built only when its result envelope says drafted or published; a call with no result is building while the turn is live and failed once it has ended; a refusal (blueprint_not_confirmed and the like) or an errored call is failed. Any built attempt after the plan outranks earlier failures. A click on Build it reads confirmed until the next attempt speaks: the approval is keyed to the tool-invocation count at the click, so an attempt that already failed before the click does not overwrite it. failed shows "Not built — nothing was created" beside Build it and Adjust, so the user can approve again. An awaiting_confirmation answer still leaves the card pending (objectui#8343), and a running or built plan is still never offered a second Build it ([WIP] Update action run status for job #432). resolveProposalCardState learns building and buildFailed for the header.
  • Item 2, a message typed while a turn runs. The composer was disabled while the assistant answered. It now stays usable: a submit while isLoading goes into a queue drawn above the box ("Sends when the current reply finishes"), and the oldest queued message is sent on the next task after the turn ends. Each queued item has Cancel, which puts its text back in the box. The not-sent rollback (sendError tests) is unchanged.
  • Item 2, the first send of a new conversation (ui/packages/app-shell/src/console/ai/AiChatPage.tsx, useDeferredFirstSend). While the first send is creating the conversation, a second submit was dropped without a word (it kept the first message and discarded the second). It now joins the held first message, which has not left the browser yet, so both reach the agent as the first turn. A repeat (the same text and the same files, a file being the same object or the same name, size, type and lastModified) is held once; a different message joins, and a file both carry is not doubled.
  • Item 3, the draft preview of an unpublished object. New ui/packages/app-shell/src/preview/unpublishedObjectReads.ts: withUnpublishedObjectReads(ds, onUnpublished) wraps the data source so a find the engine refuses with OBJECT_NOT_FOUND (read through answeredLoadFailure) answers an empty page and reports the object. That holds for any object the engine has not registered, read through this source (a lookup into another drafted object included), not only the listed one. objectViewListRenderer.tsx installs it only when usePreviewDrafts() says the page is in the draft preview, and only the listed object's own empty state changes, to "Records appear here once you publish" with a sentence on why. Any other failure (a 403, a 500, a refused findOne), and every read outside the preview, reaches the list unchanged.
  • Item 4, build issues. The chip reads "N to fix" through the pack (it was English in every locale). The issues block leads with one customer sentence (chatbot.build.issuesSummary, or warningsSummary when there are only warnings); the verification messages, written for the agent, move into a closed details element, "Technical details". Folded in (seat ruling, same defect class): the published draft badge's failed-item suffix ("· N need attention", English with an s picked on === 1) now reads the count family chatbot.build.needsAttention.
  • Item 5, the change card. Three optional props resolve names: resolveObjectLabel(name), resolveFieldLabel(objectName, fieldName) and resolveFieldTypeLabel(type). The card's target reads Customer · Phone with the machine name on the tooltip, and the params lead with the field type's localized name. AiChatPage passes resolvers built from readObjectsByName (each object by name, when a change card asks: the chat dock mounts this pane on an app's object-list open, where reading the whole objects registry at render would undo objectui#12811), useObjectLabel and fieldTypeName(type, locale). openPathObjectReaders-12811.test.ts gains AiChatPage's row, kind byName. A name the metadata does not hold yet (a field the change is about to add) shows as given.
  • ui/packages/i18n: ten keys and the needsAttention count family in all eleven locales (chatbot.plan.confirmed, chatbot.plan.buildFailed, chatbot.build.issuesCount, issuesSummary, warningsSummary, issuesDetails, chatbot.composer.queued, queuedCancel, preview.unpublishedList.title, message). zh-Hant is the generator's output (gen:zh-hant). chatbot.build.issuesCount joins COUNT_NEUTRAL.invariant in count-families-11445.test.ts: in every pack the number stands before an infinitive, after a label, or with a counter, so no word agrees with it.
  • .changeset/32984-build-chat-honest-states.md: patch for @object-ui/plugin-chatbot, @object-ui/i18n and @object-ui/app-shell, with both declaration lines.

Tests

New pins, each driving the real component (and, for the chat, the real uiMessagesToChatMessages mapper over wire-shaped parts):

  • plugin-chatbot/src/__tests__/ChatbotEnhanced.buildChat-32984.test.tsx, 12 cases. Item 1: six refused applies read failed with Build it offered again; an errored apply reads failed; a running apply reads building with no Build it; an apply the ended turn never answered reads failed; refused then built reads built; a click after a refusal reads confirmed. Item 2: Enter during a turn queues the text in sight and sends it when the turn ends; Cancel restores the text; control, Enter with no turn sends at once. Item 4: the summary sentence carries no agent text, the details element is closed and holds it, the chip reads 1 to fix. Item 5: object, field and type by label with the machine names in title; control, an unknown name shows as given.
  • app-shell/src/views/ObjectView.unpublishedPreview-32984.test.tsx, 3 cases through a real ObjectView and ListView under a forced PreviewModeProvider: the empty state with the publish sentence and no OBJECT_NOT_FOUND; control, the same answer outside the preview is still an error; control, a 500 inside the preview is still an error.
  • app-shell/src/console/ai/__tests__/useDeferredFirstSend.test.tsx: a second message during the create joins the first; the double-submit case submits the same text twice and expects it once; a doubled submit with one file is held once (text once, file once); control, a second submit with a different file joins, and the file both carry is not doubled.
  • plugin-chatbot/src/__tests__/ChatbotEnhanced.needsAttention-32984.test.tsx, 3 cases under a real I18nProvider (its own file, so the provider's module-level global cannot leak into the provider-less pins): zh-Hans reads 「2 项需要处理」 and no English; en reads 1 needs attention and 2 need attention; control, no failed item, no suffix.
  • Existing fixtures updated to the new truth: ChatbotEnhanced.test.tsx fixtures give their apply_blueprint a drafted result (one with no result now reads failed once the turn has ended), and the optimistic-click tests in ChatbotEnhanced.test.tsx, sendError and planApprovalPending-11666 expect proposed-plan-confirmed. awaitingConfirmBuild-8343's running case renders with isLoading and expects building.

Ablations (scripts/ablation-replace.mjs, each anchor hit once, each restored with git diff HEAD empty; ui vitest resolves @object-ui/* from source, so no rebuild leg):

mutation red
A1 any apply_blueprint result counts as built 2 item-1 cases, 2 failed / 16 passed
A1b a running apply counts as built 3 item-1 cases and #8343's running case, 4 failed / 14 passed
A2 send immediately while a turn runs both queue cases, 2 failed / 10 passed
A2b a second first-send is dropped (the old branch) the join case
A3 no unpublished-object wrapper the empty-state case, 1 failed / 2 passed
A4 technical details open the item-4 case
A5 no label resolvers the label case
B1 the old join condition (`content !== held.content
B4 the old English suffix the zh-Hans case, 1 failed / 2 passed (the en forms happen to match the old English)

A2's first attempt was refused by the tool (its multi-line anchor was passed through a shell string and never matched; nothing was written) and re-run with the anchor passed as an argument.

Acceptance notes

  • Item 4's producer half (carrier: cloud). The text the customer should read is still made in the cloud build agent: apply_blueprint's verification issues[].message is written to the agent ("Do NOT publish…"). The ui now folds it away behind a generic sentence; a per-issue customer sentence needs the producer to send one.
  • Item 5's producer half (carrier: cloud). A field the change is about to add is not in the metadata yet, so it keeps its machine name. The changes_proposed rows could carry the label the agent chose.
  • Item 2, as reported. The card's mechanism could not be reproduced here (the chat server is in cloud). Measured on main: the composer textarea was disabled while isLoading, so the two paths that could lose a message in the ui were Enter during a turn (now queued) and the second submit during the first send's create (now joined).
  • Producer issue, left. PublishHealthLine prints the publish-health issue messages the server sends, verbatim. The words are the producer's; not changed here.
  • The card's "Also seen, smaller", not addressed here. The 「· 补充」 tag reproduces on the tree: a plan field the producer marks suggested: true draws a dashed chip ending 「· 补充」 (chatbot.plan.suggestedField), with no legend and a tooltip that shows only the machine name, so nothing says what it means. The roughly 5 s blank thread before the first bubble reproduces as a mechanism, read on the tree, not timed: on a new conversation the first message waits in useDeferredFirstSend's stash, outside the transcript, until POST /conversations answers and the pane remounts on the new id, so nothing is drawn for that long; the 5 s itself is the server's latency and was not measured here.

Verification

All readings at head 7888f40d (base d4fbb4db, origin/main when the branch was cut) unless a line says otherwise.

Tests

Round 1 (head 09f30cfb): plugin-chatbot + i18n Test Files 199 passed (199); app-shell, the 95 files that import the changed modules, Tests 744 passed (744); the two new pin files Tests 15 passed (15). Type-check of i18n, plugin-chatbot and app-shell exit 0.

Patch round 1 (head 7888f40d):

  • pnpm --dir ui exec vitest run packages/plugin-chatbot/ packages/i18n/ packages/app-shell/src/console/ packages/app-shell/src/preview/ packages/app-shell/src/views/ObjectView.unpublishedPreview-32984.test.tsx at b258a44f's content: Test Files 517 passed, with 1 failed (518): all-locales-key-parity asked the new family for its base key in every pack. The base key landed in 7888f40d, and packages/i18n/ plus the needsAttention pin then read Test Files 103 passed (103), Tests 1897 passed | 13 skipped (1910), VERDICT command-exit 0. The 517 green files include openPathObjectReaders-12811.test.ts (the CI red on 09f30cfb) and useDeferredFirstSend.test.tsx.
  • Type-check: the @object-ui/app-shell^... closure rebuilt, then pnpm run type-check in i18n, plugin-chatbot and app-shell chained with &&: VERDICT command-exit 0.
Gates

dispatch-gates --commands --repo objectstack-ai/objectstack at 7888f40d derives the same 40 commands as round 1; all 40 plus pnpm check:changeset-fixed exit 0, each code captured before any pipe. --ran with exit codes: "40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED (a DERIVED zero)". Round 1's one red, check:test-source-alias at 6d7affa4, was fixed in 09f30cfb. The CI type-check lanes the derivation names as not runnable locally are left to CI.


Generated by Claude Code

The plan card follows the build (confirmed, building, built, not built), a
message typed during a reply waits above the composer instead of being lost,
the draft preview of an unpublished object draws an empty list, build issues
lead with a customer sentence, and the change card names objects and fields
by label.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5pAEP2nn4Qk4wi1V3u
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 14, 2026
@objectstack-fleet objectstack-fleet Bot added the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 14, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 09f30cfbc0cac50347085f553e1dd401188f42a6
Local-runs: none

Read: card #32984 body and all four comments (triage 6847536755, claim 6879542746, amendment 6879628332, os-dev-report 6881099882); PR #33333 body and its 24-file list; the net diff d4fbb4db..09f30cfb; the check-runs on this head as of about 17:03Z. Face: declaration. No schema, no governed path and no narrowing in the diff, and Governed Surface Queue Guard is green.

① Derived judgments

Published surface, measured on the diff:

  • @object-ui/plugin-chatbot: RIGHT, a widening. ChatbotEnhancedProps gains three optional props: resolveObjectLabel, resolveFieldLabel and resolveFieldTypeLabel (ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx:937-941). That is the interface's only hunk. No prop is removed, made required or retyped. ChatbotLabels, ChatbotEnhancedToolInvocation, ChatbotEnhancedMessage and the index.tsx export list are unchanged. The new resolvePlanBuildStates / PlanBuildState exports, and the two optional input fields resolveProposalCardState gains (building, buildFailed), are module-level only. Neither src/index.tsx nor src/core.ts re-exports them, so they publish nothing. builtPlanIds was a component-local memo, so removing it narrows nothing.
  • @object-ui/plugin-chatbot behaviour (accept-set reading): RIGHT, a widening. While isLoading is set, the composer textarea is no longer disabled (:5471; it was also disabled while promptStatus read streaming). A submit during the turn now queues and sends when the turn ends (:3058). It used to go nowhere. The host's disabled prop still disables the composer. Input that was refused is now accepted, and nothing that was accepted is refused.
  • @object-ui/plugin-chatbot plan-card semantics: RIGHT, with one note. A plan reads built only when the apply_blueprint envelope says drafted / published. A result-less apply reads building while isLoading is set and failed once it is not. So the [WIP] Update action run status for job #432 no-second-Build-it guard for a running apply now depends on the host passing isLoading. All three in-repo hosts pass it (AiChatPage.tsx, renderer.tsx, and FloatingChatbot.tsx via renderer's props). A third-party host that never sets isLoading (default false) would see an in-flight apply as "Not built" with Build it offered again. This is a semantic dependency on an existing optional prop, not a type change, and is not contract-blocking. Grade: nit, worth one line in the prop's jsdoc.
  • @object-ui/i18n: RIGHT, a widening. All eleven shipped packs (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant) gain the same ten leaf keys under two new groups, chatbot.composer and preview.unpublishedList, and four existing groups: chatbot.plan.confirmed, chatbot.plan.buildFailed, chatbot.build.issuesCount, chatbot.build.issuesSummary, chatbot.build.warningsSummary, chatbot.build.issuesDetails, chatbot.composer.queued, chatbot.composer.queuedCancel, preview.unpublishedList.title and preview.unpublishedList.message. Each locale file shows 18 additions and 0 deletions. None of the new names existed on main, so nothing is overwritten. No key is renamed or removed, and the values are translated, not copied English. chatbot.build.issuesCount joins COUNT_NEUTRAL.invariant (count-families-11445.test.ts), which is test-only.
  • @object-ui/app-shell: RIGHT, nothing published. The package is private: true. The new preview/unpublishedObjectReads.ts, the useDeferredFirstSend join and the AiChatPage resolvers ship inside the Console bundle only, and none is added to src/index.ts.

Code findings (not contract, non-blocking at this face):

  • should-fix: ui/packages/app-shell/src/console/ai/AiChatPage.tsx:1032. The join condition (text differs, OR the second submit carries any file) dedupes a doubled submit only when it carries no files. A fast double submit with an attachment now joins both the text (x + blank line + x) and the files twice into the first turn. The dedupe should compare the files too, not only test whether files are present. The test re-pinned at useDeferredFirstSend.test.tsx (the double-submit case) covers only the file-less case.
  • nit: ui/packages/app-shell/src/preview/unpublishedObjectReads.ts:23-26, echoed in the PR body and changeset ("on that one object's list read"), says a read of some OTHER object reaches the list unchanged. The wrapper (:53) catches OBJECT_NOT_FOUND on every find through the wrapped source, whatever the resource. Only the empty-state swap is limited to objectDef.name (objectViewListRenderer.tsx). The behaviour is preview-only and defensible, since any not-registered object holds no records. The prose overclaims.

② Semver level

  • The changeset .changeset/32984-build-chat-honest-states.md grades @object-ui/plugin-chatbot, @object-ui/i18n and @object-ui/app-shell patch. That is RIGHT: Metadata-protocol: none, and AGENTS.md (Post-Task Checklist 3) says "a non-protocol change, widening or breaking, ships patch", with the level following the protocol kind alone. Every package the diff moves is named, and no minor is introduced against a none.
  • Clause-②: yes (widening) is RIGHT. It appears line-initial in both the PR body and the changeset body. What it names (three optional props and ten keys in eleven locales, nothing removed or narrowed) matches the diff measured in ①. Metadata-protocol: none is RIGHT: no authorable metadata key, value or type moves.
  • The claim's declaration lines (6879542746) are unchanged by the amendment and match the PR's.
  • Check Changeset concluded success on run 43618589473. A second run (43618848797, started 17:02Z after a PR event) is still in progress.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • out_of_scope 1 (carrier: cloud, item 4 producer half). Answered: real and outside ui/**. The apply_blueprint verification issues[].message is agent-directed, and a per-issue customer sentence needs the producer. Routed to the seat to file as a cloud card with the dev's dedupe words. This is why the PR says Refs, not Fixes, and that is correct under the claim's scope line.
  • out_of_scope 2 (carrier: cloud, item 5 producer half). Answered: real. A field a change adds has no metadata label until it exists, and changes_proposed rows would need to carry the agent's label. Routed to the seat to file as a cloud card.
  • out_of_scope 3 (carrier: none, noted, not filed). The failedCount suffix "need(s) attention" is hard-coded English in the published ChatbotEnhanced.tsx, and PublishHealthLine prints publish-health messages verbatim. Answered: real, ui-side, and outside this card's five Acceptance lines. Escalated to the seat to file as a domain:ui card. An English literal in a published component is the same defect class as item 4's chip.
  • Card residue, not in the report. The card's "Also seen, smaller" items (the unexplained 「· 补充」 tag on plan fields, and the roughly 5 s blank thread before the first user bubble) are outside the five Acceptance lines and appear in neither the PR nor the os-dev-report. Escalated to the seat: file them, or name them in the card's residue when it closes.
  • Item 2, "could not be reproduced here". Accepted. The PR closes the two ui paths that could lose a message: Enter during a turn, now queued, and a second submit during the first send's create, now joined. A server-side drop, if one exists, is outside ui/**, and nothing in the diff hides it.
  • Claim surface drift. The new ui/packages/app-shell/src/preview/unpublishedObjectReads.ts and the useDeferredFirstSend change go beyond the amendment's named files (6879628332 lists "label props in AiChatPage.tsx"). Both sit inside the claim's hard boundary (ui/**), and the original claim's console/ai/**. Noted, not blocking.
  • Dev NOT MEASURED items. The full views/ vitest run and the CI type-check lanes were left to CI. They are covered by Test UI (1/16)…(16/16) and Type Check UI, all still in progress at this read. The report's red check:test-source-alias at 6d7affa4 was fixed at this head (09f30cfb, the lint import at module top).
  • Security: none reported, none seen.
  • Gate verdicts on this head, read at about 17:03Z.
    • Success: PR-body guards, Governed Surface Queue Guard, Check Changeset (43618589473), Check PR Size, Auto Label, Type Check · workspace, Type Check · debt ledger, Build UI Deps, Plan Test UI shards, Live E2E UI, Test Core, Dogfood Regression Gate, filter.
    • Still running, no conclusion yet, and NOT read as green: Test UI (1/16)…(16/16), Type Check UI, Lint UI, Build & E2E UI, Type Check · source gates, Type Check · consumer gates, Lint · ESLint, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure, and the second Check Changeset (43618848797).
    • Skipped by the path filter or opt-in: Build Core, Test Core shards, Build Docs, UI Published Artifacts, Temporal Conformance, Dogfood Verify CLI, Packed-tarball smoke, 18.x upgrade harness, Queue verdict, Borrowed queue verdict.
    • None failed. This verdict covers the contract only. Landing still waits on every running check-run above concluding green, and the PR is still a draft.

Implemented-by: claude/project-thread-vliw66
Reviewed-by: session_01FEkQ5nWoa1Ze1QzjRTSYXD

VERDICT: PASS

A doubled first send with files is held once; the preview wrapper's texts say
what it does; the published draft badge's failed-item count goes through the
pack; the chat pane's label resolvers read objects by name.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5pAEP2nn4Qk4wi1V3u
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7888f40dcee85d04950ef3d0d364c1a1d7955f65
Local-runs: none

Read: card #32984 body and all five comments (triage 6847536755, claim 6879542746, amendments 6879628332 and 6881185212, os-dev-report 6881099882); PR #33333 body as rewritten for this round, its 26-file list, the net diff d4fbb4db..7888f40d and the delta 09f30cfb..7888f40d (18 files); round-1 record 6881172518; the seat's patch order 32984-patch-1 (items 1 to 6); the check-runs on this head as of about 17:57Z. Delta round: the whole PR is judged again on this head. Face: declaration. The diff holds only ui/** and one root changeset, with no published schema, no governed path and no narrowing, and Governed Surface Queue Guard is green on this head.

① Derived judgments

Published surface, measured on the net diff at this head:

  • @object-ui/plugin-chatbot types: RIGHT, a widening. ChatbotEnhancedProps gains three optional props, resolveObjectLabel, resolveFieldLabel and resolveFieldTypeLabel (ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx:942-946). The delta adds one jsdoc paragraph to isLoading (:569-573) and changes no type. No prop is removed, made required or retyped. ChatbotLabels, the message and tool-invocation types and the index.tsx export list are unchanged. resolvePlanBuildStates, PlanBuildState and the two new resolveProposalCardState inputs stay module-level and are not re-exported.

  • @object-ui/plugin-chatbot behaviour: RIGHT, a widening (unchanged from round 1). A submit while isLoading queues and sends when the turn ends, where it used to go nowhere. The host's disabled prop still disables the composer. The delta's only behaviour change in this package is the published badge's failed-item suffix, which now goes through the pack (:3743-3749). Same count, same position, translated words.

  • Round-1 nit resolved: the isLoading jsdoc. :569-573 now says the plan card reads a result-less build call as building only while isLoading is true and as not built once it is false, and that a host that never sets it shows a running build as not built and offers Build it again. That matches resolvePlanBuildStates.

  • @object-ui/i18n: RIGHT, a widening. All eleven shipped packs (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant) gain the same ten leaf keys and one count family, with 0 deletions in every locale file. The ten keys are chatbot.plan.confirmed, chatbot.plan.buildFailed, chatbot.build.issuesCount, chatbot.build.issuesSummary, chatbot.build.warningsSummary, chatbot.build.issuesDetails, chatbot.composer.queued, chatbot.composer.queuedCancel, preview.unpublishedList.title and preview.unpublishedList.message. The family is chatbot.build.needsAttention. None of these names existed on main, and none is renamed or removed.

  • The count family's shape follows the repo's convention. It has the same shape as common.itemCount and detail.attachmentCount: a base key plus each pack's CLDR slots.

    • en and de carry base, _one and _other (en.ts:5015-5017).
    • es, fr and pt-BR add _many in the de form ("{{count}} de elementos …"), as itemCount_many does.
    • ru carries _one, _few, _many and _other, with the verb agreeing (требует / требуют).
    • ar carries all six slots, _zero through _other, in the label form "بحاجة إلى مراجعة: {{count}}".
    • ja, ko, zh-Hans and zh-Hant carry base, _one and _other with a counter, as their itemCount does.
    • Under count-families-11445.test.ts, the family's {{count}} leaves are in a family by construction, so it needs no COUNT_NEUTRAL row and gets none.
    • chatbot.build.issuesCount stays on COUNT_NEUTRAL.invariant (test-only, from round 1). Its reason holds: in every pack the number stands before an infinitive, after a label, or with a counter.
    • The call site passes count as a number (tool.draftReview.failedCount).
    • The base key that all-locales-key-parity asked for landed in 7888f40d, as the PR body reports.
  • @object-ui/app-shell: RIGHT, nothing published. The package is private: true. Nothing is added to src/index.ts.

  • Round-1 should-fix resolved: the doubled submit with files. AiChatPage.tsx:932-946 adds isSameFile (same object, or the same name, size, type and lastModified) and isSameFirstSend (same text AND the same files, file for file). The join at :1052 runs only when something differs, and it filters out files the held message already carries. Pinned in useDeferredFirstSend.test.tsx:

    • a doubled submit with one file is held once, with the text once and the file once;
    • control: a second submit with a different file joins, and the shared file is not doubled.

    This meets patch item 1 as written.

  • Round-1 overclaim resolved: the texts were rewritten to match the code. The dev chose the second option in patch item 2. The three texts now say the same thing, and each matches withUnpublishedObjectReads (unpublishedObjectReads.ts:47-69), which empties every find that the engine refuses with OBJECT_NOT_FOUND, whatever the resource:

    • the jsdoc (unpublishedObjectReads.ts:22-29): "any object the engine has not registered, through this source, answers an empty page (a lookup into another drafted object included) … only the listed object's own empty state carries the publish sentence";
    • the changeset (line 14): "for any object it has not registered (a lookup into another drafted object included), now answers an empty page, and the listed object's own empty state says records appear after publish";
    • the PR body's Item 3 bullet: "That holds for any object the engine has not registered, read through this source … not only the listed one".

    The sentence swap is limited to objectDef.name (objectViewListRenderer.tsx), and the wrapper is installed only under usePreviewDrafts(), as all three say. "A refused findOne … reaches the list unchanged" is true: only find is intercepted.

  • The new readObjectsByName path in AiChatPage: RIGHT. Round 1 had ChatPane destructure objects off useMetadata(). That made AiChatPage a new whole-registry reader (the CI red on 09f30cfb, 38 found against 37 classified). At this head findMetadataObject (AiChatPage.tsx:2399-2408) reads readObjectsByName(metadata, [objectName]). When the object type is idle that is a names-only readObjectScope read of the one asked name, and otherwise the list that something else already loaded. It is called only when the change card resolves a label. No other .objects read remains in the file.

  • Classification byName: RIGHT per the test's own rules. The header defines byName as "it reads the objects it names by name (readObjectsByName, objectstack#29121), and objects only once something else loaded it". That is exactly readObjectsByName's behaviour, and it is AiChatPage's only reader. The test's third case checks that a byName row's source contains readObjectsByName, and it does (:21, :2401). off would not fit, because the row's why says the dock mounts the pane on an app open. scope and action do not describe the code.

Code findings (none is contract-blocking at this face):

  • nit: ui/packages/plugin-chatbot/src/ChatbotEnhanced.tsx:3745-3748. The inline defaultValue is the plural form '{{count}} need attention'. On a host without I18nProvider, useObjectTranslation interpolates the defaultValue and does not select a plural slot (objectui#3512's ruling). So such a host now reads "1 need attention", where the old code read "1 needs attention". The changeset line 15 claim "agrees with its number" holds under a provider, which every in-repo host has. A provider-less embed loses the English singular. Choosing the default on === 1 at the call site, which is not a pack key, would keep the claim whole.
  • nit: ui/packages/app-shell/src/console/ai/AiChatPage.tsx:2399-2421. No pin drives the resolvers through readObjectsByName. The A5 pin hands ChatbotEnhanced its props directly, and the 12811 census pins only the classification. A names-only scope that answered without fields would quietly fall back to the machine name. This is private code and the fallback is the stated one.

② Semver level

  • The changeset grade is RIGHT. .changeset/32984-build-chat-honest-states.md grades @object-ui/plugin-chatbot, @object-ui/i18n and @object-ui/app-shell patch. With Metadata-protocol: none, AGENTS.md (Post-Task Checklist 3) has a non-protocol change ship patch. Every package the diff moves is named, and nothing is graded minor against a none.
  • Clause-②: yes (widening): RIGHT, line-initial in both the changeset (line 9) and the PR body.
    • The changeset line names every new key: the three props, the ten leaf keys one by one, and the count family chatbot.build.needsAttention. That meets patch item 4.
    • The PR body line names the three props and the family "(its base key plus each locale's plural slots)", but counts the other keys ("ten keys") without naming them. The ten are named one by one in the body's ui/packages/i18n bullet under What changes, and the count is right. Grade: nit. The changeset is the release text, and it is complete.
    • Metadata-protocol: none is RIGHT: no authorable metadata key, value or type moves.
  • Each changeset sentence, checked against the diff: true.
    • Plan card states: resolvePlanBuildStates; built only on drafted / published.
    • Queued sends and the first-send join: useDeferredFirstSend, now deduped on text and files.
    • Preview empty page for any unregistered object, with the listed object's sentence.
    • The "N to fix" chip and the closed Technical details.
    • The pack-driven failed-item count. "Agrees with its number" is true under a provider; see the nit above.
    • Change-card labels with the machine name in the tooltip, and an unknown name shown as given.
    • "Nothing is removed or narrowed" is true.
  • The claim's declaration lines (6879542746) still match the PR's. Amendment 2 (6881185212) records the key list growing by one in the same yes (widening) kind, and that agrees with the diff.
  • Check Changeset concluded success on run 43623543426. A second run, 43623644032, is still in progress.

③ Boundary flags

  • open_questions: empty. Nothing to answer.

  • out_of_scope 1 and 2 (carrier: cloud, the producer halves of items 4 and 5). Unchanged from round 1. Both are real, and both are named under the PR's Acceptance notes. They are the reason the PR says Refs, not Fixes, which is correct under the claim's scope line. The seat files them as cloud cards with the dev's dedupe words.

  • out_of_scope 3 (carrier: none).

    • The failedCount suffix is now FIXED in this PR, folded in under amendment 2 (patch item 4).
    • PublishHealthLine printing server messages verbatim is left as a producer issue, as the order says. It is named in Acceptance notes ("Producer issue, left").
    • Nothing of this item is left unrouted.
  • The card's "Also seen, smaller" residue, now named (patch item 5). Acceptance notes carry both items as "not addressed here", each with a reproduction line, and the seat cards them at close.

    • The 「· 补充」 tag reproduces on the tree: suggested: true draws chatbot.plan.suggestedField with no legend and a machine-name tooltip.
    • The blank thread of about 5 s before the first bubble reproduces as a mechanism: the first message waits in useDeferredFirstSend's stash until POST /conversations answers. The 5 s itself is stated as not measured.
  • Item 2, "could not be reproduced here". Accepted, as in round 1. Both ui paths that could lose a message are closed, and the doubled-submit case no longer doubles.

  • Claim surface drift. The delta touches ui/packages/app-shell/src/console/__tests__/openPathObjectReaders-12811.test.ts, which no amendment names. It is the classification row patch item 6 asked for, inside ui/**, and a test of the claimed AiChatPage change. Noted, not blocking.

  • The dev's patch-round readings. The patch round has no new os-dev-report on the card. Its reruns are carried in the PR body's Verification section:

    • 517 of 518 files green at b258a44f, the one red being all-locales-key-parity;
    • packages/i18n/ plus the needsAttention pin green at 7888f40d;
    • the type-check chain exit 0;
    • dispatch-gates 40 of 40 run with exit 0.

    The full run, including openPathObjectReaders-12811.test.ts, was at b258a44f's content, and 7888f40d adds only locale keys and the changeset line. The CI shards are the reading of record.

  • Security: none reported, none seen.

  • Gate verdicts on this head, read at about 17:57Z:

    • Success:
      • PR-body guards (both runs)
      • Governed Surface Queue Guard
      • Check Changeset (43623543426)
      • Check PR Size
      • Auto Label
      • Type Check · workspace
      • Type Check · debt ledger
      • Build UI Deps
      • Plan Test UI shards
      • Live E2E UI
      • Test Core
      • Dogfood Regression Gate
      • filter
    • Still running, no conclusion yet, and NOT read as green:
      • Test UI (1/16) through Test UI (16/16). (7/16) is the shard that was red on 09f30cfb with the 12811 census.
      • Type Check UI
      • Lint UI
      • Build & E2E UI
      • Type Check · source gates
      • Type Check · consumer gates
      • Lint · ESLint
      • Lint · repo & tooling gates
      • Lint · docs & code guards
      • Lint · CI, release & engine gates
      • Lint · PM dispatch-gates
      • Lint · scoped · tooling self-tests
      • Lint · scoped · slot lookup & corpus
      • Lint · scoped · query-options erasure
      • the second Check Changeset (43623644032)
    • Skipped by the path filter or opt-in:
      • Build Core
      • Plan Test Core shards and the Test Core shards
      • Build Docs
      • UI Published Artifacts
      • Temporal Conformance
      • Dogfood Verify CLI
      • the Dogfood Regression Gate shards
      • Packed-tarball smoke
      • 18.x upgrade harness
      • Queue verdict and Borrowed queue verdict
      • the schedule gate
      • the second Auto Label and Check PR Size runs
    • None failed.
  • What this verdict covers. The contract only. Landing still waits on every running check-run above concluding green, Test UI (7/16) above all, and the PR is still a draft.

Implemented-by: claude/project-thread-vliw66
Reviewed-by: session_01FEkQ5nWoa1Ze1QzjRTSYXD

VERDICT: PASS

@objectstack-fleet objectstack-fleet Bot removed the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 14, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

席位核对

Verdict: ACCEPT · head 7888f40d · 2026-11-14T18:15Z

  1. Shape: draft → main, first line Refs #32984 (the card keeps the cloud producer halves of items 4 and 5, so it stays open on merge); 26 files, +1572/−152; root changeset patches @object-ui/plugin-chatbot, @object-ui/i18n, @object-ui/app-shell; no file outside ui/packages/{plugin-chatbot,i18n,app-shell}/src/ and the changeset.
  2. Premise: the seat's patch order 32984-patch-1 (items 1 to 6) is met at this head, as the delta contract record reads it item by item:
    • Item 1: the doubled submit is deduped on text AND files, with a CONTROL where a different file joins.
    • Item 2: the jsdoc, changeset and PR body now say what the wrapper does (in the draft preview, any find answered OBJECT_NOT_FOUND is an empty page; only the listed object's empty state carries the publish sentence).
    • Item 3: the isLoading jsdoc is there.
    • Item 4: chatbot.build.needsAttention is a count family in all eleven locales.
    • Item 5: the Acceptance notes name the 「· 补充」 tag and the blank first-bubble wait, and name PublishHealthLine as a producer issue.
    • Item 6: openPathObjectReaders-12811 gains AiChatPage's row.
    • Changeset sentences read against the diff: each holds (see deviation 1 for the one that holds only under a provider).
  3. Contract records:
    • Round 1: PASS 6881172518 on 09f30cfb.
    • Delta round: PASS 6881840690 on this head 7888f40d (Clause-② yes (widening), declaration face, TIER_DEFAULT).
    • needs:contract-review is removed.
  4. Gates on head 7888f40d: all 65 check runs success or skipped, including Test UI (7/16), which was red on 09f30cfb. The runs include Lint & Repo Gates, TypeScript Type Check, Type Check UI, Lint UI, Test UI 16/16 shards + Test UI, Build & E2E UI, Live E2E UI, Check Changeset, Governed Surface Queue Guard and PR-body guards. check-governed-merges.mjs --pr 33333: NOT governed, 1724 lines ≤ 3000.
  5. Accepted deviations (the delta record's nits):
    1. ChatbotEnhanced.tsx:3745-3748: the inline defaultValue is the plural form. A host with no I18nProvider reads "1 need attention". Every in-repo host has a provider, so the changeset's "agrees with its number" holds where the package is used.
    2. The PR body's Clause-②: line counts "ten keys" where the changeset names them.
    3. No test drives the label resolvers through readObjectsByName.
    4. K = 41 first-parent commits since the PR base ⇒ base sync before landing; landing waits for the rerun green.
  6. Out of scope, carded by the seat at merge:
  7. Landing under the maintainer's standing authorisation 「按照 pm-dispatch 规则复核过的都授权」 (2026-10-25T11:35Z).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

Regen-provenance: 6881840690 · 7888f40dcee85d04950ef3d0d364c1a1d7955f65 → 83a6a777fc8addcaea754afca992caf9d6b47186 · base sync only (merge of main at fca5f89c): no PR-side path moves between the two heads, and git diff fca5f89c 83a6a777 is exactly the PR's 26 files, +1572/−152.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

Landing · head 83a6a777 (base sync of the ACCEPTed 7888f40d) · 2026-11-14T18:40Z

reading value
check runs on 83a6a777 58, all success or skipped
contract record PASS 6881840690 on 7888f40d, carried by the Regen-provenance: line above (merge of main only)

State: ready + auto-merge. The PR says Refs #32984, so the card stays open on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 14, 2026 18:41
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit ba32e79 Nov 14, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-vliw66 branch November 14, 2026 19:49
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…, and give its text back when the create fails (objectstack-ai#33561)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XGSudkpvjYSMB3ZosFUW2qM)_

Fixes objectstack-ai#33420

Clause-②: no
Metadata-protocol: none

Seat `domain:ui#2` · os-project-manager · card thread
`session_01FEkQ5oYya4wGgRN7g6MEWJ` · claim 6885536750 (and its two
amendments: the conversation hook, then the dock and Studio hosts)

## 维护者速读

- 改了什么:AI 对话新建会话时,用户发出的第一条消息立刻以用户气泡出现在对话里(下面是助手的「思考中」小点),等 `POST
/conversations`
返回、会话打开后正常发出,且只显示一次;等待期间再发的第二条会并进第一条一起显示。创建会话失败时,气泡撤掉,文字放回输入框,并显示「消息未发送」提示(与现有发送失败的处理一致),不再把消息悄悄藏着等下一次一起发。全页
AI 对话、控制台侧边对话和 Studio 助手三处都生效。
- 为什么改:objectstack-ai#32984 报告新会话第一条消息要等约 5 秒才出现;原因是第一条消息在会话 id
生成前被暂存在页面里、不进对话,创建失败时也没有任何回滚信号。
- 风险与回滚:只改 app-shell(私有包,随 console 发布)的前端显示和会话 hook 的失败上报,不改服务端、不改
spec、不改已有会话的发送路径。回滚即还原本 PR。
-
先看:ui/packages/app-shell/src/console/ai/AiChatPage.tsx(`useDeferredFirstSend`
新增 `onHeldChange` / `createError`,`ChatPane` 的
`shownMessages`)、ui/packages/app-shell/src/hooks/useChatConversation.ts(`createError`
的设置与清除)、ui/packages/app-shell/src/layout/ChatDockConversation.tsx(一行传参)。
- 两分钟验证:pnpm dev,打开 `/ai/build`,在浏览器开发者工具里把 `POST /conversations`
节流到很慢,发一条消息:气泡立刻出现;放开后只出现一条且收到回复。再把该请求设为失败:气泡消失,文字回到输入框,出现未发送提示。
- 需要你做的:无,席位落地。

## What changes

On a new conversation the first send is what creates the conversation
(`useChatConversation().ensureConversation`, objectstack#32031), and
`ChatPane` is keyed on the conversation id, so `useDeferredFirstSend`
holds the message in the host-owned stash until the id lands and the
pane remounts. Measured on `origin/main` f068cde with the rendered pins
below: while the create is held open the thread draws nothing, and when
the create fails the composer stays empty, nothing is shown, and the
text sits in the stash to be sent with whatever the user sends next.

- **The held message is drawn.** `useDeferredFirstSend` gains
`onHeldChange`: it reports the user's held message (never a stash
targeted at another agent surface, i.e. the handoff seed) when it is
stashed or joined, `null` when it is replayed or rolled back, and, on
mount, the stash a replaced pane left behind, from a layout effect so
the id-keyed remount never paints an empty thread. Only a committed pane
is told (see Acceptance notes for why). `ChatPane` keeps it in state and
draws `shownMessages`: the runtime messages plus the user's bubble and
an empty streaming assistant turn, which `ChatbotEnhanced` draws as its
existing thinking dots. No new visual language and no new string. When
the replay sends, the stash and the drawn bubble clear in the same task,
and `useObjectChat`'s own optimistic bubble takes over, so it is drawn
once.
- **A second message typed during the wait** joins the held one as since
objectstack-ai#33333, and the drawn bubble shows the joined text, first part first.
- **The create failure has a signal.** `useChatConversation` returns
`createError`: set when a create fails, tagged the way `useObjectChat`
tags a send that never left the client (`notSent: true`, plus `status`
when the server answered), cleared when the next create starts, when the
surface settles empty, and whenever a conversation is held. This covers
both the create a send starts and a request recorded during a
still-running resolve that `settlePending` → `createFor` makes later,
which used to fail with nobody told. `ensureConversation`'s contract is
unchanged (it still resolves `undefined` on failure).
- **The rollback is the existing one.** `ChatPane` hands `createError`
to `ChatbotEnhanced` as its `error` (ahead of the chat's own), so its
not-sent restore puts the typed text back in the box and
`SendErrorNotice` shows the generic "Couldn't send your message" line,
both unchanged. A new `createError` also clears the user's held message
from the stash, so a retry sends it once.
- **Hosts.** The `/ai` page, the console dock (`ChatDockConversation`)
and the Studio copilot (`StudioAiCopilot`) each pass
`conversationCreateError={createError}`; the drawing needs no host
change.
- **Changeset** `.changeset/33420-ai-chat-first-message-drawn.md`:
`@object-ui/app-shell` and `@object-ui/console` patch (app-shell is
private; console's `dist` ships it).

## Tests

- New `AiChatPage.firstMessageDrawnAtOnce-33420.test.tsx`, through the
REAL `AiChatPage` / `ChatDockConversation`, `ChatPane`,
`useChatConversation`, `useObjectChat` transport and `ChatbotEnhanced`,
driven through the composer (type, submit the form), with `POST
/conversations` held open until the test answers it:
- on the full-page chat and on the console dock: create held → the
bubble is in the thread before it answers; answered → the chat request
carries the message and it is drawn exactly once after the remount;
- on both hosts: create fails (503) → the bubble is gone, the text is
back in the composer, the send-error notice shows, nothing was sent;
sending again retries the create, sends once and the notice goes;
- a second message typed during the wait is drawn too, after the first,
and both go out as the joined first turn;
- a send recorded while the resolve of a cached (gone) conversation is
still running rolls back the same way when the create it then makes
fails;
- CONTROL: a send in an existing conversation (`/ai/build/conv-7`)
creates nothing and draws and sends as before.
- `useChatConversation.test.tsx`: the failed-create test now also
asserts `createError` is `{ notSent: true, status: 500 }` and cleared
after the retry; new: a create recorded during the resolve that then
fails (network) is reported.
- Red first, on `origin/main` f068cde (the pin file alone, before any
source change): 5/5 failed (the drawn pins `expected +0 to be 1`; the
CONTROL failed on a harness timing, fixed by letting the deep-linked
conversation open before typing, see Acceptance notes).
- Ablations, one-off through `scripts/ablation-replace.mjs` (app-shell
tests read `src`, no rebuild), each restored with the blob equal to HEAD
and `git diff HEAD` empty:
- the drawing removed (`messages={shownMessages}` →
`messages={runtimeMessages}`): 6 failed / 1 passed (only the CONTROL
stays green);
- the failure signal removed (the hook returns `createError:
undefined`): 3 failed / 4 passed (the three failure pins, at "bubble
gone").

## Acceptance notes

- **A send that reaches an uncommitted pane.** The first cut reported
the held message from the send itself, and
`ChatDock.requestContext-30043.test.tsx` ("on a record page…", which
sends through the first `ChatbotEnhanced` props it sees) went red: React
warned "Can't perform a React state update on a component that hasn't
mounted yet" and the stash was lost. Bisected to the state update in the
send (removing it alone turns the file green). The report now goes only
to a committed pane (`committedRef`), and the mount report covers the
pane once it commits; the file is 7/7 green.
- **Two sends, then a failed create (measured, a narrow-path change).**
The existing restore puts back the text the composer itself last
submitted (`ChatbotEnhanced`'s own last-submitted text). A one-off probe
through the same rendered harness (two sends during a held create, the
create answers 503, then resend what the box holds) read `box = "second
part"` and the retried chat request `["second part"]`: the first message
is dropped with the stash. Before this change both stayed hidden in the
stash and went out with whatever the user sent next. Giving the joined
text back needs `ChatbotEnhanced` (`@object-ui/plugin-chatbot`) to take
the text to restore from the host, outside this card's surface; reported
for the seat to file.
- **A handoff seed is not drawn** and is kept in the stash on a failed
create, as before: the user did not type it here, and there is nothing
of theirs to restore.
- **The latency of `POST /conversations` is unchanged** (the card's ⛔).
- Observed while building the CONTROL, not chased: on a deep link to an
existing conversation (`/ai/build/conv-7`), a message submitted before
the conversation's GET answered was not sent within 4 s in this harness
(no chat POST, composer cleared, not queued). Mechanism not read; the
CONTROL types once the conversation is open.

## Verification

<details><summary>Local gates, type-check, lint and suites (head
3f97718)</summary>

- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derives 37 families for this diff. All 37
exit 0 on 3f97718; `--ran` reconciliation: 37 derived, 37 run, 0
NOT-MEASURED, 0 UNRUN. Two read on their own reruns: `pnpm
check:type-check-debt` (the first run answered exit 3 while a locked
suite held the closure build; rerun alone: 0 entries above their
measurement, exit 0) and `pnpm --dir ui exec vitest run scripts/` (the
first run was SIGKILLed by the box's memory limit while a suite ran
beside it; rerun alone under the lock with `--maxWorkers=2`: 171 files
passed, 2 skipped, 5062 tests passed, exit 0).
- `pnpm --filter @object-ui/app-shell run type-check`: exit 0. ESLint
(`--no-inline-config`) on the six changed source and test files: exit 0.
`pnpm check:new-line-citations` (ui/AGENTS.md objectstack-ai#11): 0 new citations,
exit 0.
- Suites under the lock, `pnpm exec vitest run --maxWorkers=2` from
`ui/` over
`packages/app-shell/src/hooks/__tests__/useChatConversation.test.tsx`,
`packages/app-shell/src/console/ai/`, `packages/app-shell/src/layout/`,
`packages/app-shell/src/views/studio-design/`: 527 files, 3854 tests
passed (head 3f97718). On the first cut (1650db1) the same run had 1
failure, `ChatDock.requestContext-30043.test.tsx` "on a record page…",
green on base f068cde (7/7) and fixed by baaaeda..3f97718 (see
Acceptance notes).
- The full app-shell suite and the rest of the farm are CI's.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5oYya4wGgRN7g6MEWJ

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oYya4wGgRN7g6MEWJ)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant