Repository navigation
Description
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf
Filing gate: ④ cross-repo topic parent (tracking). Source: maintainer. Jack, 2026-11-27, verbatim: 「我们有这个问题确认的流程吗」 (06:54Z, Attio screenshot); 「用户体验相关的非常关键,要启动,也要参考一下 tweety 的代码」 and 「我知道,这个是一个单独的专题」 (06:56Z); 「你只处理 cloud 的任务,其他任务都交给 objectstack 座位哦」 (07:51Z); decision card 「按 v2 立卡,顶替输入框」 (08:05Z); 「交给 objectstack #3」 (08:06Z).
Owner: the objectstack children go to repo:objectstack#3; the cloud children (Q3, Q4) stay with seat epic:#5027#1 (objectstack-ai/cloud#5027).
Business reason: when the AI needs a clarification today it writes the question as plain text and the user must type the answer. A clickable question card (as in Attio and Twenty) turns that into one click, so ambiguous asks get answered instead of abandoned.
Grading: area:ai · tracking · p1 (stage 1 children p1, stage 2 p2).
Dedupe: searched question card, ask_which, AskQuestion: #37690 segment 3 item 3 「ask_which 选项卡」 is taken over by this topic (linked there); #34578 (ask_which label) unrelated. No duplicate.
维护者速读
- 是什么:AI 需要你澄清时,输入框的位置换成一张可点的问题卡:问题加粗,选项带一行说明,最后一项「自己输入…」,底部 跳过 / 上一题 / 下一题·发送。单题点一下就发。
- 关键判断:不做服务端暂停,不改 ADR-0013。问题照现在
ask_which的方式结束回合,回答是下一条普通消息。代价:问和答各算一次按天配额回合。 - 分两段:第一段只做卡片(现有问数歧义提问马上有卡,AI 行为和评测不变),p1;第二段让 AI 对"帮我分析一下"这类模糊请求也问,要过评测门槛,p2。
- 要你做什么:无。
Decisions
- D1 No server-side pause. The question tool ends the turn as
ask_whichdoes today (ctx.requestTurnEnd(reply), cloudservice-ai-studio/src/tools/ask-which.tool.ts:99-119); reply = question + bullet list (for model history, conversation list and evals). The tool result carries a structured envelope; the console draws the card from it. The answer is an ordinary user message (new turnId) sent throughonSendMessage. No new turn state, no answer endpoint, no rewrite of stored tool results, no ADR-0013 change. Accepted costs: question and answer each count as a daily-quota turn; the server does not know which question a message answers; two tabs can both answer; the local-cache fallback shows the question as text. - D2 Envelope in spec (Q1). D3 When a card shows (pure function, Q2b). D4 Card and interaction (Q2a/Q2b): the card takes the composer's place (Attio layout, Jack 08:05Z). D5 Tool: keep
ask_which; stage 2 extends its input (Q3) and adds a separate "ask for direction" skill (Q4). D6 Eval gates (Q3, Q4). - Learn from Twenty's design only; never copy its code (AGPL).
Children
| Card | Repo · owner | What | Size | Prio | Depends on |
|---|---|---|---|---|---|
| Q1 | objectstack · repo:objectstack#3 | spec envelope, legacy compatibility, parser, limits, tests, api-surface and docs | S | p1 | — |
| Q2a | objectstack · repo:objectstack#3 | QuestionCard pure component |
M | p1 | — (start now) |
| Q2b | objectstack · repo:objectstack#3 | wiring: envelope detection, findPendingQuestion, composer gate, in-thread summary, no regenerate, skip marks; brightrule smoke after release |
M | p1 | Q1, Q2a, #37799; soft order with #37729, #37861 |
| Q3 | cloud · epic:#5027#1 | ask_which new input and envelope, preface, no-number rule; eval gate |
M | p2 | Q1 in the cloud pin |
| Q4 | cloud · epic:#5027#1 | "ask for direction" skill; eval additions; gate | M–L | p2 | Q3; entry topic #37853 context.focus behaviour |
Stage 1 = Q1 + Q2a + Q2b; stage 2 = Q3 + Q4. Q2a, Q1 and Q3 can start in parallel. Card numbers are in the audit comment below.
Relations
- refactor(plugin-chatbot): move ChatbotEnhanced types, subcomponents and helpers into chat/ #37799 (split A): Q2b Blocked-by (adds a field to the split-out
chat/types.ts). - refactor(app-shell): split AiChatPage into ChatPane and helper modules, move-only #37803 (split C): no dependency (sending uses
onSendMessage; both message mappers already carry the toolresult:AiChatPage.tsx:249-250,284-288,mapMessages.ts:490,523). - 对话组件拆分 B:把 ChatbotEnhanced 主组件里的工具卡渲染(renderToolDetail)搬成独立模块(不改行为) #37729 (split B): soft order; the summary is drawn in the message layer, not in
renderToolDetail. - 入口专题 C5:记录焦点状态机重写,标签进输入框行首,去掉钉住与「改为问」,从会话 metadata 读回 #37861 (entry C5): soft order, whoever lands later rebases. Joint acceptance: with the card shown the answer still sends
context.focus; after the card closes the chip is still there. - 入口专题 C4:主动关掉再点「问 AI」即开新会话(按 A5 分类表,只用 forceNew)+ 抽屉顶部改为标题、+、历史图标 #37860 / 入口专题 C0b:ui ADR-0057 A5(哪些打开方式开新会话、build 例外、抽屉页头) #37855 (entry C4 / A5): a pending question is not an exception: a user-initiated close then 「问 AI」 opens a new conversation; the old question stays in history as past (row added on 入口专题 C0b:ui ADR-0057 A5(哪些打开方式开新会话、build 例外、抽屉页头) #37855).
- 专题:Agent 对话界面改进(参考 Twenty:拆分组件、暂停式工具与审批卡、反问选项卡、反馈与重试)(拆分进行中,其余暂不派发) #37690 segment 3: item 3 taken over here; item 4 (approval card in the composer's place) reuses this topic's composer gate.
Topic acceptance
- An ambiguous data question shows the card in the console; one click gets the number; full screen, narrow drawer and mobile drawer all work.
- A half-typed draft from during the turn survives the card appearing and a skip.
- A message queued during the turn: no card, the queued message is sent.
- Unanswered then refresh / reopen: the card is still there; answered ones show the collapsed summary and the answer.
- The pending-question message has no "regenerate"; shared read-only pages show no card.
- Old conversations' text
ask_whichanswers render as before, no error. - 「帮我分析一下」 on a blank page shows a card; after answering the AI analyses as chosen (stage 2).
- Q3 and Q4 eval gates pass.
- Keyboard works end to end without stealing composer focus; Arabic is right-to-left; screen readers read the question number, options and "a question is waiting".
Risks
- More clarifying questions (stage 2): covered by the D6 gates and by the new skill being removable on its own.
- Quota doubles for asked turns; accepted.
- Single-click send mis-taps: single question only; two questions stop on 「发送」.
- Two tabs answering twice: no server state to prevent it; low harm.
Activity
objectstack-fleet commentedon Nov 27, 2026
epic:#5027#1 · hotlong · session_01Q4EjjMUfmNYTem26rXLFUf
Children filed 2026-11-27T08:12Z. Batch-of: 6 (this parent + 5 children), one source (maintainer, topic #37871).
QuestionCardcomponentask_whichenvelope + eval gateThe design's Q5 (brightrule smoke) is step 9 of #37874, because brightrule is not a fleet board. Related: #37855 gets the pending-question row (comment there); #37690 segment 3 item 3 is taken over (comment there).