Repository navigation
Closed
Labels
domain:uiDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「刚才的ai问数,比较好的体验也应该是停留在前端界面,可以类似通知右侧展开,而不是跳转到聊天框。」「右侧的聊天框是不是全屏之后也可以收缩回来,类似 drawer 的效果,而不要跳转页面?」「右上角导航菜单中的机器人点开,也应该是把右侧的ai聊天面板打开对吧」
现状(读码,objectstack origin/main ed45eb9;界面实测在 staging os-4e4qa4 与 hotcrm 本地实例)
- 顶栏机器人是
<Link to="/ai">(ui/packages/app-shell/src/layout/AppHeader.tsx:1144–1158);/ai在app-shell/src/console/ai/AiChatPage.tsx:1463–1494里跳到/ai/build,是一个带左侧历史栏(ConversationsSidebar,:1798–1830)的整页。 - 应用内右下角的悬浮按钮打开右侧面板
ChatDockPanel(app-shell/src/layout/ChatDock.tsx:287–392,默认宽 420,可拖宽);快捷键 Ctrl/Cmd+Shift+I。面板和整页用的是同一个ChatPane。 - 面板的放大图标(
ChatDock.tsx:342–354,「Open full page」)会离开当前页:openDockFullPage(ConsoleLayout.tsx:229–241)跳到/ai或/ai/build?package=…。面板本身有原地放大的dock.maximize(),现在只有实时画布在用(:305–308)。 - 环境首页没有可停靠的外壳,它的悬浮按钮直接开整页(
HomeLayout.tsx:198–204)。 - 空状态:
agentEmptyState(AiChatPage.tsx:492–540)与buildAgentSuggestions(:3617–3633)。有搭建权限的用户被从问数升级成搭建(surfaceAgent.ts:122–143),于是只看到「Editing "Sales"」和改应用的建议,没有问数的引导。
要做的
- 顶栏机器人改为开关右侧抽屉,不再跳转;去掉应用内右下角的悬浮按钮(入口只有一个)。
- 抽屉的放大改为原地铺满(复用
dock.maximize()),地址不变,同一个图标点一下还原为侧栏宽度。 - 对话历史进抽屉:侧栏宽度下是「历史」按钮,铺满时显示历史栏。
- 空状态与输入框提示对有搭建权限的用户同时给出问数和改应用两类引导(文案:「问数据,或者让我改这个应用」)。
- 环境首页也能打开同一个抽屉。
- 其余仍指向
/ai/build的入口(HomePage.tsx:232、AppManagementPage.tsx:661)改为打开抽屉;/ai/...旧地址保留并重定向到打开抽屉的状态,避免旧链接失效。
不做的
- AI 搭建时主区域显示应用草稿、去掉嵌套预览,是专题的另一张子卡。
- 抽屉内边距与表格溢出是另一张子卡。
- 「把问数结果应用为左侧列表的筛选」图里画了,属于新功能,本卡不做。
验收
- 在商机列表点顶栏机器人,右侧出现抽屉,地址不变。
- 点放大,抽屉铺满并出现历史栏;再点还原。
- 有搭建权限的用户在空状态看到问数的建议词。
- 打开旧的
/_console/ai/build/<对话 ID>链接,能看到那条对话。
设计图(静态示意稿,标「新」的是改动;字段和文案以实际元数据为准)
Reader: domain:ui 车道,改 AppHeader.tsx、ChatDock.tsx、ConsoleLayout.tsx、AiChatPage.tsx、HomeLayout.tsx。
Dedupe: repo:objectstack-ai/objectstack ChatDock maximize openDockFullPage in place AI assistant → 0;… buildAgentSuggestions data questions builder dock empty state → 0。
Metadata
Metadata
Assignees
Labels
domain:uiDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2


Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
pm:queue· 2026-11-17T03:30Z⛔ Not a claim.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Ruled · 2026-11-17T03:40Z
The maintainer, in the os-support-ai fleet project (thread "Run objectstack seat 3 console experience") at 2026-11-17T03:40Z, answered the seat's four-question pack (reviewed first by an independent fable agent at his request) with one word, verbatim: 「同意」 — i.e. every recommendation below.
Ruled: A — the AI assistant becomes one right-side drawer; maximize is in place and restores; the in-app bottom-right AI button is removed (one entry: the top-bar robot); old
/aiand/ai/buildlinks (shared links included) redirect to the opened drawer./ai= the same panel maximized」), Amendment A2 (「Maximize goes to/ai/build?package=PKG」), open question 2 (button stays, decided 2026-07-13) and open question 5 (「the routes are untouched」). The ADR is amended in a separate Tier H PR (docs only) before or alongside the code PR; the code PR cites it.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Claim: PM loop round 1 · 2026-11-17T03:44Z
Session:
session_01WGufzgh1zkZzDXL36ckWAGThread session:
session_01WGufzidTEhaEGRzboS7xTaAccount:
os-support-aiBranch:
claude/project-thread-lziftn(card-thread pinned branch, code PR); the ADR amendment goes in a separate docs-only PRWorktree:
objectstack-issue-34608Domain:
domain:uiSeat:
repo:objectstack#3File surface: code PR —
ui/packages/app-shell/src/layout/**(AppHeader, ConsoleLayout, ChatDock),ui/apps/console/src/**AI pages, routes and entries (AiChatPage, HomeLayout, HomePage, AppManagementPage),ui/packages/i18n/src/locales/*(new keys only), root.changeset/; ADR PR — the ui ADR-0057 file only (Tier H, handed to the maintainer)Container & model:
L,mode:thread(large card; hands its head back to areao3-D),model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate for the code PR),effort: highClause-②: yes (widening — new @object-ui/i18n locale keys only)
Metadata-protocol: none
Responsibility:
n/a — not a defect cardRuling-ref: the seat's Ruled comment on this card (maintainer 「同意」, 2026-11-17)
Thread-read: 6937495221
Premise: holds (fable review Q1: dock maximize()/restore() exist; top-bar robot is a Link to /ai; ADR-0057 §3, A2, OQ2, OQ5 amended by the ruling)
Serial constraints cleared:
#34609 (o3-D) and open PR #34539 touch ChatbotEnhanced.tsx / PendingDraftsBar.tsx; #34596 item 2 (FAB) handed to this card; #34610 follows this drawer — overlap-check before each pushLease
o3-D(seat post #34584); child of epic #34571.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzidTEhaEGRzboS7xTa
os-dev-report
Stamp: 2026-11-17T05:14Z
{ "issue": 34608, "status": "done", "branch": "claude/project-thread-lziftn", "pr": "https://github.com/objectstack-ai/objectstack/pull/34665", "adr_pr": "https://github.com/objectstack-ai/objectstack/pull/34640 (branch claude/issue-34608-adr-0057-amend, head of its one commit, label skip-changeset, Tier H, handed to the seat only, not readied)", "head": "910dbebc9f71858b95c71fbc54b30b066f3bb911", "session": "session_01WGufzidTEhaEGRzboS7xTa", "premise_still_valid": true, "summary": "The console's right-side chat drawer is the AI assistant's only container. The top-bar robot (new AssistantTopBarButton) toggles it on the current page with the URL unchanged and carries the plan-pending marker; ConsoleChatbotFab is deleted. Maximize switches the same <aside> to fixed inset-0 in place (no remount) and the same button restores; leaving the page restores it. History is behind a History button at rail width and a column when maximized; the phone sheet has a History button. A new host hook, useConsoleChatDock, is mounted by ConsoleLayout and HomeLayout and keeps a per-tab ChatDockTarget (agent, conversation, package, fresh) in sessionStorage; pages open the drawer through useOpenAssistant (falls back to the old address outside a host). /ai, /ai/:agent and /ai/:agent/:id render AiAddressRedirect, which arms target, expanded and full window and lands on useHomePath(); a Builder handoff rides navigation state only. Home's Build/Ask and app management's Edit with AI open the drawer; a new build starts unbound. A builder inside an app gets data questions in the empty-state description and as the first two suggestions. The dock's share button now opens the share dialog.", "tests": "Affected app-shell dirs (console/ai, console/home, layout, chrome, studio copilot full-page test, print stylesheet) on d82cadcb: 'Test Files 1 failed | 265 passed (266) / Tests 1746 passed (1746)'; the red was chatDockTarget.test.ts collecting under the node project (window is not defined), renamed to .tsx in 9c18bb8c, re-run with ChatDock.test.tsx and ChatDock.appBinding-10926 'Test Files 3 passed (3) / Tests 34 passed (34)'. ChatDock.*, ConsoleLayout.*, packages/i18n, console App.* tests: 'Test Files 1 failed | 134 passed (135)'; the red was zh-hant-generated (zh-Hant.ts is generated), regenerated with gen:zh-hant in 9c18bb8c, re-run 'Tests 10 passed (10)'. After 910dbebc: KeyboardShortcutsDialog.wiredOnly-11674 + ConsoleLayout.* 'Test Files 10 passed (10) / Tests 45 passed (45)'. Full app-shell suite not run (about 2200 files, over 40 min here). Type-check: app-shell tsc --noEmit exit 0, tsconfig.test.json exit 0; console tsc --noEmit exit 0 after rebuilding app-shell dist. eslint on every changed ui file: 0 errors. ui i18n call-site-keys exit 0, en-drift exit 0, dead-keys (report) exit 0.", "gates": "node scripts/pm/dispatch-gates.mjs --commands derived 41 on d82cadcb (rename and zh-Hant regeneration landed during the loop; neither touches a gate input except test-source-alias); 40 exit 0 on the first run; pnpm check:test-source-alias exit 1 (five edited layout tests reach import('@objectstack/lint') through ConsoleLayout's draft bar), fixed in 910dbebc with a module-top import, re-run exit 0. pnpm --dir ui exec vitest run scripts/ exit 0 ('Tests 5077 passed | 2 skipped'); check:type-check-debt exit 0 (measured under the lock, 0 errors). dispatch-gates --ran: '41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED'. overlap-check at 910dbebc: merges cleanly with origin/main 518bacad; VERDICT overlap exit 1 for one PR only, #34628 (phone app menu bar, draft) conflicts in ui/packages/app-shell/src/layout/ConsoleLayout.tsx; the other six sharing PRs merge cleanly. Changed lines 3214, over the 3000 human-merge threshold.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "deviations": [ "Two PRs as ordered: the ADR amendment is #34640 (docs only) and the code PR cites it; ADR text is not in the code PR.", "ADR PR amends ADR-0037 only in boundary rule 3's floating-button sentence; ADR-0037's split-view Decision is left for #34610.", "Files outside the order's first list: ui/packages/app-shell/src/console/ai/ConversationsSidebar.tsx (hosted mode for the drawer's history), console/home/HomeLayout.tsx (Home hosts the drawer), index.ts exports, and re-pointed tests that stubbed the FAB or the full page.", "Deleted tests: ConsoleChatbotFab.test.tsx and ConsoleChatbotFab.yieldsCorner-12248.test.tsx (component removed), ConsoleLayout.aiEntryAsksUnsaved-13253.test.tsx (maximize no longer leaves the page). ConsoleLayout.fabYieldsToOpenDock-10899 renamed to ConsoleLayout.robotTogglesDrawer-34608 and rewritten.", "Drawer state is per-tab sessionStorage, not a URL parameter (ui ADR-0054 C3 reflection goes through the kept /ai addresses, as Amendment A3 records).", "Locale scope new keys only: console.ai.dock.maximize and console.ai.empty.editApp.description are left unread, not removed.", "Studio's copilot maximize still navigates to /ai/build?package=…, which now lands on Home with the drawer maximized on that thread.", "AiChatPage stays exported (17 test files render it) but is no longer routed." ], "files_changed": [ ".changeset/34608-ai-assistant-one-drawer.md", "ui/apps/console/src/App.tsx", "ui/apps/console/src/__tests__/App.agentChatLink-10640.test.tsx", "ui/apps/console/src/__tests__/App.docsPortalLazy.test.tsx", "ui/apps/console/src/__tests__/App.nativeShellMode-29039.test.tsx", "ui/apps/console/src/__tests__/App.nativeShellOpenSet-29330.test.tsx", "ui/apps/console/src/__tests__/App.uploadAltitude-10131.test.tsx", "ui/apps/console/src/__tests__/i18nAfterSignIn-12034.test.tsx", "ui/apps/console/src/__tests__/internalFormShell.test.tsx", "ui/apps/console/src/components/aiChatPage.ts", "ui/apps/console/src/pages/system/AppManagementPage.tsx", "ui/packages/app-shell/src/chrome/KeyboardShortcutsDialog.wiredOnly-11674.test.tsx", "ui/packages/app-shell/src/console/ai/AiAddressRedirect.tsx", "ui/packages/app-shell/src/console/ai/AiChatPage.tsx", "ui/packages/app-shell/src/console/ai/ConversationsSidebar.tsx", "ui/packages/app-shell/src/console/ai/__tests__/AiAddressRedirect-34608.test.tsx", "ui/packages/app-shell/src/console/ai/__tests__/AiChatPage.appContextComposer-11658.test.tsx", "ui/packages/app-shell/src/console/ai/__tests__/AiChatPage.draftsBarInFlow-12978.test.tsx", "ui/packages/app-shell/src/console/ai/__tests__/AiChatPage.planApprovalReachesLaunchers-11666.test.tsx", "ui/packages/app-shell/src/console/ai/__tests__/ConversationsSidebar.test.tsx", "ui/packages/app-shell/src/console/ai/__tests__/editModeEmptyState.test.ts", "ui/packages/app-shell/src/console/home/HomeLayout.tsx", "ui/packages/app-shell/src/console/home/HomePage.tsx", "ui/packages/app-shell/src/index.ts", "ui/packages/app-shell/src/layout/AppHeader.tsx", "ui/packages/app-shell/src/layout/AssistantTopBarButton.tsx", "ui/packages/app-shell/src/layout/ChatDock.tsx", "ui/packages/app-shell/src/layout/ChatDockConversation.tsx", "ui/packages/app-shell/src/layout/ConsoleChatbotFab.tsx", "ui/packages/app-shell/src/layout/ConsoleLayout.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.requestContext-30043.test.tsx", "ui/packages/app-shell/src/layout/__tests__/ChatDock.test.tsx", "ui/packages/app-shell/src/layout/__tests__/ConsoleChatbotFab.test.tsx", "ui/packages/app-shell/src/layout/__tests__/ConsoleChatbotFab.yieldsCorner-12248.test.tsx", "ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.aiEntryAsksUnsaved-13253.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", "ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.fabYieldsToOpenDock-10899.test.tsx", "ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.previewFrameDock-26470.test.tsx", "ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.robotTogglesDrawer-34608.test.tsx", "ui/packages/app-shell/src/layout/__tests__/chatDockTarget.test.tsx", "ui/packages/app-shell/src/layout/__tests__/launcherPlanApprovalMarker-11666.test.tsx", "ui/packages/app-shell/src/layout/chatDockControl.tsx", "ui/packages/app-shell/src/layout/chatDockTarget.ts", "ui/packages/app-shell/src/layout/useConsoleChatDock.tsx", "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts" ], "mcp_calls": "0 GitHub MCP tools; subscribe_pr_activity on #34665 and #34640", "api_writes": "git pushes to claude/project-thread-lziftn and claude/issue-34608-adr-0057-amend; 2 relay pr_create via scripts/pm/fleet-write/dispatch.mjs (run 44017942416 for #34640, 4481 bytes identical; run 44022250275 for #34665, 16985 bytes identical); 1 comment via scripts/pm/post-stamped.mjs (this one)", "open_questions": [ "#34628 and this PR conflict in ConsoleLayout.tsx: whichever lands second merges main forward." ], "security_findings": "none", "out_of_scope_findings": [ "data-fab-yield attributes in plugin-detail InlineEditSaveBar and RecordAttachmentsPanel have no reader now; a follow-up can remove them.", "console.ai.dock.maximize and console.ai.empty.editApp.description are unread; retiring them is a separate change.", "AiChatPage page component can be unrouted/retired with its tests in a follow-up." ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Claim amendment · 2026-11-17T05:20Z
The ADR PR #34640 (branch
claude/issue-34608-adr-0057-amend, claim 6937569040) also editsdocs/adr/0037-live-canvas-draft-preview.md: one sentence of boundary rule 3 (the floating-button sentence), per the 「同意」 ruling 6937495221. The ADR PR's surface is the ui ADR-0057 file plus that ADR-0037 sentence. Per L1-b ACCEPT 6939314304.Clause-②: unchanged
Metadata-protocol: none
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Claim amendment · 2026-11-17T05:33Z
Correction to amendment 6939362908: at head 2abe390 the ADR PR #34640 edits more of
docs/adr/0037-live-canvas-draft-preview.mdthan rule 3's sentence: theAmendedheader line, the Decision (split view → the one right drawer) and the Phase 2 LiveCanvas host item, per rulings 6937495221 (#34608) and 6937505798 (#34610). The ADR PR's surface is the whole of that ADR-0037 file plus the ui ADR-0057 file. #34610's claim amendment names the same.Clause-②: unchanged
Metadata-protocol: none
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Claim amendment · 2026-11-17T06:14Z
Code PR #34665 (branch
claude/project-thread-lziftn, head 910dbeb): file surface corrected and widened per L1-b REWORK 6940375394.ui/packages/app-shell/src/console/**, notui/apps/console/src/**as claim 6937569040 said.ui/packages/app-shell/src/console/ai/**,ui/packages/app-shell/src/console/home/**,ui/packages/app-shell/src/index.ts(workspace-private package), and the testui/packages/app-shell/src/chrome/KeyboardShortcutsDialog.wiredOnly-11674.test.tsx.Clause-②: unchanged (yes, widening — locale keys only; app-shell export surface is workspace-private)
Metadata-protocol: none
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Closed by merge · 2026-11-17T07:59Z
PR #34665 merged at 2026-11-17T07:51Z (
Fixes #34608), approved and queued by os-zhuang (Tier H by size). Delivered under ruling 6937495221: the AI assistant is one right-side drawer opened by the top-bar robot; maximize is in place and restores; the in-app bottom-right AI button is removed; old/aiand/ai/buildlinks open the drawer. L1 ACCEPT 6940813452, delta 6941319416; live readings 6940782559. The ui ADR-0057 amendment is PR #34640 (seat). #34610 continues on PR #34713.pm:dispatchedandlease:o3-Dremoved.