Skip to content

feat(console-ai): the AI assistant is one right-side drawer, opened from the top-bar robot and maximized in place - #34665

Merged
os-zhuang merged 4 commits into
mainfrom
claude/project-thread-lziftn
Nov 17, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/project-thread-lziftn

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #34608
Clause-②: yes (widening — new @object-ui/i18n locale keys only)
Metadata-protocol: none

ADR: the ui ADR-0057 amendment this implements is #34640 (Amendment A3, docs only, Tier H).

维护者速读

  • 改了什么:AI 助手只剩右侧抽屉这一个容器。顶栏机器人在当前页开关抽屉,URL 不变;右下角浮动按钮去掉。抽屉的「放大」是原地铺满整个窗口,左侧多一列历史,同一个按钮收回;侧栏宽度时历史在「History」按钮后面。Home 也有同一个抽屉。Home 的「用 AI 搭建 / 问 AI」和应用管理的「用 AI 编辑」改为打开抽屉。旧的 /ai、/ai/build/<id> 链接(包括分享链接)打开抽屉并铺满,显示链接指向的会话。应用内搭建者的空状态同时给出「问数据」和「改应用」的引导。
  • 为什么改:AI 助手:右侧抽屉作为唯一的聊天容器,顶栏机器人打开它,放大是原地铺满并可收回 #34608 的裁定「同意」:一个右侧抽屉,原地放大可收回,入口只有顶栏机器人,旧链接重定向到打开的抽屉。新搭建仍然先不绑定应用(ADR-0057 A1 保留)。
  • 风险与回滚:只改控制台前端(app-shell、console、i18n 新键),不动元数据、契约和服务端。/ai 路由保留,书签和分享链接继续可用。抽屉显示哪个会话存在本标签页的 sessionStorage,不进 URL。回滚即 revert 本 PR。改动行数 3214,超过 3000 行的人工合并阈值,主要是重写抽屉主体和删除浮动按钮的旧测试。
  • 先看:① ui/packages/app-shell/src/layout/useConsoleChatDock.tsx(抽屉托管:开关、放大、目标、交接、快捷键);② layout/ChatDock.tsx 的 ChatDockPanel(同一个 aside 切换 fixed inset-0,历史按钮)和 layout/ChatDockConversation.tsx(按目标解析会话、历史列);③ console/ai/AiAddressRedirect.tsx 和 ui/apps/console/src/App.tsx 的 /ai 路由。
  • 两分钟验证:在仓根执行 pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/ConsoleLayout.robotTogglesDrawer-34608.test.tsx packages/app-shell/src/layout/__tests__/ChatDock.test.tsx packages/app-shell/src/console/ai/__tests__/AiAddressRedirect-34608.test.tsx packages/app-shell/src/console/ai/__tests__/AiChatPage.appContextComposer-11658.test.tsx,预期全部通过(对应验收 1 到 4)。
  • 需要你做的:先审批 ADR PR docs(adr): ui ADR-0057 Amendment A3, the AI assistant is one right-side drawer, maximized in place #34640(Tier H)。本 PR 超过人工合并阈值,需要你来合并。

Before and after

Before (origin/main 97defd6) After
Top-bar robot <Link to="/ai">: leaves the page for the full-page chat Toggles the drawer on the current page; aria-pressed follows it; the URL does not change
Bottom-right floating button Shown while the dock is closed; carried the plan-pending marker Removed; the robot carries the marker
Maximize Navigated to /ai or /ai/build?package=PKG The same <aside> becomes fixed inset-0 z-40 in place (no remount); the same button restores
History Only on the /ai page Rail: behind a "History" button. Full window: a column beside the chat. Phone sheet: a "History" button
Home Floating button to the full page; no dock Hosts the same drawer
/ai, /ai/:agent, /ai/:agent/:id The full-page chat Open the drawer on that address, filling the window, over the declared home
"Build with AI" / "Ask AI" (Home), "Edit with AI" (app management) Navigated to /ai/build… / /ai/ask Open the drawer on that agent / package / fresh thread
Builder empty state inside an app Change guidance only; change starters Names data questions and changes; the first two starters are data questions
Share in the dock No-op (onShare unwired) Opens the share dialog

What changes

The drawer host. New layout/useConsoleChatDock.tsx, mounted by both ConsoleLayout and HomeLayout. It owns:

  • The dock state: useChatDockState with the per-tab expanded flag and a new per-tab full-window flag.
  • The drawer's target, a ChatDockTarget (agent, conversationId, packageId, fresh) kept in sessionStorage. Absent means the ambient thread, so the existing app binding (A2) is unchanged.
  • A Builder handoff held in memory with a sequence number (objectui#12493).
  • The ⌘/Ctrl+Shift+I toggle and the assistant-bus open request.
  • Leaving the page (pathname or search changes) drops full window back to the rail.

It returns the rail (for AppShell's rightRail), the phone sheet, and a ChatDockControl handle provided through ChatDockControlProvider.

Opening the drawer. New layout/chatDockControl.tsx: useChatDockControl() and useOpenAssistant(). useOpenAssistant opens the drawer in place inside a host. Outside one (a page no host wraps) it navigates to the old address, which the console routes back into the drawer. ChatPane's agent launcher, package switcher, "New app" and "Open in Builder" go through it. Inside the drawer a nested provider maps those calls onto the drawer's target.

The target grammar. New React-free layout/chatDockTarget.ts: parseAiAddress, aiAddressOf, the target and full-window storage helpers (no-ops inside a frame, objectstack#26470), sameDockTarget, and readBuilderHandoffState (moved from AiChatPage).

The panel. layout/ChatDock.tsx:

  • useChatDockState gains fullWindow and setFullWindow. Setting it expands the drawer; toggle and collapse clear it. It persists with persistFullWindow.
  • ChatDockPanel: with fullWindow the same <aside> switches to fixed inset-0 z-40 with no width or resize handle. The expand button (chat-dock-maximize, "Expand" / "Restore side panel") calls setFullWindow. A History toggle shows at rail width.
  • ChatDockMobileSheet: the deferred maximize bridge is removed; it gets a History toggle.
  • onMaximize and onBoundPackageChange are removed. The Live Canvas maximize() / restore() latch is unchanged.

The body. layout/ChatDockConversation.tsx resolves its agent and conversation from the target:

  • A named agent through resolveAgentParam. A legacy bare conversation id is resolved to its agent through fetchConversation.
  • A maker opening a bare ask is converged to build (cloud#1674).
  • forceNew for a fresh target. The minted id is written back to the target once the first send creates it.
  • A1.b bind-on-create re-keys the scope and names the package on the target.
  • The handoff is seeded once per sequence.
  • Full window draws ConversationsSidebar as a column. Rail and sheet draw it as an overlay over the still-mounted pane.
  • The share dialog and the build debug drawer are wired.

History. console/ai/ConversationsSidebar.tsx gets a hosted mode (onSelectConversation, onNewConversation, activeConversationId): rows, "New" and deleting the open thread call back instead of navigating.

Entries.

  • New layout/AssistantTopBarButton.tsx replaces AppHeader's robot link. With a host it is a toggle; without one it is still a link to /ai.
  • HomePage and AppManagementPage use useOpenAssistant.
  • ConsoleChatbotFab.tsx and its two test files are deleted.

Addresses. New console/ai/AiAddressRedirect.tsx writes the parsed target, the expanded flag and the full-window flag, then replaces the visit with useHomePath(), passing a handoff on as navigation state. ui/apps/console/src/App.tsx routes the three /ai paths to it inside RequireAiSurface. The lazy DefaultAiChatPage and components/aiChatPage.ts are removed. AiChatPage stays exported; the console no longer routes to it.

Guidance. agentEmptyState's edit-mode description reads console.ai.empty.editApp.askOrChangeDescription. The new exported editAppDataSuggestions(t) puts two data questions ahead of the change starters when editing.

i18n. New keys in all 11 packs: console.ai.dock.history, .backToChat, .expand, .restore, console.ai.empty.editApp.askOrChangeDescription. No key removed or changed.

Tests

New:

  • layout/__tests__/ConsoleLayout.robotTogglesDrawer-34608.test.tsx (replaces ConsoleLayout.fabYieldsToOpenDock-10899): real ConsoleLayout, host, dock state and robot. The robot opens the drawer on /apps/crm/opportunity with the URL unchanged, closes it again, and no floating button exists. Acceptance 1.
  • layout/__tests__/ChatDock.test.tsx: expand asks for full window, the full panel is fixed inset-0 with no resize handle and a "Restore side panel" button that restores. The same <aside> and the same body element survive the switch (no remount). The rail's History toggle and the full window's column (no toggle). The sheet has no expand button and has a History toggle. useChatDockState full-window semantics and persistence. Acceptance 2.
  • console/ai/__tests__/AiChatPage.appContextComposer-11658.test.tsx: inside an app the build pane's first two suggestions are data questions, then the change starters, and the empty description names data. A control with no app. Acceptance 3.
  • console/ai/__tests__/AiAddressRedirect-34608.test.tsx: /ai/build/c-42 lands home with the target, expanded and full window armed. ?package=&new=1 is kept. Bare /ai clears an old target. The declared home is honoured. A handoff rides navigation state and never storage. Acceptance 4.
  • layout/__tests__/ChatDock.appBinding-10926.test.tsx: a build target naming app X opened with no app in view resumes the thread the in-app dock bound to X. A target naming a conversation shows that conversation. Acceptance 4.
  • layout/__tests__/chatDockTarget.test.tsx: address parsing (mount prefix, ?agent=, escapes), aiAddressOf round trip, storage round trip, malformed storage, frame isolation.
  • console/ai/__tests__/ConversationsSidebar.test.tsx: the hosted mode.
  • console/ai/__tests__/editModeEmptyState.test.ts: the description and editAppDataSuggestions.

Re-pointed:

  • The plan-pending marker pins (launcherPlanApprovalMarker-11666, AiChatPage.planApprovalReachesLaunchers-11666) now target the robot.
  • ConsoleLayout.previewFrameDock-26470 presses the robot.
  • ConsoleLayout.dockBinding-10926's two maximize-routing cases became "the target is held per tab and survives a remount" and "back to ambient clears it".
  • Dock-state stubs gained fullWindow.
  • The console App.* tests stub AiAddressRedirect where they stubbed DefaultAiChatPage.

Deleted: ConsoleChatbotFab.test.tsx, ConsoleChatbotFab.yieldsCorner-12248.test.tsx (the component is gone), ConsoleLayout.aiEntryAsksUnsaved-13253.test.tsx (maximize no longer leaves the page, so there is nothing to confirm).

Acceptance notes

  • The order lists acceptance 4 as "an old /_console/ai/build/<id> link shows that conversation". The redirect is pinned on the route table's paths (the router basename strips /_console), and the drawer resolving the conversation is pinned on the real body.
  • Moving between apps with a target set (L1 S1, read live on 910dbeb, comment below): the target is per tab and never infers the app, so it follows you. A history row names its agent and conversation only (the server stores no package on a thread), so a build row picked inside CRM shows with the "New app" chip and stays on that thread after you move to Setup. A target that names a package (the drawer's app switcher, "Edit with AI") keeps naming it: after moving from CRM to Setup the chip still reads "CRM" and the empty state "Editing “CRM”". With no target the drawer shows the ambient thread of the app in view: "Editing “CRM”" in CRM, and the unbound "Build with AI" thread in Setup (a built-in app, not authorable). Before A3, A2 bound the in-app dock to the app in view in every case; this PR keeps that only for the ambient thread.
  • What the drawer shows lives in sessionStorage per tab, not in the URL. ui ADR-0054 C3 asks for URL reflection where deep-linking matters. The /ai… addresses are that door, as Amendment A3 records.
  • Cold boot on an old link: useHomePath() answers /home until the app list loads, so the drawer opens over the launcher rather than the declared app. Both host the same drawer.
  • data-fab-yield attributes in plugin-detail (InlineEditSaveBar) and RecordAttachmentsPanel no longer have a reader. Left in place. A follow-up can remove them.
  • console.ai.dock.maximize and console.ai.empty.editApp.description are no longer read. They are kept, because the scope is new keys only. The dead-key report lists the first as needs-review.
  • Studio's copilot maximize still navigates to /ai/build?package=…. It now lands on Home with the drawer maximized on that package's thread. AI 搭建:在右侧抽屉里搭建,主区域直接显示应用草稿本身;去掉嵌套预览,整屏一个发布按钮、一个改动数 #34610 replaces it with an in-place widen (A3, "One container").
  • The AiChatPage page component stays exported (17 test files render it). Unrouting it is a follow-up.
  • The composer hint already read 「问问数据,或让我改改这个应用…」 / "Ask about your data, or ask me to change this app…". I left it as it was.
  • Neighbours: no change to ChatbotEnhanced.tsx or PendingDraftsBar.tsx (AI 助手面板:内容区没有内边距,表格超出面板右边被裁 #34609, fix(console): the publish-health line shows a finding's customer sentence and folds agent text under technical details #34539).

Verification

Head 910dbeb. Run in a 4-vCPU cloud container.

Tests:

  • pnpm --dir ui exec vitest run packages/app-shell/src/console/ai packages/app-shell/src/console/home packages/app-shell/src/layout packages/app-shell/src/chrome packages/app-shell/src/views/studio-design/__tests__/studioCopilotOpenFullPage-12842.test.tsx packages/app-shell/src/__tests__/print-stylesheet-4462.test.ts: 265 of 266 files passed and 1746 tests passed. chatDockTarget.test.ts failed to collect under the node project (window is not defined). It is renamed to .tsx in 9c18bb8 and passes (with ChatDock.test.tsx and ChatDock.appBinding-10926: 3 files, 34 tests).
  • pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/ChatDock packages/app-shell/src/layout/__tests__/ConsoleLayout packages/i18n apps/console/src/__tests__/App …: 134 of 135 files passed. zh-hant-generated failed because zh-Hant.ts is generated output. It was regenerated with pnpm --filter @object-ui/i18n gen:zh-hant in 9c18bb8 and passes (10 tests).
  • After 910dbeb: KeyboardShortcutsDialog.wiredOnly-11674 and every ConsoleLayout.* test: 10 files, 45 tests, all passed.
  • The full app-shell suite was not run: about 2200 files, more than 40 minutes on this box. The affected directories above were run instead.

Type-check and lint:

  • tsc --noEmit and tsc -p tsconfig.test.json in ui/packages/app-shell: exit 0.
  • tsc --noEmit in ui/apps/console after pnpm --filter @object-ui/app-shell build: exit 0.
  • npx eslint on every changed ui file: 0 errors. The warnings are pre-existing kinds; the one new react-hooks/refs warning was removed.
  • node ui/scripts/check-i18n-call-site-keys.mjs: exit 0. node ui/scripts/check-i18n-en-drift.mjs: exit 0. node ui/scripts/check-i18n-dead-keys.mjs: exit 0 (a report; it lists console.ai.dock.maximize as needs-review).

Derived gates (node scripts/pm/dispatch-gates.mjs --commands, 41 commands, run at d82cadc while 9c18bb8's rename and regeneration landed; neither touches what a gate reads except test-source-alias, re-run at 910dbeb):

  • node scripts/check-adr-0087-registration.mjs --base origin/main: exit 0
  • node scripts/check-adr-0087-registration.mjs --self-test: exit 0
  • node scripts/check-changeset-no-major.mjs --base origin/main: exit 0
  • node scripts/check-closing-keyword-parity.mjs: exit 0
  • node scripts/check-closing-keyword-parity.mjs --self-test: exit 0
  • node scripts/check-comment-mask-corpus.mjs: exit 0
  • node scripts/check-empty-changeset.mjs --base origin/main: exit 0
  • node scripts/check-empty-changeset.mjs --self-test: exit 0
  • node scripts/check-sdui-manifest.mjs: exit 0
  • node scripts/check-sdui-manifest.mjs --self-test: exit 0
  • node scripts/ci/snapshot-next.mjs --self-test: exit 0
  • node scripts/pm/check-governed-queue-guard.mjs --self-test: exit 0
  • node scripts/pm/release-rehearsal-clone.mjs --self-test: exit 0
  • node scripts/release-pending-publish.mjs --self-test: exit 0
  • pnpm --dir ui exec vitest run scripts/: exit 0
  • pnpm --filter @objectstack/spec run check:duration-unit-keys: exit 0
  • pnpm check:adr-anchors: exit 0
  • pnpm check:changeset-gate-self-tests: exit 0
  • pnpm check:closed-ceremony-text: exit 0
  • pnpm check:cross-package-test-inputs: exit 0
  • pnpm check:dispatcher-error-vocabulary: exit 0
  • pnpm check:driver-memory-census: exit 0
  • pnpm check:engine-double-contract: exit 0
  • pnpm check:error-status-conformance: exit 0
  • pnpm check:gitlink-declared: exit 0
  • pnpm check:merge-driver: exit 0
  • pnpm check:nul-bytes: exit 0
  • pnpm check:published-files: exit 0
  • pnpm check:query-options-erasure: exit 0
  • pnpm check:refd-timer-probe: exit 0
  • pnpm check:registry-log-declared: exit 0
  • pnpm check:rest-log-spy-declared: exit 0
  • pnpm check:role-word: exit 0
  • pnpm check:skill-identifier-liveness: exit 0
  • pnpm check:test-source-alias: exit 1 on the first run (five edited layout tests reach import('@objectstack/lint') through ConsoleLayout's draft bar). Fixed in 910dbeb with a module-top import; re-run exit 0.
  • pnpm check:tier-file-adoption: exit 0
  • pnpm check:type-check-coverage: exit 0
  • pnpm check:type-check-debt: exit 0
  • pnpm check:undeclared-dep-imports: exit 0
  • pnpm check:watch-hint-literal: exit 0
  • pnpm check:where-matcher: exit 0

The gate report puts the change at 3214 changed lines, over the 3000-line human-merge threshold.

…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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: REWORK
Head-sha: 910dbeb

L1 read of #34665 for #34608 (2026-11-17T06:13Z). Merge-base 97defd6, 3 commits, 58 files, +2037/−1192. Both must-fix items below can be answered with comments, without a new push. I will re-read on this same head once they are posted.

Must-fix

M1. The claim's file surface does not cover 13 changed files. The code-PR surface in claim 6937569040 is ui/packages/app-shell/src/layout/**, ui/apps/console/src/** (it names AiChatPage, HomeLayout, HomePage and AppManagementPage there), the locale packs and .changeset/. Three of those four named files actually live in ui/packages/app-shell/src/console/**, not in ui/apps/console/src/**. The amendments 6939362908 and 6939618290 widen only the ADR PR. These files are outside the code-PR surface:

  • ui/packages/app-shell/src/console/ai/: AiAddressRedirect.tsx, AiChatPage.tsx, ConversationsSidebar.tsx, plus __tests__/AiAddressRedirect-34608, AiChatPage.appContextComposer-11658, AiChatPage.draftsBarInFlow-12978, AiChatPage.planApprovalReachesLaunchers-11666, ConversationsSidebar.test, editModeEmptyState.test (9 files)
  • ui/packages/app-shell/src/console/home/HomeLayout.tsx, HomePage.tsx
  • ui/packages/app-shell/src/index.ts
  • ui/packages/app-shell/src/chrome/KeyboardShortcutsDialog.wiredOnly-11674.test.tsx

The os-dev-report lists them as deviations, but the seat still has to post a claim amendment naming ui/packages/app-shell/src/console/ai/**, ui/packages/app-shell/src/console/home/**, ui/packages/app-shell/src/index.ts and that chrome test. The amendment should also correct the path of the three named files.

M2. Acceptance items 1 to 4 have no live readings. The new tests are real and they pass. But in jsdom they only check class names and testids. They can't show that fixed inset-0 z-40 really fills the window inside the real AppShell (ancestor overflow or transform, z-order against the top bar, the preview bars and Radix layers). They also don't cover the cold-boot path behind an old link. The card states each acceptance item as something a user does (#34656 was held to the same standard). Please post readings from a booted console on this head, with screenshots under /mnt/project-files/objectstack-seat3/34608-live/:

  1. On an opportunity list: location.href before the robot click, the drawer visible after it, and location.href unchanged. Click again and it closes. No floating button anywhere.
  2. Press Expand: the panel's getBoundingClientRect() equals the viewport, and the history column is visible. Press Restore: it returns to the rail width. At rail width, the History button opens the list and picking a row shows that thread.
  3. Inside an authorable app, as a user with build permission: the empty state's description and its first two suggestions are data questions.
  4. Open /_console/ai/build/<a real conversation id> in a fresh tab: where it lands, and that the full-window drawer shows that conversation.
  5. A phone viewport: the bottom sheet opens from the robot, and its History button works.

Should-fix

S1. Say what happens to the drawer's thread when you move to another app, and include it in the readings. The target is per tab, and "a target never infers the app" (A3). So once a history row or "Edit with AI" has pointed the drawer at app X's build thread, moving into app Y keeps X's thread, with context.packageId = X while surface is Y's page. Before A3, A2 bound the in-app dock to the app in view. This may be intended, but the maintainer will read the PR, not the code. Add one line to the PR body's acceptance notes, and add one reading: open a row bound to X, go to app Y, and record what the chip and the empty state name.

Notes

  • Tier H by size. check-governed-merges --pr 34665: 0 of 58 paths on the register, 3229 changed lines > 3000, so it needs a human merge or an authorized approval. After ACCEPT it goes to the seat for the approver request. The code cites ADR PR docs(adr): ui ADR-0057 Amendment A3, the AI assistant is one right-side drawer, maximized in place #34640 (Amendment A3), so that one should be approved first or together with this.
  • Conflict with feat(console): phone app menu bar with pinned entries, and a starred full menu behind More #34628 in ConsoleLayout.tsx (known). Merging main forward after feat(console): phone app menu bar with pinned entries, and a starred full menu behind More #34628 lands owes a delta read.
  • What I checked and found in order:
    • A3 "Addresses" against parseAiAddress: /ai, /ai/:agent, /ai/:agent/:id, ?package=, ?new= and the older ?agent= are all handled. ?new= keeps the old presence semantics (searchParams.get('new') !== null, AiChatPage line 1230 on main).
    • The three /ai routes sit outside both layouts, so the host remounts after the redirect and reads the stored target.
    • The handoff rides only navigation state, and the host drops it with a same-page replace.
    • The only navigate( calls left in the dock path are the same-page replace, the redirect, and useOpenAssistant's fallback outside a host. Deleting aiEntryAsksUnsaved-13253 is consistent with that, because maximize no longer leaves the page.
    • No e2e spec references the floating button, chat-dock-maximize or the /ai pages.
    • Print still hides chat-dock-panel, so the full-window layer does not print.
  • Changeset. It names @object-ui/app-shell, @object-ui/console and @object-ui/i18n, the three packages whose src moved. I read it sentence by sentence against the diff, including "The URL does not change", the History button on the phone sheet, "?package= and ?new=" and "Retiring them is a separate change". It matches.
  • i18n. 5 new keys in all 11 packs. zh-Hans: 历史 / 返回对话 / 展开 / 还原为侧边栏 / 「问数据,或者让我改这个应用 —— …」. That matches the card's wording. en is present, zh-Hant was regenerated, and no key was removed. The Clause-② widening covers locale keys only, so per the seat's routing this is L1 at TIER_DEFAULT with no L2. @object-ui/app-shell is private: true, so the new index.ts exports are not a published face.
  • Card items 1 to 6 are each implemented: robot toggle and no floating button; in-place full window with the same <aside>; history button and column; builder guidance; Home hosts the drawer; Home and app-management entries plus the /ai redirect. Studio's copilot maximize still navigates to /ai/build?package=… and so lands on Home. A3 assigns that to AI 搭建:在右侧抽屉里搭建,主区域直接显示应用草稿本身;去掉嵌套预览,整屏一个发布按钮、一个改动数 #34610, so it is correctly out of scope here.
  • Leftovers for a follow-up cleanup card (the filer's call, not this PR): the print selector [data-testid='console-chatbot-fab'] in styles.css and its row in print-stylesheet-4462.test.ts, the data-fab-yield attributes, the unsavedEditsLeave.census-13253 docblock that names the deleted suite, the unread keys console.ai.dock.maximize and console.ai.empty.editApp.description, and the unrouted AiChatPage.
  • Check-runs on 910dbeb: 58 runs and none red. Test UI 16/16 shards, Build & E2E UI, Live E2E UI, Type Check UI, Lint UI, Lint & Repo Gates, TypeScript Type Check, Check Changeset, PR-body guards and Governed Surface Queue Guard all succeeded. The rest were skipped by the path filter. The test and gate commands in the body are real commands with their output; the full app-shell suite was not run locally, and CI's 16 shards cover it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzidTEhaEGRzboS7xTa

Live readings on 910dbeb (answers L1 6940375394, M2 and S1)

Head-sha: 910dbebc9f71858b95c71fbc54b30b066f3bb911
Read at: 2026-11-17T06:37Z

Rig. The real console (ui/apps/console Vite dev server) over a real CRM example boot (pnpm dev:crm -- --fresh, after a full pnpm build of this head): real auth, metadata, sessions and the opportunity list. Only /api/v1/ai/** is a stand-in, because service-ai is Cloud/EE and the open framework answers it 501. The stand-in serves the agent catalog (ask, and metadata_assistant with authoring capability) and an in-memory conversation store seeded with two threads. Signed in as admin@objectos.ai (a builder). Chromium, 1440×900 desktop and an iPhone 13 profile. Script, raw readings and 18 screenshots: /mnt/project-files/objectstack-seat3/34608-live/ (live-readings.mjs, readings.txt, readings-s1c.txt).

All five acceptance readings match the card.

1. Robot toggles the drawer on the opportunity list, address unchanged.

  • location.href before: /apps/com.example.crm/crm_opportunity. Drawer visible before: false.
  • After the robot click: drawer visible, rect {x:1020, y:48, w:420, h:852} (the rail under the top bar). location.href unchanged.
  • Second click: drawer gone, location.href unchanged.
  • No floating button anywhere: no position: fixed button or link in the document, before or with the drawer open.
  • Shots 1a, 1b, 1c.

2. Expand and Restore; History.

  • Expand: panel rect {x:0, y:0, w:1440, h:900} = the 1440×900 viewport. The element at the top bar's position (centre, y=20) belongs to the panel, so it sits over the top bar. History column visible beside the chat, rect {x:0, y:44, w:288, h:856}. Address unchanged. Shot 2a.
  • Restore: rect back to {x:1020, y:48, w:420, h:852}, identical to the rail before.
  • At rail width, History opens the list (shot 2b). Picking "How many open opportunities?" closes the list and shows that thread's answer; the address stays unchanged (shot 2c).

3. Empty state in an authorable app as a builder (CRM, package com.example.crm).

  • Title "Editing “CRM”".
  • Description: "Ask about this app’s data — counts, lists and summaries — or tell me what to change, and I’ll modify the app in place: a field, an object, a view or a dashboard."
  • Suggestions, in order: "List the 5 most recently created records.", "Count records for each object.", then the four change starters. So the first two are data questions. Shot 1b.

4. An old link, cold, in a fresh tab.

  • Opened /ai/build/conv_build_crm in a new tab, which has its own sessionStorage. It landed at /home.
  • The drawer is data-full-window="true", rect = viewport, and shows that conversation (its seeded answer is visible). Tab target {"agent":"build","conversationId":"conv_build_crm"}. Shot 4.
  • The /_console prefix is the production basename; the dev server mounts at /, so the path read here is the same route without the prefix.

5. Phone (iPhone 13, 390×844).

  • The robot is on the top bar. Tapping it opens the bottom sheet (chat-dock-mobile-sheet, rect {x:0, y:100, w:390, h:564}), with the address unchanged.
  • The sheet's History button shows the list. Picking a row shows that thread.
  • Shots 5a to 5d.

S1. Moving from app X to app Y. This is now an acceptance note in the PR body.

  • (a) A history row picked inside CRM gives target {"agent":"build","conversationId":"conv_build_crm"}. A row names no package, because the server stores none on a thread. So the chip reads "New app". After moving to Setup, the drawer stays open on the same thread with the same chip. Shots s1a, s1b.
  • (b) A target that names a package (the drawer's app switcher, the "Edit with AI" shape) is {"agent":"build","packageId":"com.example.crm"}. In CRM it reads "Editing “CRM”" with chip "CRM". After moving to Setup it still reads "Editing “CRM”" with chip "CRM". Shot s1c.
  • (c) With no target, the ambient thread follows the app in view. CRM shows "Editing “CRM”" with chip "CRM". Setup, a built-in app that is not authorable, shows "Build with AI" with chip "New app". Shot s1d.

So a target follows the tab and never re-binds to the app in view; only the ambient thread does. That is A3's "a target never infers the app". The PR body's acceptance notes now say so, and say which of A2's behaviours remains (the ambient thread only).

M1 (claim surface) is the seat's amendment; nothing pushed. The head is unchanged: 910dbebc.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: ACCEPT
Head-sha: 910dbeb

Re-read on the same head (2026-11-17T06:39Z) after REWORK 6940375394. The code is unchanged, so this read covers only the two must-fix items and S1.

M1, met. Claim amendment 6940390955 on #34608 corrects the path of AiChatPage, HomeLayout and HomePage (ui/packages/app-shell/src/console/**). It adds ui/packages/app-shell/src/console/ai/**, ui/packages/app-shell/src/console/home/**, ui/packages/app-shell/src/index.ts and ui/packages/app-shell/src/chrome/KeyboardShortcutsDialog.wiredOnly-11674.test.tsx. All 58 changed files are now inside the claimed surface.

M2, met. Live readings are in comment 6940782559, taken on 910dbeb. They come from the real console over a fresh CRM boot with real auth and metadata. Only /api/v1/ai/** is a declared stand-in, because service-ai is Cloud/EE and open source answers 501. I read readings.txt, readings-s1c.txt and the screenshots 1b and 2a in /mnt/project-files/objectstack-seat3/34608-live/:

  1. The robot on /apps/com.example.crm/crm_opportunity opens the rail at {x:1020, y:48, w:420, h:852}, and location.href does not change. The second click closes it. No position: fixed button or link exists before or after.
  2. Expand gives {0, 0, 1440, 900}, which equals the viewport. The element at the top bar's position is the panel, and the history column is {0, 44, 288, 856}. Restore returns to the same rail rect. At rail width, History plus picking a row shows that thread. The address never changes.
  3. In CRM as a builder: "Editing “CRM”", the data-and-change description, and the first two suggestions are data questions.
  4. /ai/build/conv_build_crm in a fresh tab lands at /home with data-full-window="true", at viewport size, showing that conversation.
  5. On an iPhone 13 the robot opens the bottom sheet with the address unchanged, and History plus picking a row works.

This answers my concern about the fixed layer inside the real AppShell: it covers the whole window, top bar included, and its own header carries Restore and Close (shot 2a).

S1, met. The PR body's acceptance notes now say that a target follows the tab and never re-binds. A row (no package) keeps its "New app" chip across apps. A package-naming target keeps "Editing “CRM”" in Setup. Only the ambient thread follows the app in view. Each case was read live (s1a to s1d). This is A3's "a target never infers the app". The maintainer can see it in the body.

Check-runs on 910dbeb. The 58 runs read in my first pass are green. The body edit re-triggered Check Changeset, which was in_progress at read time. The changeset file did not move, but it must be green again before any approval-to-queue step.

Must-fix: none.

Should-fix: none open.

Notes (carried, for the seat):

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

席位记录 · 2026-11-17T06:40Z

Head-sha: 910dbebc9f71858b95c71fbc54b30b066f3bb911

维护者速读(终稿)

席位意见:建议批准。已知后续:本 PR 与 #34628(手机底部菜单栏,已在合并队列)在 ConsoleLayout.tsx 冲突,#34628 先落,本 PR 再合一次 main,L1-b 读 delta;#34610 已从本分支起步开发,本 PR 合并后开 PR。

席位核对

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 06:49
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 06:49
…-lziftn

# Conflicts:
#	ui/packages/app-shell/src/layout/ConsoleLayout.tsx
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn

L1: ACCEPT
Head-sha: 25e013b

Delta read 910dbeb..25e013b (2026-11-17T07:08Z). Prior verdict: ACCEPT at 910dbeb (comment 6940813452).

What moved. One merge commit, parents 910dbeb (the accepted head) and 77d7f52 (on main, after #34628 and #34656 landed). git diff --cc shows no hunks, so every merged line comes from one side or the other.

Check-runs on 25e013b at read time. PR-body guards, Governed Surface Queue Guard, Check PR Size and filter were green. The Lint, Type Check, Test UI, Live E2E UI and Check Changeset jobs had only just started. The card thread's local readings after the merge: app-shell tsc -p tsconfig.test.json exit 0, and layout + chrome tests Test Files 168 passed (168) / Tests 1130 passed (1130). Auto-merge is armed by os-zhuang, so the queue will not land this head before the full set is green.

Must-fix: none.

Should-fix: none.

Notes: the cleanup follow-ups from my first read still stand, for the filer.

@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit a931063 Nov 17, 2026
58 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-lziftn branch November 17, 2026 07:51
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.

AI 助手:右侧抽屉作为唯一的聊天容器,顶栏机器人打开它,放大是原地铺满并可收回

3 participants