Repository navigation
feat(studio): the Studio AI panel matches the console's AI assistant - #34851
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
… into claude/project-thread-oclfj4
…(WIP) Claude-Session: https://claude.ai/code/session_01WGufzfd562n5Rccarjf31X Co-authored-by: Claude <noreply@anthropic.com>
…ory and canvas marks Re-point the slot, surface and chip pins at the one-row header, the top-bar robot, the 420 px resizable width and the 「正在看」 chip; add pins for the history view, the Data canvas line and discard, the form card chip, the grid column marks and ChatPane hideHeader. Call-site defaults follow the en values; the ar draftedByCopilot sentence already says "AI assistant" and is waived. Changeset added. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfd562n5Rccarjf31X
…e ar waiver The edited surface and drafts-panel pins reach a lazy `@objectstack/lint` import, so they pay it at module top (check:test-source-alias). The en drift ledger's ratchet rises 6 -> 7 for the ar `draftedByCopilot` sentence, which already said "AI assistant". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfd562n5Rccarjf31X
…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
…e panel never covers the robot Live at a 1163 px window in en, the right panel dragged to 520 px left the top bar 643 px wide while the viewport breakpoint kept the pillar names on; the bar overflowed and the AI assistant's robot sat under the panel. The names (and "All metadata", Create app) now answer a container query on the bar, at the widths the old breakpoints gave beside the old fixed slot. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfd562n5Rccarjf31X
…owth; load lint at collection in the app-scope test (#34610) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzidTEhaEGRzboS7xTa
… into claude/project-thread-oclfj4
…-oclfj4 # Conflicts: # ui/packages/app-shell/src/console/ai/AiChatPage.tsx # ui/packages/app-shell/src/views/studio-design/StudioAiCopilot.tsx # ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx # ui/packages/app-shell/src/views/studio-design/__tests__/studioCopilotWidenInPlace-34610.test.tsx
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfd562n5Rccarjf31X
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: REWORK Read at this head:
The head merges cleanly with main 25d3d85. The shape is right:
Must-fixM1. Live readings are missing for two of the card's acceptance points, plus the header's switch.
Also name the head the readings were taken on. The files are timestamped 10:35, which is right after a1521d1. Every code change after that is #34713's (already landed) or test-only, so the existing readings stand. Should-fix
Notes
|
… server text The discard-all line's failure sentence listed `type/name: <server error>` in the author's language. It now names each item as the rail does (the object's label, else its name), joined by a translated separator; the server's own words move under the strip's Details. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfd562n5Rccarjf31X
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: The face, read off the committed tree rather than any statement about it: none of the 40 paths falls under the suspect glob ( Inputs: card #34725 (body and all 6 comments: triage 6943276975, claim 6943341819, amendments 6943390470 / 6944389276 / 6945284693, os-dev report 6949916351); the PR #34851 body, its 40-file list and the net diff against merge-base ① Derived judgmentsPublic-surface changes the diff implies:
② Semver levelChangeset Clause-②: yes (widening) — confirmed. The PR body and changeset carry identical line-initial declarations, and the arm reads ③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT This is a delta read from my REWORK at 48c6656 (6950061229). The one commit since then, c2034e7, changes 4 files: Must-fix: closed
Notes
|
…fore landing) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT This is a delta read from my ACCEPT at c2034e7 (6950960042). The only commit since then is 679c449, a merge of
Everything in 6950960042 stands, including the live readings at c2034e7, since no PR line moved. The one gate left before landing is the budget. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Landing · 2026-11-17T15:46Z
State: ready + auto-merge armed by area o3-D (lease |
Requested by Yibo Wang · project thread
Fixes #34725
Child of epic #34571, the Studio half of #34608. Built on #34713 (merged 14619f5).
维护者速读
⌘.保留。标题栏收成一行:属性 | AI 助手,加历史、铺满、关闭。用量和分享移进历史视图。默认宽 420,可拖动。上下文 chip 显示「正在看:任务 · 记录」。数据画布上,AI 改过的字段在表格列头和表单卡片上带草稿标记,画布上方有一行「AI 刚改了 N 处」,带「查看」和「放弃全部未发布改动」。StudioRightSlot.tsx(单行标题栏、拖宽)、StudioAiCopilot.tsx(历史视图)、StudioDesignSurface.tsx的顶栏机器人与 DataPillar 的草稿标记和那一行、studio-tokens.ts(顶栏按自身宽度显示支柱名)。pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/__tests__/studioRightSlot-12725.test.tsx packages/app-shell/src/views/studio-design/DataPillar.copilotChangesLine-34725.test.tsx packages/app-shell/src/views/studio-design/__tests__/studioCopilotSlotBody-12725.test.tsx packages/components/src/renderers/complex/__tests__/data-table-columnMarks-34725.test.tsx,预期全部通过。What changes
One name.
engine.studio.aiCopilotandengine.studio.draftMark.agent.copilotread "AI Assistant" / 「AI 助手」, so the panel, its tab, the folded strip and the draft-source sentence all use the console's name. The drafts panel'spreview.changes.draftedByCopilotfollows ("AI assistant") in every pack that said copilot.The robot in the top bar (
StudioDesignSurface.tsx). With a copilot served, the top bar's right-most control is the console'sAssistantTopBarButton, under aChatDockControlProviderwhosetoggleshows or hides the right slot and always opens it on the AI assistant.⌘.still switches the halves. Without a copilot the panel icon (studio-slot-toggle) stays for the properties.One header row (
StudioRightSlot.tsx). Left: the Properties | AI Assistant switch, or the title when only one half exists. Right, while the assistant shows: History, widen (the #34713 control, moved here) and Close.ChatPanegains an optionalhideHeaderso the copilot draws no second header. History lays the conversation list (ConversationsSidebarwith the console drawer's callbacks), Share and the usage reading over the chat; the pane stays mounted underneath, so a streaming answer is never cut. Picking a row opens that conversation; New chat asks for a fresh one.Width (
studioRightSlotState.ts). The slot opens at the console drawer's 420 px (DOCK_DEFAULT_WIDTH), resizes from its left edge by pointer or arrow keys, clamps withclampDockWidth(the canvas keeps 520 px), and remembers its width under its own keystudio-right-slot-width, never the console's. Widened, it takeswideWidthand drops the handle. On a phone it stays the overlay.The top bar keeps its right end on screen (
studio-tokens.ts). With a resizable slot, a 1163 px window can leave the top bar 520 px. The pillar names used the viewport'slg, so in en the bar overflowed and the robot sat under the slot (live reading below). The names, "All metadata" and Create app now answer a container query on the bar (@container/studio-header): 724 px and 920 px, the widths the old breakpoints gave beside the old fixed slot.The context chip. The Data pillar reports the open object's label and the view on screen (
Task · Records,Task · Form), so the chip reads 「正在看:任务 · 记录」;console.ai.discussingreads Viewing / 正在看 in all 11 packs. The internal name stays on the chip's tooltip only where no label is known (objectui#7254).Draft marks on the canvas (
StudioDesignSurface.tsxDataPillar,ObjectFormDesigner.tsx). From the open object's existing draft read (draftChanges, no new server read):GridFieldAuthoring.columnMarksthatdata-tabledraws after the header label;packages.discardDrafts(packageId)). A failed discard names each item as the rail does (the object's label, else its name, joined by a translated separator) and keeps the server's own words under the strip's Details. There is no per-turn undo.i18n. New studio-namespace keys only:
engine.studio.slot.history,engine.studio.slot.resize,engine.studio.copilotChanges.{lineOne,line,view,discardAll,discardConfirm,discardFailed,itemSeparator}. Changed values: the two studio keys above,console.ai.discussing(11 packs, zh-Hant regenerated),preview.changes.draftedByCopilot(en and eight packs; ar already said مساعد الذكاء الاصطناعي and is waived inui/scripts/i18n-en-drift-baseline.json, the ratchetWAIVER_CEILING6 → 7 with its history line). Two inlinedefaultValues now copy their en value.engine.studio.slot.openFullPageis no longer read; retiring it is a separate change.Why
#34725 asks Studio's AI panel to be the console's AI assistant: one name, one entry, one width, one title bar (figure 20 on the card). #34608 / PR #34665 shipped the console drawer this matches; #34713 (ADR-0057 Amendment A3) made the widen control widen in place.
Acceptance notes
Verification
/api/v1/ai/**(agents list with a build agent, in-memory conversations). Script, logs and shots:/mnt/project-files/objectstack-seat3/34725-live/.topbar-ai-assistantis the top bar's last control, pressed while the slot shows; clicking it hides the slot, clicking again opens it on the assistant; nostudio-slot-toggleremains.scrollWidthequals itsclientWidthat 643 px and 520 px in both languages, and the robot is clickable.c2034e76feb1bfa767fe16fe828bc45726271de7, 1163 × 820, zh-CN and en, same rig, on an editable object: a writable packagecom.qa.xwith objectx_ticket(fields Title, Priority, Due on; one record so the grid draws its header), published, then a real draft staged over HTTP that relabels the published fieldpriorityto "Urgency". Stand-in, stated plainly: HTTP refuses?surface=copilot(packages/rest/src/meta-save-request.ts) and MCP has no metadata write, so the draft's ledger row saysby: "api"; the page's draft read (GET /api/v1/meta/object/x_ticket?state=draft…) is relabelledby: "copilot"in flight. Nothing else of the read is touched, and the discard is the realpackages.discardDrafts. Scriptcheck2.mjs, logs*-m1-log.txt, shots*-m1-*.pngin the same folder.studio-grid-column-draft-chip(「草稿」 / "Draft",data-draft-of="priority"); the Form card "Urgency" carriesstudio-form-field-draft-chip. One chip each, on that field only.NO_DRAFT.overflow-x: autobox whoseclientWidthequalsscrollWidth(313 = 313), the slot spans 743–1163, and no cell is clipped.check-eager-closure-budget.mjsreadi18n-locale-enat 61,823 B gzip (60.4 KB of the 60.5 KB ceiling, headroom 177 B), exit 0; feat(console-ai): an AI build shows the app itself in the main area, with one Publish on screen #34713's own reading was 61,824 B. New keys are in the studio namespace; the eager pack changed values only. The ceiling is untouched.DataPillar.copilotChangesLine-34725gains a failed-discard case: the sentence namesTask(the rail label) andshowcase_task_grid(no label known) with the separator, holds neitherE_LOCKEDnorobject/, and the rawobject/showcase_task: E_LOCKED…sits under Details. 6/6 pass.views/studio-design,preview, the chip pin, the column-marks pin and the drift-ledger test: 385 files, 2,997 tests, all green.studio-slot-toggle→ the robot when a copilot is served; the panel icon without one), the slot-body pins (widen is the slot's now), the widen-in-place pin (mounts the slot around the copilot), the chip pins (正在看 and the object label), the pillar-name class pins.DataPillar.copilotChangesLine-34725(the line, singular, 查看, discard with and without confirm, the chip label, the person-written control),ObjectFormDesigner.draftMarkedFields-34725,data-table-columnMarks-34725(components),ChatPane hideHeader.@objectstack/lintat module top (check:test-source-alias).tscandtsc -p tsconfig.test.json, componentstsc -p tsconfig.test.json: exit 0. eslint on every changed file: 0 errors.check:i18n-keys,check:i18n-driftexit 0;check:i18n-dead-keysreports nothing new.dispatch-gates --ran: re-run in full on headc2034e76(after S1): 40 derived, 40 run, all exit 0, 0 not measured. On the previous head: 40 derived families ran on the final diff, 40 accounted for, 0 not measured. One first-run red,check:test-source-aliason the editednarrowHeader-12509pin, was answered with a module-topimport '@objectstack/lint'and re-run exit 0. The other 39 exit 0.scripts/pm/overlap-check.mjsonc2034e76: merges cleanly with main (7752cac), feat(studio): Open app returns from the workbench to the running app; the switcher hides kernel packages #34677, feat(studio): switch an installed app's action on or off on the action, in Studio; retire Setup's Packaged Actions #34799, feat(console): the Studio landing lists every change this environment made to its installed apps in one panel #34825 and feat(flow designer): the publish checks show before the publish, worded for the builder #34850.origin/mainafter feat(console-ai): an AI build shows the app itself in the main area, with one Publish on screen #34713 landed (conflicts were only feat(console-ai): an AI build shows the app itself in the main area, with one Publish on screen #34713's own lines, whose main version equals the head already merged).Clause-②: yes (widening — new studio-namespace locale keys, and one optional
columnMarksmember on the publishedGridFieldAuthoringinterface of @object-ui/components)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_01WGufzfd562n5Rccarjf31X