Skip to content

专题:问 AI 入口改造(页头带字「问 AI」按钮、点开即新会话带当前记录、撤掉 ask_ai、抽屉顶部与收藏会话) #37853

Backlog
2 of 9 issues completed

Description

@objectstack-fleet

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.

维护者速读

Rulings (Jack, 2026-11-27)

  • Retire ask_ai with 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

  1. 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.
  2. On a record page, click 「问 AI」 → new conversation with a small chip 「🏢 Microsoft ×」 at the start of the composer; "analyse this company" just works.
  3. After the first answer the drawer title becomes the conversation title; follow-ups stay on the record.
  4. Drawer open while navigating: the conversation does not change. + starts a new one for the current page.
  5. 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.
  6. List and dashboard pages: new conversation with today's page chip 「正在看:客户列表」 (no ×).
  7. × on the record chip → falls back to the page chip 「正在看:Microsoft」; the conversation never re-pins on its own.
  8. ☆ favourites a conversation; it appears in the sidebar 「收藏」 and opens in the drawer in place.
  9. 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

  1. 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」.
  2. 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.
  3. 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.
  4. Refresh, /ai/ask/<id>, history → the named conversation. Home 「Ask AI」 → new. Studio copilot and build apps follow A5's exceptions.
  5. 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.
  6. Reopening from history in a new tab restores the chip and follow-ups still send context.focus.
  7. List / dashboard keep the page chip; agents without capabilities.focus behave as today.
  8. ask_ai legacy metadata: source parse refusal carries the prescription; os migrate meta --from 18 lists 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.
  9. 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.
  10. 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 setChatFocus and 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.

Sub-issues

Sub-issues

2 of 9 Issues completed
Loading 9 sub-issues

Activity

  1. added
    priority:p1
    tracking
    pm:epic
    area:ai
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf

    Children filed 2026-11-27T07:25Z.
    Batch-of: 12 (this parent + 11 children), one source (maintainer, topic #37853).

    Card Number Owner
    C0a ADR-0160 seventh amendment #37854 repo:objectstack#3
    C0b ui ADR-0057 A5 #37855 repo:objectstack#3
    C1 retire ask_ai #37856 repo:objectstack#3
    C1s skills ask_ai #37857 repo:objectstack#3
    C3 「问 AI」 button #37858 repo:objectstack#3
    C4 open = new conversation + drawer header #37860 repo:objectstack#3
    C5 focus state machine + chip #37861 repo:objectstack#3
    C7 empty-conversation layout (p2, 19.1) #37862 repo:objectstack#3
    C8 favourite conversations (p2, 19.1) #37863 repo:objectstack#3
    C6 read on demand, store focus objectstack-ai/cloud#5113 epic:#5027#1
    C6e record-inquiry scenario cards objectstack-ai/cloud#5114 epic:#5027#1

    Existing cards touched by this topic (checked 07:2xZ):

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:aipm:epicpriority:p1tracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions