Repository navigation
Description
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf
Filing gate: ④ cross-repo topic parent (tracking). Source: maintainer. Jack in the seat thread, 2026-11-27, verbatim: 「我们的问题是右上角的问AI太小太不明显了,然后项目经理才想到要加一个按钮」 (06:27Z); 「"页面里加按钮"的需求 作废」 (06:28Z); decision card 「撤掉 ask_ai(#37834 方案 B)」 (06:30Z); 「应用不能改名」 (06:32Z); 「问 AI」 (06:33Z); 「开始做详细的专题设计,然后用fable评估,准备立专题卡」 (06:43Z); decision card 「全部按建议」 + 「同意,立专题卡,非 cloud 的任务,让 objectstack #3 座位接手」 (07:12Z).
Owner: the objectstack children go to repo:objectstack#3 (Jack 07:12Z). The cloud children (C6, C6e) stay with seat epic:#5027#1 (cloud agent-effect topic, objectstack-ai/cloud#5027).
Business reason: users cannot find where to ask AI. On desktop the only entry is a 32px transparent robot icon in each page header, so PMs started asking for per-page "Ask AI" buttons. Fixing the one entry is cheaper and clearer than spreading buttons over pages.
Grading: area:ai · tracking · p1 (children carry their own grades).
Dedupe: searched ask_ai, AssistantTopBarButton, chatFocus, favorite conversation, ShellPageActions AI: related open cards #37834 (decision, ruled here), #37827 (closed by C1), #36996 (record-scoped inquiry topic; its "Done when" is amended by C0a). No duplicate.
维护者速读
- 问题:用户找不到问 AI 的地方。桌面上「问 AI」只是每个页面页头里一个 32px 的透明机器人图标。
- 方向(Jack 11-27 已定):全站只留一个入口,改成带文字的「问 AI」按钮;点开就是新会话,自动带上当前页面的记录;撤掉页面里的 ask_ai 动作;交互参考 Attio(只学设计)。
- 要你做什么:两个拆分 PR refactor(plugin-chatbot): move ChatbotEnhanced types, subcomponents and helpers into chat/ #37799、refactor(app-shell): split AiChatPage into ChatPane and helper modules, move-only #37803 都超过 3000 行,要你合并,C4、C5 才能开工;C0a、C0b、C1s 是受管面,要你或 os-zhuang 批准。
Rulings (Jack, 2026-11-27)
- Retire
ask_aiwith no compatibility shim, before 19.0 GA (decision card 06:30Z, [Decision] 记录问询:右上角助手作唯一通用入口、空白对话默认带上当前记录,「问 AI」动作改为作者预设问题的快捷按钮(ADR-0160 第七次修订) #37834 option B). Cost accepted: no per-row "ask AI" in lists. - The button text is 「问 AI」 everywhere; apps cannot rename it (06:32Z, 06:33Z).
- Opening = a new conversation that carries the current page's record; header like Attio (title, ☆, +, history icon, ⋯, ×); favourite conversations open in place; one empty-conversation layout reused by the AI home page, the full-screen new chat and the drawer (06:33Z–06:42Z, screenshots).
- Remove the 「改为问《X》?」 switch prompt (07:12Z, 「全部按建议」).
- C7 and C8 are p2 for 19.1; C0a–C6e dispatch now (07:12Z).
- Out of scope: per-page buttons and preset-question keys; app renaming of the entry; a global
@hotkey; onboarding bubbles; a full-page chat; a new-chat shortcut; follow-up suggestions; the page block (next phase); the question card (separate topic).
Target experience
- Desktop: every page header ends with an outline button 「💬 问 AI」; on the record page it sits before ✕. The mobile top bar and Home do the same. Routes with no shell page header get a top-right fallback button.
- On a record page, click 「问 AI」 → new conversation with a small chip 「🏢 Microsoft ×」 at the start of the composer; "analyse this company" just works.
- After the first answer the drawer title becomes the conversation title; follow-ups stay on the record.
- Drawer open while navigating: the conversation does not change. + starts a new one for the current page.
- Close with × then click 「问 AI」 → new conversation (the old one is in history). Mobile auto-collapse after tapping an answer link → reopen returns to the same conversation. A plan waiting for approval → opening goes to that conversation.
- List and dashboard pages: new conversation with today's page chip 「正在看:客户列表」 (no ×).
- × on the record chip → falls back to the page chip 「正在看:Microsoft」; the conversation never re-pins on its own.
- ☆ favourites a conversation; it appears in the sidebar 「收藏」 and opens in the drawer in place.
- AI home / full-screen new chat: greeting, big composer, example questions, 「最近会话 · 标题」.
Children
| Card | Repo / surface | What | Size | Prio | Depends on | Window |
|---|---|---|---|---|---|---|
| C0a | objectstack docs/adr/** (Tier H) |
ADR-0160 seventh amendment | S | p1 | — | first |
| C0b | objectstack ui/docs/adr/** (Tier H) |
ui ADR-0057 A5 (open-type table) | S | p1 | #37819 (A4) | first |
| C1 | objectstack spec + runtime + ui + examples + generated docs | Retire ask_ai |
L | p1 | C0a; brightrule cleanup | before 19.0 GA |
| C1s | objectstack skills/** (Tier H) |
ask_ai in skills and eval samples |
XS–S | p1 | interlocks with C1 | with C1 |
| C3 | objectstack ui | 「问 AI」 button | M | p1 | order with #37788 | any time |
| C4 | objectstack ui | Open = new conversation + drawer header | M–L | p1 | C0b; #37803 | ships with C5 |
| C5 | objectstack ui | Focus state machine + chip in composer | M–L | p1 | C0a; C1; #37799, #37803 | ships with C4, before GA |
| C6 | cloud | Read on demand, skill text, store focus, title with record name | S–M | p1 | C0a | before the cloud pin passes C5 |
| C6e | cloud qa | Record-inquiry scenario cards, before/after C6 | S | p1 | C6 | with C6 |
| C7 | objectstack ui | Empty-conversation layout | M | p2 | #37788; C4 | 19.1 |
| C8 | objectstack ui | Favourite conversations | S–M | p2 | C4; C6 | 19.1 |
Card numbers are listed in the audit comment below. The brightrule part (its installed brightrule_policy_ask action) is written into C1, because brightrule is not a fleet board.
Critical path: C0a → C1 (+ brightrule, C1s) → 19.0 GA. C0a, C0b and the two split PRs → C4 and C5 ship together; C6 goes through cloud. C3 can start now.
Release gate: the cloud pin must not move past C5 before C6 merges (otherwise every new record conversation pre-reads the record pack). The next pin card states "C6 merged" as a precondition.
Topic acceptance
- Button: checked once each on a page with a
PageHeader, a record page (before ✕) and a route with no shell header; a narrow header hides the text first and never pushes out the page's own actions; mobile is a 44px icon; no overflow in the eleven locales; the accessible name contains 「问 AI」. - Record page: drawer closed → click → new conversation with this record's chip; "analyse this company" is answered about this record with no "which record?" question.
- Open types: × then reopen → new; closed mid-generation then reopen → new, the old answer is complete in history and no blank conversation appears; mobile auto-collapse then reopen → same; a pending plan → that conversation.
- Refresh,
/ai/ask/<id>, history → the named conversation. Home 「Ask AI」 → new. Studio copilot and build apps follow A5's exceptions. - Chip: before the first send, switching records follows; after it, it stays. × → page chip, never re-added in that conversation, kept after the first send.
- Reopening from history in a new tab restores the chip and follow-ups still send
context.focus. - List / dashboard keep the page chip; agents without
capabilities.focusbehave as today. ask_ailegacy metadata: source parse refusal carries the prescription;os migrate meta --from 18lists it; installed metadata behaves as C0a says; zero change in the four generated baselines is expected; Studio's 「问 AI 生成字段」 stays; brightrule boots on the new version.- Scenario cards (C6e, repeated runs): referring questions answered right first time, no "which record?", at most one pack read; unrelated questions read nothing; objects without a pack still answered (fallback
get_record); first-answer latency no worse than pre-read. Judged on accuracy and clarification rate, not tokens. - C8 opens in place; C7's 「最近会话」 on the AI home opens on that page; suggestions send or fill per their mode.
Risks
- The 19.0 GA date is unknown; C1, C4, C5 and C6 aim at it. If C4/C5 slip, C1 still removes
setChatFocusand the other prerelease-only exports, because they have never shipped in a stable release (.changeset/pre/36999-conversation-focus.md). - Read-on-demand quality is covered by C6e; if it misses, fall back to "pre-read only when the first message refers to the record". The cloud seat decides that.
Activity
objectstack-fleet commentedon Nov 27, 2026
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf
Children filed 2026-11-27T07:25Z.
Batch-of: 12 (this parent + 11 children), one source (maintainer, topic #37853).
ask_aiask_aiExisting cards touched by this topic (checked 07:2xZ):
type: 'ask_ai'action: RecordDetailView's own ActionProvider drops the shell's onAskAi #37827 (ask_airecord bug): superseded, Blocked-by 入口专题 C1:撤掉 ask_ai 动作类型(enumWithRetiredValues、ADR-0087 三项、只为它存在的导出),19.0 正式版前 #37856, closed by that PR.contextpre-read, epic 专题:记录范围 AI 问询(在一条记录上问 AI:对话钉在这条记录上、平台按配置交给模型这条记录的资料、外部 AI 经 MCP 拿到同一份) #36996 row 9b): rescoped to read-on-demand, Blocked-by objectstack-ai/cloud#5113.ai:chat) with a small copy form; "设为首页" moves it to the first position #37832/AI 问询首页 T6: hide theai:chatmenu entry from people who cannot get an agent (no AI or no seat); the app home falls through to the next entry #37833 (AI home) with 入口专题 C3:每页右上角改成带文字的「问 AI」按钮(桌面页头、记录页、手机顶栏、Home,无页头路由兜底) #37858/入口专题 C7:空会话界面组件(AI 首页、全屏新会话、窄抽屉三处共用),19.1 #37862; AI drawer: the model picked in the composer falls back to the default after every answer #37831 (composer model picker) with 入口专题 C5:记录焦点状态机重写,标签进输入框行首,去掉钉住与「改为问」,从会话 metadata 读回 #37861; console AI drawer: the conversation history defaults to the current app, has an All switch, and navigates to a conversation's app before opening it (#35014 item 4, after cloud#4835) #35081 (drawer history scope) with 入口专题 C4:主动关掉再点「问 AI」即开新会话(按 A5 分类表,只用 forceNew)+ 抽屉顶部改为标题、+、历史图标 #37860; objectstack-ai/cloud#5102 (ask skill reads) with objectstack-ai/cloud#5113.