Repository navigation
feat(console-ai): an AI build shows the app itself in the main area, with one Publish on screen - #34713
Conversation
…rom the top-bar robot and maximized in place The console's chat drawer becomes the assistant's only container (ui ADR-0057, amended by its Amendment A3): - The top-bar robot toggles the drawer on the current page without navigating, and carries the plan-awaiting-approval marker. The floating bottom-right button is removed. - The drawer's expand button makes the same element fill the window in place, with the conversation history as a column; the same button restores the rail, and leaving the page restores it too. At rail width the history is behind a History button; the phone sheet has one as well. - What the drawer shows is a per-tab target (agent, conversation, package, fresh), held by the layout host (useConsoleChatDock) that ConsoleLayout and HomeLayout both mount. Pages open the drawer through useOpenAssistant; outside a host it falls back to the old address. - The /ai, /ai/:agent and /ai/:agent/:conversationId routes render AiAddressRedirect, which arms the drawer on the address (open, filling the window) and lands on the declared home; a Builder handoff rides navigation state only. - Home's "Build with AI" / "Ask AI" and app management's "Edit with AI" open the drawer. A new build still starts unbound. - Inside an app, a builder's empty state names data questions as well as changes, and its first suggestions are data questions. - The drawer's share button opens the share dialog (it was a no-op there). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
…ate zh-Hant from zh-Hans chatDockTarget's storage pins read window, so they live in a .tsx file like chatDockReturnLocation's. zh-Hant.ts is the generator's output (gen:zh-hant), so the new description is written by it, not by hand. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
…in the edited layout tests
check:test-source-alias judges edited test files: ConsoleLayout reaches
import('@objectstack/lint') through the draft bar's publish preflight, so
each edited test that mounts it loads the module at module top.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
…with one Publish on screen objectstack#34610 (ruling 6937505798; ui ADR-0057 Amendment A3 and ADR-0037 as amended in #34640). - The drawer's build moves the console's main area to the app it builds, in the regime ADR-0045 gives it: a materialized new or unpublished app shows as the real app (UnpublishedAppBar publishes it); changes to a published app show in ?preview=draft (the draft bar publishes them). A new app moves in only after its package binds; a move to another page waits for the turn to end; a reopened conversation moves nothing. Each drafted artifact refreshes the main area in place (one coalesced invalidation per type), and once more when the turn ends. - The LiveCanvas iframe, the split pane and the dock's auto-maximize latch are removed. - One Publish on screen: the chat's draft cards and its pending line no longer publish. The line points to the bar or offers Show draft, and a publish from the bar lands in the chat as a receipt. - One count: the draft bar, its changes panel and the chat read the current app's package drafts; the bar's publish is scoped to that package and no longer reloads the page. - Two wordings: "not published yet" for an unpublished app, "N unpublished changes" on the draft bar. - Studio's copilot expand widens the copilot in place instead of navigating to /ai/build. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
…-lziftn # Conflicts: # ui/packages/app-shell/src/layout/ConsoleLayout.tsx
select-affected-tests reads every file the list names as tracked; the file went with the LiveCanvas host. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
…in the edited preview tests
check:test-source-alias: both edited tests reach import('@objectstack/lint')
through the draft bar's publish preflight.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
…ssue-34610-drawer-build
…awer-build # Conflicts: # ui/packages/app-shell/src/chrome/KeyboardShortcutsDialog.wiredOnly-11674.test.tsx # ui/packages/app-shell/src/console/ai/AiChatPage.tsx # ui/packages/app-shell/src/console/ai/__tests__/AiChatPage.draftsBarInFlow-12978.test.tsx # ui/packages/app-shell/src/layout/ChatDock.tsx # ui/packages/app-shell/src/layout/ChatDockConversation.tsx # ui/packages/app-shell/src/layout/__tests__/ChatDock.appBinding-10926.test.tsx # ui/packages/app-shell/src/layout/__tests__/ChatDock.partialRuntimeConfig.test.tsx # ui/packages/app-shell/src/layout/__tests__/ChatDock.test.tsx # ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.appBrandingLogo-10827.test.tsx # ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.dockBinding-10926.test.tsx
… drafts Test UI (16/16) on 6a8506e: runtime-metadata-persistence.pendingDraftsPulse-13139 failed 3 cases. The draft bar now counts the current app's package (_drafts?package=), and the test's fake ledger answered only the unscoped read. The fake now resolves showcase_app to its package and answers that read. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: REWORK L1 read of #34713 for #34610 (2026-11-17T08:53Z). Merge-base a931063, 10 commits, 65 files, +1329/−2559. Size Tier H: What holds:
All four must-fix items below can be answered with comments. M2 may need a push. I re-read on the head they leave. Must-fixM1. No live readings for the card's acceptance. The unit pins are good evidence for
M2. The
M3. The Clause-② line in the claim does not match the changeset.
M4. One changed file is outside the claim surface.
Should-fixNone beyond the must-fix items. Notes
|
…tion pair; four live-reading fixes Found by the live readings L1-b asked for on #34713 (M1): - A code-shipped app's edits are drafted into its ADR-0146 pair (`<base>.custom`), and `_drafts?package=<base>` does not list them, so the draft bar, its changes panel, the chat line and the bar's Publish read nothing for CRM. One app's scope is now its package plus its pair, filtered off the env-wide `_drafts` (`appDraftPackages`). - The not-yet-published bar saved the app under the route segment, the package id for every AI-built app (ADR-0048), which the meta door refuses. It saves under the app's own name. - An edit that re-drafts an artifact the conversation already listed never reached `onDraftArtifacts`, so the main area stayed out of draft mode. A finished live turn now shows its own drafted app and refreshes its types. - Under `publishFromShellBar` the build result card no longer says to click Publish in the chat. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
|
repo:objectstack#3 · os-support-ai · session_01WGufzidTEhaEGRzboS7xTa Live readings on head
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT Delta L1 read of #34713 for #34610 (2026-11-17T10:58Z). REWORK 6943358263 was at a33148b. Two commits since:
PR now: 69 files, +1784/−2573. Tier H by size: M1 (live readings): answered. Comment 6946030683 reads a booted console on this head over a real CRM backend. Only
The four defects the readings found are fixed and pinned in 2621daf:
M2 (budget): answered under the seat's conditional waiver (amendment 6943381037). The body reports M3 (Clause-②): answered. Amendment 6943381037 restates it: new locale keys, plus two additive M4 (claim surface and body counts): answered. The same amendment names the test file, and the body's counts are current. Must-fixNone. Should-fixS1. Acceptance 1 is only partly met, and the seat should record it before asking os-zhuang.
Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Face: declaration ( ① Derived judgments
② Semver levelEvery package takes ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT Delta L1 read of #34713 for #34610 (2026-11-17T11:44Z). My last ACCEPT, 6946095489, was at 2621daf. Two commits have landed since. db45412 merges
c80f1db is the only new content. It touches 2 files, +7/−2:
The PR diff is otherwise unchanged. Against the diff at 2621daf, with index and hunk headers normalized, it differs only by those changeset lines and the two test lines. It is now 69 files, +1789/−2573, and the body says the same. It merges cleanly with current CI is green on this head. One PR-body guard run was cancelled and superseded, and its rerun passed. My earlier budget note is answered:
S1 is tracked. The body's not-met line for acceptance 1 now cites follow-up card #34807. Must-fixNone. Should-fixNone. Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Delta on ① Derived judgmentsMerge ② Semver levelThe changeset now names ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG 席位记录 · 2026-11-17T11:48ZHead-sha: 维护者速读(终稿)
席位意见:建议批准。行数大主要是删掉旧的 Live Canvas 与分屏及其测试(−2573 行)。验收 1 有一处未完全达成且早于本 PR(见下),已立卡跟进。 席位核对
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44080289780 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#3 · os-support-ai · session_01WGufzidTEhaEGRzboS7xTa Queue build 44080289780 failed in This is not a change in this PR. Every file #34713 changes is under The head ( |
Requested by Yibo Wang · project thread
Fixes #34610
Implements ui ADR-0057 Amendment A3 and ADR-0037 as amended (#34640, merged), on top of #34665 (merged). Ruling 6937505798 on #34610.
维护者速读
?preview=draft中显示,由草稿栏发布。整屏只有一个发布按钮,聊天里不再有发布按钮,只给指引,发布后在聊天里显示回执。计数统一为当前应用的待发布改动(应用包加上它的 ADR-0146 定制包)。Studio 副驾的放大改为原地加宽,不再跳到/ai/build。<base>.custom定制包,按单包计数会读成 0;新应用「尚未发布」条的发布按路由段(包 id)保存被服务端拒绝;同一对象在后续回合再次起草时主区域不进草稿模式;搭建结果卡仍写着「在聊天里点发布」。四处都已修复并加了测试。console/ai/mainAreaDraft.ts(主区去向与两种发布形态)、AiChatPage.tsx的 ChatPane 主区块(只在进行中的回合移动、跨页移动等回合结束)、PendingDraftsBar.tsx、preview/DraftPreviewBar.tsx(按包计数、按包发布、不再整页刷新)。pnpm --dir ui exec vitest run packages/app-shell/src/console/ai/__tests__/mainAreaDraft-34610.test.ts packages/app-shell/src/console/ai/__tests__/AiChatPage.draftInMainArea-34610.test.tsx packages/app-shell/src/console/ai/__tests__/PendingDraftsBar.test.tsx packages/app-shell/src/preview/__tests__/DraftPreviewBar.test.tsx packages/app-shell/src/views/studio-design/__tests__/studioCopilotWidenInPlace-34610.test.tsx,预期全部通过。What changes
The app shows in the main area (
console/ai/mainAreaDraft.ts,AiChatPage.tsx)mainAreaDraftMove(target, here, inPlace)decides where the main area goes. It stays on the current page when the drawer sits beside the app being built, and otherwise opens/apps/<package>. Changes to a published app get?preview=draft. A materialized build shows the real app, and if it leaves draft mode the sticky preview keeper is told (markPreviewExit).emitCanvasInvalidateper type (200 ms), the per-artifact refresh of ADR-0037 Phase 2.emitMetadataRefreshruns once more when the turn ends.LiveCanvas.tsx, the split pane, the resizable chat width, the mobile canvas pill and overlay. The dock's auto-maximize latch (maximize/restore, driven by the canvas) is removed fromChatDock.tsxandChatDockConversation.tsx.One Publish on screen
ChatbotEnhancedtakespublishFromShellBar. When set, the draft cards draw no Publish; Preview, the Published badge and auto-publish stay.PendingDraftsBarno longer publishes. While the main area shows this package's draft it says "N unpublished changes. Publish them from the draft bar at the top." Otherwise it offers Show draft.emitPublishReceipt(assistant bus). The chat shows "Published. Your changes are live." until drafts are pending again or the receipt is dismissed.One count, two wordings
DraftPreviewBar, itsDraftChangesPaneland the chat count one app's drafts: those whose package is the app's package or its pair<base>.custom(appDraftPackagesinpreview/usePendingDrafts.ts, built on the spec'scustomizationPackageId/customizationBasePackageId). They read the env-wide_draftsand filter, because the pair may not be installed and?package=refuses a package that is not. A code-shipped app's edits are drafted into the pair, so a count scoped to the base alone read 0 (measured live, below). Another app's drafts and package-less drafts are not counted.draftSurface.tskeeps only the deep-link path).publishAll({ packageId }): the base and the pair, each through its ownpublish-drafts) and no longer reloads the page, so the drawer conversation and the receipt survive. The chat matches a receipt by the base package, so a receipt for the pair is the same app's.preview.unpublishedBar.notPublishedYet("This app is not published yet…") andpreview.draftBar.pendingInApp("N unpublished changes in this app", with plural forms).Fixed in this round, found by the live readings
UnpublishedAppBarsaved the app under the route segment. For every app the AI builds that segment is the package id (ADR-0048), and the meta door refuses an app whosenamedisagrees with its key, so Publish on a new app failed. It now saves under the app's ownname.onDraftArtifacts, whose set only fires when it grows. The main area stayed out of draft mode with the edit pending. A finished live turn now reads its own draft review (turnDraftPackage), moves the main area to that app, and refreshes the drafted types.publishFromShellBarthat sentence is not drawn.Studio copilot
StudioRightSlotwideWidth) and the same button restores. It no longer navigates to/ai/build?package=…(A3 "One container").i18n. New keys in all 11 packs (zh-Hant regenerated):
preview.draftBar.pendingInApp,preview.unpublishedBar.notPublishedYet, andconsole.ai.pendingDrafts.publishFromBar/showDraftToPublish(plurals),showDraft,receipt,dismissReceipt. No existing value changed. The changeset lists the keys the console no longer reads.Why
Ruling 6937505798 on #34610: "the build happens in the same right drawer with the app draft itself in the main area; no nested preview; one publish button and one change count." #34640's contract review added the ADR-0045 regimes (a new app is materialized and published by its own bar) and the Studio in-place maximize.
Verification
2621daf5, from a booted console (Vite dev server over a fresh CRM example backend), standing in only for/api/v1/ai/**. The stand-in streams a real UI-message stream and performs each turn's metadata writes against the real backend before streaming the tool result that names them. Script,readings.txtand 17 screenshots:/mnt/project-files/objectstack-seat3/34610-live/. The readings are posted as a PR comment. In summary:/homemid-turn and moves to/apps/com.example.tracker/tracker_taskonce the turn ends. The new app shows its own nav, the unpublished-app bar and no draft bar. 1 Publish on screen, 0 iframes. Publish from that bar puts the receipt in the chat. In zh-CN the bar reads 「这个应用还没发布过…」.?preview=drafton the same page, with the draft bar on top and 0 iframes.com.example.crm.custom(?package=com.example.crmlists nothing). The bar, the panel and the chat line still read 1, Publish empties the pair and the receipt shows.?preview=draftload with the same draft does not show it either, so this is the preview overlay's reach, not this PR. After Publish it shows without a reload. Tracked as Draft preview: a field that exists only in the draft is missing from the New record form, and a draft list column on it makes the list query refused #34807.main07f2861 (which brings feat(console): phone Home folds the setup checklist to one line after the apps; the phone bar's badge and title fit #34723's eager key), a console build (turbo run build --filter=@object-ui/console..., thenpnpm check:eager-closure) readsi18n-locale-enat 61,824 B gzip (60.4 KB of the 60.5 KB ceiling, headroom 176 B), exit 0. The previous reading, at 159bd73, was 61,746 B. This PR adds no locale key after that. CI's Build & E2E UI on the 2621daf merge ref read the same 60.4 KB / headroom 0.2 KB. Per the seat's conditional waiver, theconsole.ai.pendingDrafts.*keys stay inen.tswith their siblings. If a later merge of main reads over the ceiling, the whole group moves to a pack-shaped lazy namespace (@object-ui/i18n/namespaces/drafts, behind a frame inconsole/ai/). That move is prepared and measured as tests-green, but it is not applied.console/ai,preview,layout,views/studio-design,chrome, the pulse test, andplugin-chatbot): 702 files, 5428 tests, all green on 2621daf.usePublishAllDrafts.appScope-34610(base + pair published, another app's not, the pair names the same app, the unscoped control), the pair and other-app cases inPendingDraftsBaranddraftPreview-12968, the unpublished-app Publish keyed by the app name, the turn-end move and refresh inAiChatPage.draftInMainArea-34610, and the posture line underpublishFromShellBar.usePublishAllDrafts.appScope-34610loads@objectstack/lintat module top (CI'scheck:test-source-aliason 2621daf).PendingDraftsBar.sentenceWraps-13088had pinned a plural form that a test with no i18n instance cannot draw; its assertion is now plural-agnostic.tsc -p tsconfig.jsonandtsconfig.test.jsonexit 0, and plugin-chatbottsc -p tsconfig.test.jsonexits 0. eslint on every changed file: 0 errors.dispatch-gates --ran(first round): all 51 derived families ran, 0 not measured. First-run reds and how each was answered:scripts/suite still listedLiveCanvas.test.tsxin the dom-heavy list. Fixed inui/vitest.config.mts.check:test-source-alias: edited tests that reach the draft bar needed a module-topimport '@objectstack/lint'. Added.check:dts-closureneeded a console build. Re-run exit 0.origin/mainmerged cleanly three times, most recently 07f2861 (db45412). The branch was cut from feat(console-ai): the AI assistant is one right-side drawer, opened from the top-bar robot and maximized in place #34665's head; feat(console-ai): the AI assistant is one right-side drawer, opened from the top-bar robot and maximized in place #34665 was squash-merged, so its final head and thenmainwere merged in. The PR is now 69 files, +1789 −2573.Clause-②: yes (widening — new @object-ui/i18n locale keys, so
TranslationKeysgrows; and two additive @object-ui/plugin-chatbot changes: the optionalChatbotEnhancedproppublishFromShellBarand the optionalopts.appSegmentargument ofonBuildMaterialized; nothing removed or renamed)Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic. (No spec change.)pnpm lintpasses.main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa