Repository navigation
Todo
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:queueReady for the PM dispatch looppriority:p1High: required for production / M2
Description
repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2
维护者速读
- 做什么:工作台首页问候语下方放一个醒目的「问 AI」输入框(维护者要求加上应用内 AI 问询入口)。可以跨所有已装应用问数、问待办、问知识;管理员还能让 AI 改应用。提问后在右侧打开 AI 面板继续,工作台不跳走。
- 推荐问题按当前数据和身份生成;没装应用时不显示(向导里的「让 AI 搭一个」接替)。
- 手机端第一期在应用列表顶部也放同一个输入框。
Parent: #39871. Phase 1. Lives on the workbench home (#39872).
What exists
- The assistant panel / drawer and its composer (
ui/packages/plugin-chatbot, app-shell AI drawer; history per app with an All switch, feat(app-shell): the AI drawer history lists the app's conversations, with an All switch #39250);ai:suggestionpage component (packages/spec/src/ui/page.zod.ts:268-271).
What to build
- A composer card on the workbench home: placeholder 「问问你的数据,或让 AI 帮你做事…」, attachments as today, Enter sends and opens the right-hand panel with the question; answers' record links open in their app.
- Scope: questions asked here are not bound to one app; the panel shows 「范围:全部应用」 and the conversation is filed under All in history (and under the workbench's 「AI 对话」 menu). Opened from inside an app, today's 「正在看:…」 scope is unchanged.
- Suggestions (3-4 chips), from the person's own state: overdue items → 「哪些工作项本周逾期?」; pending approvals → 「有什么在等我审批?」; admins get one building suggestion (「给工作项加个字段」); none when the environment has no product app.
- Answers stay within the person's access, as today.
- Phone: the same box above the phone app list.
Acceptance
- From the workbench, a data question about an installed app is answered with links that open in that app; the conversation shows under All / AI 对话.
- Suggestions change with data (an overdue item makes the overdue chip appear; no apps → no chips).
- Tests; zh-Hans + en screenshots at 1280 and phone.
2026-12-06 修订(维护者已确认,2026-12-06T09:25Z)
- 最小上线切片(约 0.5 人日):问候语下方一个输入框,回车即打开右侧 AI 抽屉并带上问题,范围是全部应用;运行时不提供 AI 时不显示。挂在 Workbench MVP: the home page — greeting, ask-AI slot, today's three columns, recents, a "my apps" rail and the add-app slot, from the retired desktop home's sections #39883 留的位置。
- 随后(约 1.5 人日):推荐问题只读平台来源(待我审批数、
sys_task逾期数)加应用声明的静态问题;「随数据变化」的说法改成这两种可测的来源。应用工作项相关的推荐等 Proposal: a "my work" source contract, so app-owned work items (e.g. project work items) can appear in the workbench task column and a future calendar #39890。 - 菜单不放「AI 对话」(右上角「问 AI」已覆盖,AI 助手:右侧抽屉作为唯一的聊天容器,顶栏机器人打开它,放大是原地铺满并可收回 #34608 规定 AI 只有抽屉)。
- 原先的 Blocked-by Workbench: every sign-in lands on /home, the retired desktop home revived as the workbench (with a per-user "land in last app" preference) #39872 改为 Workbench MVP: the home page — greeting, ask-AI slot, today's three columns, recents, a "my apps" rail and the add-app slot, from the retired desktop home's sections #39883。
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:queueReady for the PM dispatch looppriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Dec 6, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · domain:ui · Feature · p1 · pm:blocked, touched 2026-12-06T09:18Z. Rationale: the North Star allows one
area:*per card. This is a section of the workbench home (epic #39871, phase 1) that opens the existing assistant, soarea:uxstays andarea:aicomes off. It is built on the workbench layout.Blocked-by: #39872
objectstack-fleet commentedon Dec 6, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Blocker updated, 2026-12-06T10:12Z: epic #39871 was re-planned (2026-12-06T09:54Z). The ask-AI box now goes into the MVP home, #39883. R1637's
Blocked-by: #39872is superseded. Phase-1 MVP dispatch sits withrepo:cloud@hotlong(ruling A, 7455301888).Blocked-by: #39883
feat(app-shell): the workbench home, registered as workbench:home
objectstack-fleet commentedon Dec 6, 2026
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV
Claim: PM loop · 2026-12-06T10:38Z
Session:
session_01Q4EjjQzFqHGjUAXt8kBQhVThread session:
session_01Q4EjjRhgTtzifTZgBfaW8DAccount:
hotlongBranch:
claude/project-thread-ne2bl5(stacked on PR #39895's head ffdca2b; mergesorigin/mainonce #39895 lands)Worktree:
objectstack-issue-39878Domain:
domain:uiSeat:
repo:cloud@hotlong(scope extended for the eight phase-1 cards of #39871 by the account owner, ruling A, comment 7455301888)File surface:
ui/packages/app-shell/src/console/workbench/WorkbenchAskSlot.tsx(stop on breach; explain in the report)Container & model: S, mode:thread, model: default (no path-derived mandate), effort: high (reason: maintainer standing order 2026-11-27 13:03Z, dispatched threads run at high)
Clause-②: no
Metadata-protocol: none
Responsibility: the workbench home's ask-AI box is platform console code | every person who opens the workbench | phase-1 MVP slice of #39871 (the box opening the AI drawer; suggestions are later)
Thread-read: none
Premise: holds (#39895 provides the slot
WorkbenchAskSlot.tsx, holding the old home's ask-AI button today)Serial constraints cleared: stacked on #39895 (#39883), which lands first; this PR stays draft until then
Resume-from: none
Order: project file
pm-orders/objectstack/seat-cloud-hotlong/order-39878.md. MVP slice only (Refs, notFixes).objectstack-fleet commentedon Dec 6, 2026
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV
Release: 2026-12-06T13:19Z · landed #39908 (
Refs #39878, merged 04c6bb7): the phase-1 MVP slice, the ask-AI box under the workbench greeting opening the drawer with the question, plus the drawer handoff delivery it needed. Remaining: suggested questions, attachments, and the box at the top of the phone app list (later slices of epic #39871, not part of ruling A's MVP). Back topm:queue.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmPhvd5XT8WTQ6Lu6ic
Claim: PM loop round 1
Session:
session_01ADHkmPhvd5XT8WTQ6Lu6icAccount:
os-steveBranch:
claude/issue-39878-ask-ai-suggestionsWorktree:
objectstack-issue-39878Domain:
domain:uiSeat:
repo:objectstack@os-steveArea: ost-W (zone of this seat for epics #39871 / #39900 after phase 1, hand-over 7460287831)
File surface:
ui/packages/app-shell/src/console/workbench/WorkbenchAskSlot.tsx,ui/packages/app-shell/src/console/workbench/workbenchAskSuggestions.ts(new),ui/packages/app-shell/src/layout/PhoneAppHome.tsx(the box above the phone app list),ui/packages/i18n/src/locales/en.ts,ui/packages/i18n/src/locales/zh-Hans.tsContainer & model:
M,mode:subagent,model: default (dispatch-gates --tier: "no path-derived mandate … floor sonnet · default opus · ceiling fable"),effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7458072435
Premise: holds (remainder per Release 7458072435: suggestions, attachments, phone placement; re-read at main b9be251: WorkbenchAskSlot.tsx:21 says "Suggestions and attachments are later slices")
Pre-claim lane:
domain:ui— every path is underui/packages/**Scope note: app-declared static questions are built only if an existing declaration already carries them; a new metadata key is out of this claim (the dev stops and reports, the zone files it).
Pre-claim deps: #39883 closed, #39908 (MVP slice) merged. App-declared work-item suggestions wait on #39890 (card revision 09:25Z): not built here.
Prior rulings read: card revision 2026-12-06T09:25Z (maintainer-confirmed: suggestions read only platform sources — pending approvals count, overdue
sys_taskcount — plus app-declared static questions; no 「AI 对话」 menu entry, #34608 keeps the drawer the only chat container)Serial constraints cleared: #39941 (this zone, same round) owns WorkbenchHomePage.tsx; this card stays out of it (stop on breach). No open PR touches these files.
Resume-from: none
objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmPhvd5XT8WTQ6Lu6ic
os-dev-report
{ "issue": 39878, "status": "done", "branch": "claude/issue-39878-ask-ai-suggestions", "pr": "https://github.com/objectstack-ai/objectstack/pull/39956", "session": "session_01ADHkmPhvd5XT8WTQ6Lu6ic", "premise_still_valid": true, "summary": "Delivered two of the three remaining items, as a draft PR that says Refs #39878. (1) Suggested questions under the workbench ask-AI box, up to four: an overdue sys_task chip (from the task column's own hook, useWorkbenchTasks), a pending-approvals chip (from useHomeInbox's shared approvals feed, only once its status is ready), app-declared static questions, and one building chip for an admin who may author when a build agent is served, which opens the build agent. No chip when there is no product app; nothing is read when no AI is served. The app-declared questions come from a declaration that already exists: the suggestions of an app's ai:chat navigation entry (AiChatNavParamsSchema), read with readAiChatPageCopy, so no new metadata key. (2) Phone: PhoneAppHome draws the same slot above the menu when the app at its address is the workbench. Not delivered: attachments. The drawer handoff (BuilderHandoffState in chatDockTarget.ts, the seeding effect in ChatDockConversation.tsx, the fallback in chatDockControl.tsx) carries text only, and all three files are outside the claim's file surface, so I stopped and am reporting it here. Also verified against main b9be2514: conversations are filed under All, but nothing draws the card's 「范围:全部应用」 label in the drawer, so that item is not shipped either.", "tests": "At head 17865f3b21: `cd ui && vitest run --maxWorkers=2 packages/app-shell/src/console/workbench/ + layout/__tests__/UnifiedSidebar.phoneAppHome-35881.test.tsx + UnifiedSidebar.footerSlot-36739.test.tsx`, VERDICT command-exit 0, 6 files / 64 tests passed. `vitest run packages/i18n/` exit 0, 110 files passed, 1874 tests passed, 13 skipped (key parity included). `pnpm --filter @object-ui/app-shell type-check` (tsc and tsconfig.test.json) exit 0, run after building the app-shell^... closure (73 tasks, 54 from cache). Reverse check (the fix committed first): forcing the slot's overdueTaskCount to 0 and the phone placement off gave VERDICT command-exit 1 with 2 failed and 31 passed (the overdue-chip case and the phone-placement case), then I restored with `git checkout HEAD --` and porcelain was clean.", "gates": "Local subset, exit captured before any pipe: all 41 families from `dispatch-gates --commands` (changeset included) exit 0, among them check:adr-0087-registration, changeset-no-major, empty-changeset, closing-keyword-parity, sdui-manifest, nul-bytes, cross-package-test-inputs, published-files, type-check-coverage, type-check-debt, undeclared-dep-imports, and `pnpm --dir ui exec vitest run scripts/` (172 files passed). check:test-source-alias exited 1 on the first run: the edited phone harness reached a lazy @objectstack/lint import through PhoneAppHome, WorkbenchAskSlot and HomePage. I added the prescribed module-top `import '@objectstack/lint'` and it then exited 0. ui check:i18n-keys 0, check:i18n-drift 0, check:i18n-dead-keys 0. `dispatch-gates --ran` reconciliation: 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN. CI check-runs on PR 39956: NOT MEASURED, because the report was delivered at PR open and CI convergence is the PM's.", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST pulls, draft; read-back identical, 8209 bytes), and post-stamped issue comment on #39878 (this report). git push is not counted.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: zone ost-W · attachments for the workbench box need a files member on BuilderHandoffState (layout/chatDockTarget.ts), carried through the drawer's handoff seeding in ChatDockConversation.tsx (pendingFirstMessageRef already takes files), and a decision for the no-drawer fallback in chatDockControl.tsx; outside this claim's file surface · dedupe words: workbench ask attachments handoff files", "carrier: zone ost-W · the drawer draws no 「范围:全部应用」 scope label for an app-less ask thread (card item 2); the only scope chip is AppAskPage's · dedupe words: drawer scope label all apps", "carrier: zone ost-W · on the workbench home, sys_task is now read twice (the task column and the chips, because useWorkbenchTasks keeps state per mount); sharing one read needs an edit to WorkbenchTaskColumn.tsx · noted, not filed", "carrier: zone ost-W · ui/AGENTS.md #2 docs-driven: the app-shell README and the content/docs/frontend page were not updated (outside the file surface) · noted, not filed" ], "deviations": "File surface: besides the five claimed files, the diff edits ar/de/es/fr/ja/ko/pt-BR/ru.ts, because all-locales-key-parity.test.ts requires every pack to define every en key (the order said to follow what the i18n gate demands). It also regenerates zh-Hant.ts (generated output) and adds three test files: workbenchAskSuggestions.test.ts (a same-name test), plus new describes in the existing harnesses WorkbenchHomePage.test.tsx (the slot's harness) and UnifiedSidebar.phoneAppHome-35881.test.tsx (PhoneAppHome's harness), per the root AGENTS.md shared-harness rule. Building suggestion text: the card's 「给工作项加个字段」 became the generic 'Help me add a field to an app', because work items wait on #39890.", "files_changed": [ "ui/packages/app-shell/src/console/workbench/WorkbenchAskSlot.tsx", "ui/packages/app-shell/src/console/workbench/workbenchAskSuggestions.ts", "ui/packages/app-shell/src/console/workbench/__tests__/workbenchAskSuggestions.test.ts", "ui/packages/app-shell/src/console/workbench/__tests__/WorkbenchHomePage.test.tsx", "ui/packages/app-shell/src/layout/PhoneAppHome.tsx", "ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.phoneAppHome-35881.test.tsx", "ui/packages/i18n/src/locales/{en,zh-Hans,zh-Hant,ar,de,es,fr,ja,ko,pt-BR,ru}.ts", ".changeset/39878-workbench-ask-suggestions.md" ], "line_budget": "659 changed lines (+646/-13, 18 files), under the 3000 human-merge threshold" }objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmRM92nyNXbcm2LJn1N
L1 at 2026-12-06T19:01Z: ACCEPT → PR #39956 comment 7462994870 (head
17865f3b, Refs — card released with its remainder at landing).objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmPhvd5XT8WTQ6Lu6ic
Release: landed #39956 (
Refs #39878, merged 7e7f128): suggested questions under the workbench ask-AI box (overduesys_task, pending approvals, the app's existingai:chatnavigation suggestions, one building chip for authoring admins; none with no product app) and the same box on the workbench's phone home. Remaining on this card: attachments in the box (the drawer handoffBuilderHandoffStateinui/packages/app-shell/src/layout/chatDockTarget.tscarries text only;ChatDockConversation.tsxandchatDockControl.tsxneed the files path), the drawer's 「范围:全部应用」 scope label for an app-less ask thread, zh-Hans/en screenshots, the app-shell README /content/docspage, and one sharedsys_taskread (the column and the chips each read it today). Back topm:queue; zone ost-W takes the remainder next.Resume-from: none