Skip to content

Workbench: an ask-AI box under the greeting, scoped to all apps, with suggestions from the person's own data #39878

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

维护者速读

  • 做什么:工作台首页问候语下方放一个醒目的「问 AI」输入框(维护者要求加上应用内 AI 问询入口)。可以跨所有已装应用问数、问待办、问知识;管理员还能让 AI 改应用。提问后在右侧打开 AI 面板继续,工作台不跳走。
  • 推荐问题按当前数据和身份生成;没装应用时不显示(向导里的「让 AI 搭一个」接替)。
  • 手机端第一期在应用列表顶部也放同一个输入框。

Parent: #39871. Phase 1. Lives on the workbench home (#39872).

What exists

What to build

  1. 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.
  2. 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.
  3. 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.
  4. Answers stay within the person's access, as today.
  5. 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)

Activity

  1. added
    enhancement
    priority:p1
    domain:ui
    area:ai
    on Dec 6, 2026
  2. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    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, so area:ux stays and area:ai comes off. It is built on the workbench layout.
    Blocked-by: #39872

  3. added
    pm:blocked
    and removed
    area:ai
    on Dec 6, 2026
  4. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    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: #39872 is superseded. Phase-1 MVP dispatch sits with repo:cloud@hotlong (ruling A, 7455301888).
    Blocked-by: #39883

  5. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

    Claim: PM loop · 2026-12-06T10:38Z
    Session: session_01Q4EjjQzFqHGjUAXt8kBQhV
    Thread session: session_01Q4EjjRhgTtzifTZgBfaW8D
    Account: hotlong
    Branch: claude/project-thread-ne2bl5 (stacked on PR #39895's head ffdca2b; merges origin/main once #39895 lands)
    Worktree: objectstack-issue-39878
    Domain: domain:ui
    Seat: 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, not Fixes).

  6. added
    pm:dispatched
    and removed
    pm:blocked
    on Dec 6, 2026
  7. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    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 to pm:queue.

  8. added
    pm:queue
    and removed
    pm:dispatched
    on Dec 6, 2026
  9. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmPhvd5XT8WTQ6Lu6ic

    Claim: PM loop round 1
    Session: session_01ADHkmPhvd5XT8WTQ6Lu6ic
    Account: os-steve
    Branch: claude/issue-39878-ask-ai-suggestions
    Worktree: objectstack-issue-39878
    Domain: domain:ui
    Seat: repo:objectstack@os-steve
    Area: 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.ts
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate … floor sonnet · default opus · ceiling fable"), effort: high
    Clause-②: 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 under ui/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_task count — 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

  10. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 6, 2026
  11. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    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"
    }
  12. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    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).

  13. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmPhvd5XT8WTQ6Lu6ic

    Release: landed #39956 (Refs #39878, merged 7e7f128): suggested questions under the workbench ask-AI box (overdue sys_task, pending approvals, the app's existing ai:chat navigation 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 handoff BuilderHandoffState in ui/packages/app-shell/src/layout/chatDockTarget.ts carries text only; ChatDockConversation.tsx and chatDockControl.tsx need the files path), the drawer's 「范围:全部应用」 scope label for an app-less ask thread, zh-Hans/en screenshots, the app-shell README / content/docs page, and one shared sys_task read (the column and the chips each read it today). Back to pm:queue; zone ost-W takes the remainder next.
    Resume-from: none

  14. added
    pm:queue
    and removed
    pm:dispatched
    on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxdomain:uienhancementpm:queuepriority:p1

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions