@kabmo-labs/kabmo 0.55.0 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +466 -466
  3. package/dist/client/static/js/{Body-a4dwe3hh.js → Body-k96gtstv.js} +1 -1
  4. package/dist/client/static/js/{CsvGrid-ppj80brw.js → CsvGrid-t84xmbk9.js} +1 -1
  5. package/dist/client/static/js/{DocxView-ef0bd2pg.js → DocxView-4jda3szm.js} +1 -1
  6. package/dist/client/static/js/{DrawioView-44tpkzbd.js → DrawioView-9qvvtnvt.js} +1 -1
  7. package/dist/client/static/js/{HtmlPreview-w654aykz.js → HtmlPreview-4pba1ys5.js} +1 -1
  8. package/dist/client/static/js/{ImageView-kg0skt5s.js → ImageView-0gf5xdsv.js} +1 -1
  9. package/dist/client/static/js/{LayoutWrapper-qepkrtd8.js → LayoutWrapper-pwbq5syv.js} +2 -2
  10. package/dist/client/static/js/MergeDiffView-m4jkr786.js +1 -0
  11. package/dist/client/static/js/{Modal-8d299emm.js → Modal-yjszc3vy.js} +12 -12
  12. package/dist/client/static/js/{PdfView-eq7fnqa2.js → PdfView-sny55sne.js} +1 -1
  13. package/dist/client/static/js/{SessionsView-tedh2es3.js → SessionsView-q3800n83.js} +1 -1
  14. package/dist/client/static/js/{SheetView-5xm33kgk.js → SheetView-ezqak2b4.js} +1 -1
  15. package/dist/client/static/js/{SvgPreview-tp1m8r4t.js → SvgPreview-q1cvdf4s.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-xppr9jf1.js → abnfDiagram-O67JEVCF-ftm2qwa3.js} +1 -1
  17. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-s23e6vtk.js → architectureDiagram-NJMV4G6O-j8kqfzmf.js} +3 -3
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-7ws8yq9e.js → blockDiagram-BEXU5L5S-m3zpsp9h.js} +3 -3
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-517yhfzj.js → c4Diagram-YGBWAQC7-myshvbrx.js} +2 -2
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-tcad3rst.js → classDiagram-v2-NBCMYWYE-s0cwmsj4.js} +1 -1
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-a76vf82p.js → cose-bilkent-JH36ORCC-t5t02sfr.js} +1 -1
  22. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-9kety453.js → cynefinDiagram-VND7K2PF-6yxd72sh.js} +1 -1
  23. package/dist/client/static/js/{dagre-6A5THRUB-6g6gsp6b.js → dagre-6A5THRUB-vft5103m.js} +1 -1
  24. package/dist/client/static/js/{diagram-22UHCM2B-ngj4fyg3.js → diagram-22UHCM2B-yy2jfvxt.js} +1 -1
  25. package/dist/client/static/js/{diagram-3UASUU5V-xw2m99qa.js → diagram-3UASUU5V-1xqhzq20.js} +1 -1
  26. package/dist/client/static/js/{diagram-ATOU4E4O-hz3bd083.js → diagram-ATOU4E4O-f11cxgvm.js} +1 -1
  27. package/dist/client/static/js/{diagram-CDSNMT55-vfhtemve.js → diagram-CDSNMT55-gqmkfcp7.js} +3 -3
  28. package/dist/client/static/js/{diagram-MLGK6HIB-22cjvj5g.js → diagram-MLGK6HIB-1fg7304a.js} +1 -1
  29. package/dist/client/static/js/{diagram-MPIPVDR6-xv8fsecp.js → diagram-MPIPVDR6-mem80369.js} +1 -1
  30. package/dist/client/static/js/{dockerfile-491tyqmj.js → dockerfile-jarjwxp9.js} +1 -1
  31. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-m6mkn986.js → ebnfDiagram-ZINNZB2B-4rcbvfrj.js} +1 -1
  32. package/dist/client/static/js/{elk-276RUBZZ-jccw706n.js → elk-276RUBZZ-ykd0stxz.js} +1 -1
  33. package/dist/client/static/js/{erDiagram-OPXOYQCR-rxk86jsf.js → erDiagram-OPXOYQCR-b2th9bk4.js} +1 -1
  34. package/dist/client/static/js/flowDiagram-KWPJA3E3-f3bdtc1z.js +1 -0
  35. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-veweech7.js → ganttDiagram-FUAMR5RP-64p5r7cx.js} +2 -2
  36. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-7dyqcj8r.js → gitGraphDiagram-X574FWY7-z3yc333r.js} +1 -1
  37. package/dist/client/static/js/{index-wa234c7k.js → index-1mm7kyjd.js} +1 -1
  38. package/dist/client/static/js/{index-sx5x2q80.js → index-2gf593e3.js} +1 -1
  39. package/dist/client/static/js/{index-xm3691yp.js → index-3w18s59k.js} +1 -1
  40. package/dist/client/static/js/{index-60fjqzdw.js → index-3x3nhs8n.js} +1 -1
  41. package/dist/client/static/js/{index-2asa0faw.js → index-5m0se6fk.js} +2 -2
  42. package/dist/client/static/js/{index-tk1vr8q2.js → index-6m5n8b6w.js} +4 -4
  43. package/dist/client/static/js/{index-2cfw7wem.js → index-77wznmg5.js} +1 -1
  44. package/dist/client/static/js/{index-e6tjaccf.js → index-bwwgtesb.js} +1 -1
  45. package/dist/client/static/js/{index-5701gj1f.js → index-c2vc6znd.js} +1 -1
  46. package/dist/client/static/js/{index-d9dz0wt0.js → index-dxx49b9m.js} +1 -1
  47. package/dist/client/static/js/{index-4kchzh9y.js → index-e4yj4kbe.js} +8 -8
  48. package/dist/client/static/js/{index-twjq786a.js → index-ebnd5hnr.js} +1 -1
  49. package/dist/client/static/js/{index-zjc8yfbe.js → index-ep353yxd.js} +1 -1
  50. package/dist/client/static/js/{index-wvqwzgpx.js → index-ewtv8gg7.js} +1 -1
  51. package/dist/client/static/js/{index-na95tr1k.js → index-g71wn1pr.js} +2 -2
  52. package/dist/client/static/js/{index-bhst1c2x.js → index-gr07t5c4.js} +1 -1
  53. package/dist/client/static/js/{index-r51fqzb5.js → index-h4qmywn5.js} +1 -1
  54. package/dist/client/static/js/{index-x3g8fwkc.js → index-hge0y4vn.js} +2 -2
  55. package/dist/client/static/js/{index-nzjc24v9.js → index-hmjb96kb.js} +1 -1
  56. package/dist/client/static/js/{index-gsw1zh30.js → index-jd2h5tvh.js} +1 -1
  57. package/dist/client/static/js/{index-637my5h0.js → index-k57bandz.js} +1 -1
  58. package/dist/client/static/js/{index-xq78fj64.js → index-k6wms0kx.js} +1 -1
  59. package/dist/client/static/js/{index-39mr4tym.js → index-k9v6477a.js} +1 -1
  60. package/dist/client/static/js/{index-pqmvhqmj.js → index-kbaffwp1.js} +21 -21
  61. package/dist/client/static/js/{index-3x88fxzj.js → index-mdmtxh1c.js} +1 -1
  62. package/dist/client/static/js/{index-cz80n8yc.js → index-mv83hpva.js} +1 -1
  63. package/dist/client/static/js/{index-xbvjpa60.js → index-n71ffk62.js} +3 -3
  64. package/dist/client/static/js/{index-7ckzdf4r.js → index-nr5gwny1.js} +178 -178
  65. package/dist/client/static/js/{index-j0qt8gaj.js → index-q9gbwqbe.js} +3 -3
  66. package/dist/client/static/js/{index-0qmpqtp2.js → index-rqpbva78.js} +1 -1
  67. package/dist/client/static/js/{index-0xh8402w.js → index-sw370sk7.js} +1 -1
  68. package/dist/client/static/js/{index-0ak5wdz1.js → index-t415df0c.js} +1 -1
  69. package/dist/client/static/js/index-taz2nfym.css +1 -0
  70. package/dist/client/static/js/{index-dg714jam.js → index-w659dhe5.js} +1 -1
  71. package/dist/client/static/js/{index-trpn9gxs.js → index-wgcgshdh.js} +1 -1
  72. package/dist/client/static/js/{index-kfcpkx7h.js → index-x6945djv.js} +1 -1
  73. package/dist/client/static/js/{index-088gwjbz.js → index-y5mf2w81.js} +1 -1
  74. package/dist/client/static/js/{index-wp7tsava.js → index-y69cbdvd.js} +1 -1
  75. package/dist/client/static/js/{index-bfy437re.js → index-y6qtx68e.js} +1 -1
  76. package/dist/client/static/js/{index-4m94cbms.js → index-yktwxghr.js} +1 -1
  77. package/dist/client/static/js/{index-7ehep28z.js → index-zj65csnm.js} +2 -2
  78. package/dist/client/static/js/{infoDiagram-VRGFBTTK-ksz9cvq3.js → infoDiagram-VRGFBTTK-59xq3n1b.js} +2 -2
  79. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-g8symmrp.js → ishikawaDiagram-OU5B5YK6-v18q4qt7.js} +2 -2
  80. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-qs2e3hdf.js → journeyDiagram-ZHPQQLJL-etazj0p8.js} +2 -2
  81. package/dist/client/static/js/{kanban-definition-PNTS6WVX-pzef80sz.js → kanban-definition-PNTS6WVX-ph15e5p2.js} +1 -1
  82. package/dist/client/static/js/{mermaid.core-chfcvkkc.js → mermaid.core-7ygd161b.js} +2 -2
  83. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-sds2e243.js → mindmap-definition-NLK3R4M7-j5xsftrf.js} +1 -1
  84. package/dist/client/static/js/one-dark-pro-4s2rr12v.js +1 -0
  85. package/dist/client/static/js/one-light-3bkk59ww.js +1 -0
  86. package/dist/client/static/js/{pegDiagram-GJSIUBJH-m8199cy0.js → pegDiagram-GJSIUBJH-09nvb70v.js} +1 -1
  87. package/dist/client/static/js/{pieDiagram-5QR66LMP-wqz5k5w6.js → pieDiagram-5QR66LMP-6ymh1960.js} +2 -2
  88. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-rjszd8an.js → quadrantDiagram-O4NWA36T-hk61avw2.js} +2 -2
  89. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-qv0be7dh.js → railroadDiagram-XR7U4H2S-3jvqrfnb.js} +1 -1
  90. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-b87kqbr7.js → requirementDiagram-PLB6GJNP-zthfj48k.js} +1 -1
  91. package/dist/client/static/js/{rust-m7ma3tq9.js → rust-q7n7q6dy.js} +1 -1
  92. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-dh5we479.js → sankeyDiagram-IPEJSGJF-nh5d6xte.js} +1 -1
  93. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-e6fg0x45.js → sequenceDiagram-PO4LG4MO-crej9b40.js} +4 -4
  94. package/dist/client/static/js/{sizeCapture-INFHLROL-mam6cagq.js → sizeCapture-INFHLROL-nvvxw58j.js} +1 -1
  95. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-htwar22v.js → stateDiagram-v2-GCMORJYK-e6tztjnj.js} +1 -1
  96. package/dist/client/static/js/{swimlanes-2SLR337P-5g26cnkr.js → swimlanes-2SLR337P-xhdqjqmf.js} +1 -1
  97. package/dist/client/static/js/{swimlanesDiagram-TC7HE7FX-rseba3zs.js → swimlanesDiagram-TC7HE7FX-hbwg3m3k.js} +1 -1
  98. package/dist/client/static/js/{timeline-definition-EJHVYXUP-5km8n8mj.js → timeline-definition-EJHVYXUP-9cve31zc.js} +1 -1
  99. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-0vt6ms5g.js → usecaseDiagram-POWQR4AR-asycstwe.js} +1 -1
  100. package/dist/client/static/js/{vennDiagram-UO4OBE2U-k425105a.js → vennDiagram-UO4OBE2U-gbzk6era.js} +4 -4
  101. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-s0gd4jg1.js → wardleyDiagram-VNRHLVJA-1swwfszr.js} +2 -2
  102. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-2nrdzp7p.js → xychartDiagram-PMCCYNJV-v7qkwv0b.js} +3 -3
  103. package/package.json +4 -4
  104. package/src/client/components/settings/categories/chat-settings/ToolRenderSection.tsx +1 -1
  105. package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +5 -3
  106. package/src/client/components/workspace/chat-timeline/index.tsx +1 -1
  107. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.tsx +25 -62
  108. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +40 -0
  109. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +41 -2
  110. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/GroupedAsk.tsx +41 -21
  111. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionBlock.tsx +16 -3
  112. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionList.tsx +117 -0
  113. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/SwipeDeck.tsx +220 -0
  114. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +105 -2
  115. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +59 -8
  116. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AgentAdmin.test.tsx +0 -13
  117. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AgentAdmin.tsx +6 -23
  118. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/agent-admin-rows.test.ts +1 -39
  119. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/agent-admin-rows.ts +11 -46
  120. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +36 -1
  121. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +10 -5
  122. package/src/client/data/settings/omp-schema.json +59 -7
  123. package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +14 -4
  124. package/src/client/hooks/chat/timeline/ask-frames-context.ts +3 -1
  125. package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +29 -0
  126. package/src/client/hooks/chat/timeline/ask-frames-grouped.test.ts +31 -0
  127. package/src/client/hooks/chat/timeline/ask-frames.ts +12 -3
  128. package/src/client/hooks/chat/timeline/send-props.ts +1 -2
  129. package/src/server/lib/harness/acp/client-capabilities.test.ts +3 -2
  130. package/src/server/lib/sessions/last-opened.server.test.ts +26 -7
  131. package/src/server/lib/sessions/last-opened.server.ts +19 -4
  132. package/src/shared/lib/chat/ask-form/data.ts +25 -6
  133. package/src/shared/lib/chat/ask-form/deck.ts +80 -0
  134. package/src/shared/lib/chat/ask-form/fields.ts +26 -1
  135. package/src/shared/lib/chat/ask-form/index.ts +18 -310
  136. package/src/shared/lib/chat/ask-form/types.ts +14 -2
  137. package/src/shared/lib/chat/ask-form/walker.ts +350 -0
  138. package/src/shared/lib/chat/ask-form.test.ts +41 -0
  139. package/src/shared/lib/chat/ask-questions.test.ts +29 -0
  140. package/src/shared/lib/chat/ask-questions.ts +44 -3
  141. package/src/shared/lib/chat/ask-results.test.ts +66 -0
  142. package/src/shared/lib/chat/ask-results.ts +58 -0
  143. package/src/shared/lib/chat/timeline/block-chrome.ts +4 -4
  144. package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +47 -0
  145. package/src/shared/lib/omp/config/schema-releases.test.ts +4 -2
  146. package/tsconfig.json +6 -0
  147. package/dist/client/static/js/MergeDiffView-n2h8vv0j.js +0 -1
  148. package/dist/client/static/js/flowDiagram-KWPJA3E3-aegwx04w.js +0 -1
  149. package/dist/client/static/js/index-4m2d73m3.css +0 -1
  150. package/dist/client/static/js/one-dark-pro-5fvhpb1t.js +0 -1
  151. package/dist/client/static/js/one-light-pwj40vbr.js +0 -1
@@ -20,13 +20,19 @@
20
20
  * writes no result until the tool call finishes — so without the hold the card
21
21
  * redrew as unanswered (every question back to "Waiting for the previous
22
22
  * answer…") for the whole stretch the agent spent acting on the answers.
23
+ *
24
+ * An ACP agent's own ask (`ask_question`, `question`, `AskUserQuestion`, …)
25
+ * is the THIRD shape: a tool call with no dialog at all. The card draws its
26
+ * questions and names the composer, because the adapter reads the next user
27
+ * message as the answer — promising a dialog that cannot arrive left the card
28
+ * waiting forever.
23
29
  */
24
30
 
25
31
  import { useState } from 'preact/hooks';
26
32
  import { HelpCircle, XCircle } from 'lucide-preact';
27
33
  import type { ToolCallData } from '@/shared/types';
28
34
  import type { ExtensionUiDialogRequest } from '@kabmo-labs/kabmo-chat/contracts/agent';
29
- import { isAskSettled, parseAskQuestions } from '@/shared/lib/chat/ask-questions';
35
+ import { isAskSettled, isExternalAskTool, parseAskQuestions } from '@/shared/lib/chat/ask-questions';
30
36
  import type { AskQuestion } from '@/shared/lib/chat/ask-form/types';
31
37
  import { parseAskResult } from '@/shared/lib/chat/ask-results';
32
38
  import { useAskFrames } from '@/client/hooks/chat/timeline/ask-frames-context';
@@ -61,10 +67,21 @@ interface SubmittedAsk {
61
67
  export function AskPanel({ tool }: { tool: ToolCallData }) {
62
68
  const questions = parseAskQuestions(tool);
63
69
  const recorded = parseAskResult(tool, questions);
64
- const { framesByTool, looseByTool, formByTool, respond } = useAskFrames();
70
+ const { framesByTool, looseByTool, formByTool, harness, orphanAsks, respond } = useAskFrames();
65
71
  const groups = framesByTool.get(tool.id) ?? NO_GROUPS;
66
72
  const loose = looseByTool.get(tool.id) ?? NO_FRAMES;
67
- const settled = isAskSettled(tool);
73
+ // An ACP agent's own ask (`ask_question`, `question`, `AskUserQuestion`, …)
74
+ // reaches this card as a TOOL CALL with no extension dialog: the protocol
75
+ // has no ask frame, and the adapter reads the next user message as the
76
+ // answer. `omp-acp` may spell it exactly `ask`, so the chat's harness is the
77
+ // second half of the test. It must never enter the form/per-question paths,
78
+ // which wait for frames that cannot arrive.
79
+ const externalAsk = isExternalAskTool(tool)
80
+ || (harness !== undefined && harness !== 'omp-rpc'
81
+ && (typeof tool.name === 'string' ? tool.name : '').toLowerCase() === 'ask');
82
+ // A completed ACP call already took the next message as its answer; only
83
+ // omp's `success` is ambiguous (a reloaded mid-ask call reads back as one).
84
+ const settled = isAskSettled(tool) || (externalAsk && tool.status === 'success');
68
85
  // omp 19.1.0's whole-form dialog answers every control in ONE `{ data }`
69
86
  // reply; it is not part of the per-field walk at all.
70
87
  const formFrame = formByTool.get(tool.id) ?? null;
@@ -73,8 +90,10 @@ export function AskPanel({ tool }: { tool: ToolCallData }) {
73
90
  // restored draft the moment its frame arrives, which would answer question 1
74
91
  // before the user could reach the form's Submit.
75
92
  const groupedForm =
76
- !formFrame && !settled && questions.length > 1 && recorded.some((answer) => answer === null);
93
+ !externalAsk && !formFrame && !settled && questions.length > 1 && recorded.some((answer) => answer === null);
77
94
  const [submitted, setSubmitted] = useState<SubmittedAsk | null>(null);
95
+ const [externalSent, setExternalSent] = useState(false);
96
+ const [externalDismissed, setExternalDismissed] = useState(false);
78
97
  const { drafts, multiSelected, commit, toggleMulti } = useAskDrafts({
79
98
  toolId: tool.id,
80
99
  questions: groupedForm ? NO_QUESTIONS : questions,
@@ -100,11 +119,17 @@ export function AskPanel({ tool }: { tool: ToolCallData }) {
100
119
  // question must stay answerable.
101
120
  const waiting =
102
121
  !settled &&
103
- (formFrame !== null || groups.some((frames, index) => frames.length > 0 && !recorded[index]));
122
+ (externalAsk
123
+ ? !externalSent && !externalDismissed && recorded.some((answer) => answer === null)
124
+ : formFrame !== null || groups.some((frames, index) => frames.length > 0 && !recorded[index]));
104
125
  // omp asks in order and blocks on each, so the earliest question holding a
105
126
  // dialog is the only open one: everything before it is answered, whether or
106
127
  // not this client still has the text.
107
128
  const askingIndex = groups.findIndex((frames) => frames.length > 0);
129
+ const recordedAll = recorded.length > 0 && recorded.every((answer) => answer !== null);
130
+ // An elicitation with no usable toolCallId is drawn as an orphan at the end
131
+ // of the timeline. Point the tool card there instead of leaving it silent.
132
+ const questionElsewhere = externalAsk && orphanAsks.some((frame) => frame.toolCallId === tool.id);
108
133
 
109
134
  // A GROUPED ask (`method:"ask"`) covers every question at once, so it renders
110
135
  // its own card instead of one control per question. `splitAskFrames` places
@@ -121,13 +146,25 @@ export function AskPanel({ tool }: { tool: ToolCallData }) {
121
146
  const heldFrame = submitted && recorded.every((answer) => answer === null) ? submitted.frame : null;
122
147
  const card = groupedFrame ?? heldFrame;
123
148
 
124
- if (card && !settled) {
149
+ // A pending ACP elicitation outranks the tool status: the frame is what the
150
+ // agent is actually blocked on, even if the adapter marked the call done.
151
+ if (card && (!settled || externalAsk)) {
125
152
  const answered = submitted && submitted.frame.id === card.id ? submitted.answers : null;
126
153
  // The recorded flags and the answer path are shared with the plugin slot:
127
154
  // a plugin's response must be the frame the Submit button would have sent,
128
155
  // through the same sender, or omp receives something it did not expect.
129
156
  const answer = (response: ExtensionDialogResponse) => {
130
- if ('answers' in response) setSubmitted({ frame: card, answers: response.answers });
157
+ if ('answers' in response) {
158
+ setSubmitted({ frame: card, answers: response.answers });
159
+ // An ACP elicitation took the answer: its frame leaves the queue as
160
+ // soon as the JSON-RPC result is on the wire, so the banner must not
161
+ // keep claiming the agent is blocked.
162
+ if (externalAsk) setExternalSent(true);
163
+ } else if ('cancelled' in response && externalAsk) {
164
+ // The elicitation was declined. Its frame is gone, so the card must not
165
+ // fall through to the prompt fallback as if it still had a question.
166
+ setExternalDismissed(true);
167
+ }
131
168
  respond(card, response);
132
169
  };
133
170
  return (
@@ -138,11 +175,16 @@ export function AskPanel({ tool }: { tool: ToolCallData }) {
138
175
  <span>Input needed: the agent is blocked until you answer.</span>
139
176
  </div>
140
177
  )}
178
+ {externalSent && !settled && (
179
+ <p className="text-[10.5px] text-ink/45">Answer sent — the agent is continuing…</p>
180
+ )}
141
181
  <GroupedAsk
142
182
  frame={card}
143
183
  recorded={recorded}
144
184
  submitted={answered}
145
185
  onRespond={answer}
186
+ readOnly={externalAsk && (answered !== null || recordedAll)}
187
+ submitLabel={externalAsk ? 'Send answer' : undefined}
146
188
  interactions={
147
189
  <PluginPendingInteractions
148
190
  frame={card}
@@ -224,10 +266,18 @@ export function AskPanel({ tool }: { tool: ToolCallData }) {
224
266
  {waiting && (
225
267
  <div className="flex items-center gap-1.5 text-[10.5px] text-ink/50">
226
268
  <HelpCircle size={11} className="shrink-0" />
227
- <span>Input needed: the agent is blocked until you answer.</span>
269
+ <span>
270
+ {externalAsk
271
+ ? 'Input needed: the agent is waiting for your answer.'
272
+ : 'Input needed: the agent is blocked until you answer.'}
273
+ </span>
228
274
  </div>
229
275
  )}
230
276
 
277
+ {questionElsewhere && (
278
+ <p className="text-[10.5px] text-ink/45">The agent's question is shown at the end of the timeline.</p>
279
+ )}
280
+
231
281
  {questions.map((question, index) => {
232
282
  const live = liveFrame(groups, index);
233
283
  const answer = (response: ExtensionDialogResponse) => {
@@ -244,6 +294,7 @@ export function AskPanel({ tool }: { tool: ToolCallData }) {
244
294
  draft={drafts[index]}
245
295
  passed={askingIndex !== -1 && index < askingIndex}
246
296
  settled={settled}
297
+ answerChannel={externalAsk ? 'message' : 'dialog'}
247
298
  multiSelected={multiSelected[index] ?? NO_LABELS}
248
299
  onAnswer={(value) => commit(index, value)}
249
300
  onToggle={(label) => toggleMulti(index, label)}
@@ -51,17 +51,4 @@ describe('AgentAdmin panel', () => {
51
51
  expect(text).toContain('8b46…/task-23');
52
52
  expect(text).toContain('did not report a result');
53
53
  });
54
-
55
- test('draws a question read-only with its options and answer channel', () => {
56
- const text = paint(agentTool({
57
- name: 'ask_question',
58
- status: 'running',
59
- input: { questions: [{ question: 'Probe question?', options: ['A', 'B'] }] },
60
- }));
61
- expect(text).toContain('Question');
62
- expect(text).toContain('Probe question?');
63
- expect(text).toContain('A');
64
- expect(text).toContain('B');
65
- expect(text).toContain('next message as the answer');
66
- });
67
54
  });
@@ -7,15 +7,13 @@
7
7
  * The card for the agent's own control plane.
8
8
  *
9
9
  * `agent_admin` is the renderer family for tools that manipulate the agent
10
- * (background tasks, subagents, schedules, messages, its own questions), which
11
- * antigravity sends with no result payload. The card therefore draws the
12
- * ARGUMENTS as structure — action, target, brief, question options — and says
13
- * when a result was not reported, instead of rendering a guessed Bash/Task body
14
- * or an unreadable JSON document.
10
+ * (background tasks, subagents, schedules, messages), which antigravity sends
11
+ * with no result payload. The card therefore draws the ARGUMENTS as structure —
12
+ * action, target, brief — and says when a result was not reported, instead of
13
+ * rendering a guessed Bash/Task body or an unreadable JSON document.
15
14
  *
16
- * `ask_question` is not answerable here: ACP sends no dialog frame for it and
17
- * the adapter takes the next user message as the answer (measured on 1.5.3).
18
- * The options are shown read-only and the note names the real channel.
15
+ * The agent's ask is NOT one of these verbs: it has its own card (`ask-panel`),
16
+ * which is the one place the questions and their answer channel are drawn.
19
17
  */
20
18
 
21
19
  import type { ToolCallData } from '@/shared/types';
@@ -38,21 +36,6 @@ export function AgentAdmin({ tool }: { tool: ToolCallData }) {
38
36
  )}
39
37
  </div>
40
38
 
41
- {view.questions.map((question, index) => (
42
- <div key={index} className="rounded-lg border border-ink/8 bg-paper px-2.5 py-2">
43
- <div className="text-[11.5px] leading-relaxed text-ink select-text">{question.question}</div>
44
- {question.options.length > 0 && (
45
- <div className="mt-1.5 flex flex-wrap gap-1">
46
- {question.options.map((option) => (
47
- <span key={option} className="rounded bg-ink/5 px-1.5 py-0.2 font-mono text-[10px] text-ink/60">
48
- {option}
49
- </span>
50
- ))}
51
- </div>
52
- )}
53
- </div>
54
- ))}
55
-
56
39
  {view.fields.map((field) => (
57
40
  field.block ? (
58
41
  <div key={field.label} className="space-y-1">
@@ -69,44 +69,6 @@ describe('agentAdminView', () => {
69
69
  expect(view.fields[1]).toEqual({ label: 'Prompt', value: 'Remind me.', block: true });
70
70
  });
71
71
 
72
- test('ask_question draws its questions read-only and names the answer channel', () => {
73
- const view = agentAdminView(tool({
74
- name: 'ask_question',
75
- status: 'running',
76
- input: { questions: [{ question: 'Probe question?', options: ['A', 'B'] }] },
77
- }));
78
- expect(view.questions).toEqual([{ question: 'Probe question?', options: ['A', 'B'] }]);
79
- expect(view.note).toBe('The agent waits for your next message as the answer.');
80
- });
81
-
82
- test('opencode’s `question` spelling draws the same read-only questions', () => {
83
- const view = agentAdminView(tool({
84
- name: 'question',
85
- status: 'running',
86
- input: {
87
- questions: [{
88
- header: 'Heavy tool tests',
89
- question: 'Lanjut tes yang mana?',
90
- multiple: true,
91
- options: [{ label: 'Image generation', description: 'Generate one test image' }, { label: 'Selesai' }],
92
- }],
93
- },
94
- }));
95
- expect(view.title).toBe('Question');
96
- expect(view.questions).toEqual([{ question: 'Lanjut tes yang mana?', options: ['Image generation', 'Selesai'] }]);
97
- expect(view.note).toBe('The agent waits for your next message as the answer.');
98
- });
99
-
100
- test('a settled ask makes no claim about the answer', () => {
101
- // The next user message is the answer channel, so the card cannot know
102
- // whether one arrived; it must not assert that the question went unanswered.
103
- const view = agentAdminView(tool({
104
- name: 'ask_question',
105
- input: { questions: [{ question: 'Probe question?', options: [] }] },
106
- }));
107
- expect(view.note).toBeUndefined();
108
- });
109
-
110
72
  test('an unknown argument is printed under its own humanized key', () => {
111
73
  const view = agentAdminView(tool({ name: 'send_message', input: { SomeOtherField: { a: 1 } } }));
112
74
  expect(view.fields).toEqual([{ label: 'Some Other Field', value: '{\n "a": 1\n}' }]);
@@ -114,6 +76,6 @@ describe('agentAdminView', () => {
114
76
 
115
77
  test('a call with no arguments still renders', () => {
116
78
  const view = agentAdminView(tool({ name: 'manage_subagents' }));
117
- expect(view).toMatchObject({ title: 'Subagent', questions: [], fields: [] });
79
+ expect(view).toMatchObject({ title: 'Subagent', fields: [] });
118
80
  });
119
81
  });
@@ -8,10 +8,13 @@
8
8
  * manage the agent itself.
9
9
  *
10
10
  * Measured on `agy acp` 1.5.3: `manage_task`, `manage_subagents`,
11
- * `define_subagent`, `send_message`, `schedule` and `ask_question` arrive as
12
- * `kind:"other"` with capitalised argument keys (`Action`, `Prompt`, `Role`, …)
13
- * and NO result payload. They were left to the JSON fallback, which hid the one
14
- * fact the call carries — its action and target — behind a raw document.
11
+ * `define_subagent`, `send_message` and `schedule` arrive as `kind:"other"`
12
+ * with capitalised argument keys (`Action`, `Prompt`, `Role`, …) and NO result
13
+ * payload. They were left to the JSON fallback, which hid the one fact the
14
+ * call carries — its action and target — behind a raw document.
15
+ *
16
+ * The agent's ask (`ask_question`, opencode's `question`) is not here: it has
17
+ * its own card, which draws the questions and names the answer channel.
15
18
  *
16
19
  * The normalizer is pure so the panel is presentation only. It reads the
17
20
  * adapter's spelling, never invents a field: a result the agent did not report
@@ -27,17 +30,11 @@ export interface AgentAdminField {
27
30
  block?: boolean;
28
31
  }
29
32
 
30
- export interface AgentAdminQuestion {
31
- question: string;
32
- options: string[];
33
- }
34
-
35
33
  export interface AgentAdminView {
36
34
  /** The card's own noun ("Subagent", "Scheduled run", …). */
37
35
  title: string;
38
36
  /** The verb the call names (`list`, `kill`, `send_input`). */
39
37
  action?: string;
40
- questions: AgentAdminQuestion[];
41
38
  fields: AgentAdminField[];
42
39
  /** A sentence for a fact the adapter did not send (no result, no answer). */
43
40
  note?: string;
@@ -49,9 +46,6 @@ const TITLES: Readonly<Record<string, string>> = {
49
46
  define_subagent: 'Subagent definition',
50
47
  send_message: 'Message',
51
48
  schedule: 'Scheduled run',
52
- ask_question: 'Question',
53
- // opencode's spelling of the same control-plane verb.
54
- question: 'Question',
55
49
  };
56
50
 
57
51
  const LABELS: Readonly<Record<string, string>> = {
@@ -95,27 +89,6 @@ function asText(value: unknown): string {
95
89
  return JSON.stringify(value, null, 2) ?? '';
96
90
  }
97
91
 
98
- function readQuestions(value: unknown): AgentAdminQuestion[] {
99
- if (!Array.isArray(value)) return [];
100
- const questions: AgentAdminQuestion[] = [];
101
- for (const entry of value) {
102
- if (!entry || typeof entry !== 'object') continue;
103
- const record = entry as Record<string, unknown>;
104
- const question = typeof record.question === 'string' ? record.question.trim() : '';
105
- if (!question) continue;
106
- const options = Array.isArray(record.options)
107
- ? record.options.flatMap((option) => {
108
- if (typeof option === 'string') return option ? [option] : [];
109
- if (!option || typeof option !== 'object') return [];
110
- const label = (option as Record<string, unknown>).label;
111
- return typeof label === 'string' && label ? [label] : [];
112
- })
113
- : [];
114
- questions.push({ question, options });
115
- }
116
- return questions;
117
- }
118
-
119
92
  function humanKey(key: string): string {
120
93
  return LABELS[key] ?? key.replace(/([a-z0-9])([A-Z])/g, '$1 $2').replace(/_/g, ' ');
121
94
  }
@@ -126,11 +99,10 @@ export function agentAdminView(tool: ToolCallData): AgentAdminView {
126
99
  : {};
127
100
  const name = (tool.name ?? tool.type ?? '').toLowerCase();
128
101
  const action = typeof input.Action === 'string' && input.Action ? input.Action : undefined;
129
- const questions = readQuestions(input.questions);
130
102
  const collected: Array<{ key: string; field: AgentAdminField }> = [];
131
103
 
132
104
  for (const [key, value] of Object.entries(input)) {
133
- if (key === 'Action' || key === 'questions') continue;
105
+ if (key === 'Action') continue;
134
106
  if (value === undefined || value === null || value === '') continue;
135
107
  const duration = key === 'DurationSeconds' && typeof value === 'number'
136
108
  ? `${value} second${value === 1 ? '' : 's'}`
@@ -154,20 +126,13 @@ export function agentAdminView(tool: ToolCallData): AgentAdminView {
154
126
  const fields = collected.map((entry) => entry.field);
155
127
 
156
128
  const settled = tool.status === 'success' || tool.status === 'error' || tool.status === 'aborted';
157
- // A settled ask says nothing about an answer: the next user message IS the
158
- // answer channel, so the card cannot know whether one arrived.
159
- const note = name === 'ask_question' || name === 'question'
160
- ? settled
161
- ? undefined
162
- : 'The agent waits for your next message as the answer.'
163
- : settled && !tool.output
164
- ? 'The agent did not report a result for this call.'
165
- : undefined;
129
+ const note = settled && !tool.output
130
+ ? 'The agent did not report a result for this call.'
131
+ : undefined;
166
132
 
167
133
  return {
168
134
  title: TITLES[name] ?? 'Agent call',
169
135
  ...(action ? { action } : {}),
170
- questions,
171
136
  fields,
172
137
  ...(note ? { note } : {}),
173
138
  };
@@ -19,6 +19,9 @@
19
19
  * defect — the head then reads as one undifferentiated run of text.
20
20
  * - Facts are terminal text (`599ms · exit 0`), not pills, and a diff keeps
21
21
  * `+4` green and `−1` red inside one statement.
22
+ * - The status line is PACKED: the subject hugs its clip instead of growing,
23
+ * and the toggle follows the data, so a pre-clipped `…` never floats far
24
+ * from the outcome and facts on its right.
22
25
  * - The head is the toggle, with the SHARED wording (`toolToggleLabel`), so
23
26
  * `chat.e2e.ts`'s `[aria-label^="Expand "]` collection and `mobile.e2e.ts`'s
24
27
  * `/^Expand Bash/` click still work, and the section's per-call intent
@@ -99,6 +102,20 @@ const EDIT_TOOL: ToolCallData = {
99
102
  details: { diff: 'a\n+b\n+c\n-d\n' },
100
103
  } as ToolCallData;
101
104
 
105
+ /** A command longer than the header's 80-char clip, so its subtitle already
106
+ * ends in `…` before CSS touches it. */
107
+ const LONG_COMMAND_TOOL: ToolCallData = {
108
+ id: 'tui-long',
109
+ type: 'bash',
110
+ name: 'bash',
111
+ title: 'Bash',
112
+ status: 'success',
113
+ command: `bun test ${'--filter '.repeat(14)}`,
114
+ detail: `bun test ${'--filter '.repeat(14)}`,
115
+ input: { command: `bun test ${'--filter '.repeat(14)}` },
116
+ output: '',
117
+ } as ToolCallData;
118
+
102
119
  async function mount(tools: ToolCallData[]): Promise<HTMLElement> {
103
120
  await act(async () => {
104
121
  render(
@@ -133,7 +150,10 @@ describe('the tui style', () => {
133
150
  expect(el.querySelector('[data-tool-section]')?.getAttribute('data-tool-style')).toBe('tui');
134
151
 
135
152
  const frame = row(el);
136
- expect(frame.className).toContain('font-mono');
153
+ // The row is the transcript's own type, at the same size as every other
154
+ // style — not a monospace island inside the answer.
155
+ expect(frame.className).not.toContain('font-mono');
156
+ expect(head(el).className).toContain('text-[12px]');
137
157
  // No card: no border, no fill, no rounded frame on the row.
138
158
  expect(frame.className).not.toContain('border');
139
159
  expect(frame.className).not.toContain('rounded');
@@ -152,6 +172,21 @@ describe('the tui style', () => {
152
172
  expect(head(el).querySelector('.sr-only')?.textContent).toBe('Done');
153
173
  });
154
174
 
175
+ test('the subject hugs its clip, so the ellipsis sits beside the outcome', async () => {
176
+ const el = await mount([LONG_COMMAND_TOOL]);
177
+ const children = Array.from(head(el).children) as HTMLElement[];
178
+ const subject = children.find((node) => node.className.includes('text-meta'));
179
+ if (!subject) throw new Error('no subject span in the head');
180
+ // A pre-clipped subject already ends in `…`; a growing box (`flex-1`) would
181
+ // park that ellipsis far from the outcome and facts on its right.
182
+ expect(subject.className).not.toContain('flex-1');
183
+ expect(subject.className).toContain('truncate');
184
+ expect(subject.textContent?.endsWith('…')).toBe(true);
185
+ expect(subject.nextElementSibling?.textContent).toContain('[done]');
186
+ // The toggle follows the data too, instead of being pushed to the far edge.
187
+ expect(children.at(-1)?.className).not.toContain('ml-auto');
188
+ });
189
+
155
190
  test('title and subject are different colours', async () => {
156
191
  const el = await mount([OK_TOOL]);
157
192
  const classes = headClasses(el);
@@ -130,7 +130,7 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
130
130
  }, [onToggle, tool.id]);
131
131
 
132
132
  return (
133
- <div data-tool-row="tui" className="font-mono">
133
+ <div data-tool-row="tui">
134
134
  {/* The status line itself: glyph, name, subject, outcome, facts. Text
135
135
  only — the colours separate the three claims (what ran, on what, how
136
136
  it ended), which is what the terminal does with SGR and what a box
@@ -144,7 +144,7 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
144
144
  aria-label={
145
145
  canToggle ? toolToggleLabel(view.header.title, view.subtitle, isExpanded) : undefined
146
146
  }
147
- className={`flex min-w-0 flex-1 flex-wrap items-baseline gap-x-1 gap-y-0 rounded px-1 py-0.5 text-left text-[11.5px] leading-[1.55] transition-colors ${
147
+ className={`flex min-w-0 flex-1 flex-nowrap items-baseline gap-x-1 rounded px-1 py-0.5 text-left text-[12px] leading-[1.55] transition-colors ${
148
148
  canToggle ? 'cursor-pointer hover:bg-ink/[0.03]' : 'cursor-default'
149
149
  } focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink/20`}
150
150
  >
@@ -156,7 +156,12 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
156
156
  {view.subtitle && (
157
157
  <>
158
158
  <span className="shrink-0 text-ink/25">:</span>
159
- <span className="min-w-0 flex-1 truncate text-meta">{view.subtitle}</span>
159
+ {/* The subject HUGS its text instead of growing (`flex-1`): a
160
+ pre-clipped command already ends in `…`, and a growing box
161
+ parked that ellipsis far from the outcome and facts on its
162
+ right. A long subject still shrinks and CSS-ellipsizes at the
163
+ box edge, so the ellipsis always sits beside the data. */}
164
+ <span className="min-w-0 shrink truncate font-mono text-[10.5px] text-meta">{view.subtitle}</span>
160
165
  </>
161
166
  )}
162
167
  <span className={`shrink-0 font-semibold ${tone}`}>{`[${status.word.toLowerCase()}]`}</span>
@@ -167,7 +172,7 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
167
172
  // The whole group carries the tooltip with every fact, so a clipped
168
173
  // tail is still recoverable.
169
174
  <span
170
- className="min-w-0 shrink truncate text-[10.5px]"
175
+ className="min-w-0 shrink truncate font-mono text-[10px]"
171
176
  title={facts.map((fact) => fact.label).join(' · ')}
172
177
  >
173
178
  <span className="text-ink/25">· </span>
@@ -175,7 +180,7 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
175
180
  </span>
176
181
  )}
177
182
  {canToggle && (
178
- <span className="ml-auto shrink-0 pl-1 text-ink/40" aria-hidden="true">
183
+ <span className="shrink-0 pl-1 text-ink/40" aria-hidden="true">
179
184
  {isExpanded ? '▾' : '▸'}
180
185
  </span>
181
186
  )}
@@ -1,5 +1,5 @@
1
1
  {
2
- "source": "@oh-my-pi/pi-coding-agent 10 tabs / 659 settings",
2
+ "source": "@oh-my-pi/pi-coding-agent 10 tabs / 662 settings",
3
3
  "tabs": [
4
4
  {
5
5
  "id": "appearance",
@@ -280,6 +280,16 @@
280
280
  "description": "Show a live generation tok/s readout: on the working row next to the session title, or in the native composer bar right after the thinking level, where the last reading stays between turns. Estimated from streamed deltas and corrected by the provider's billed output count as each message completes."
281
281
  }
282
282
  },
283
+ "composer.providerIcon": {
284
+ "type": "boolean",
285
+ "default": false,
286
+ "ui": {
287
+ "tab": "appearance",
288
+ "group": "Composer",
289
+ "label": "Provider Icon",
290
+ "description": "In the native composer bar, lead the model name with the provider's icon: the one set in the /model hub (`providerIcons` in models.yml), else Tern's logo for it."
291
+ }
292
+ },
283
293
  "statusLine.preset": {
284
294
  "type": "enum",
285
295
  "default": "default",
@@ -659,6 +669,16 @@
659
669
  "description": "Render Mermaid fenced code blocks as ASCII diagrams"
660
670
  }
661
671
  },
672
+ "tui.codeFrame": {
673
+ "type": "boolean",
674
+ "default": false,
675
+ "ui": {
676
+ "tab": "appearance",
677
+ "group": "Display",
678
+ "label": "Frame Code Blocks",
679
+ "description": "Draw code blocks between a dashed hairline carrying the language and a bare one, instead of literal ``` rows (indented blocks included). Selecting the code rows copies the same text; selecting the whole block copies the hairlines, not ``` fences. Plain terminal only; the native view ignores it."
680
+ }
681
+ },
662
682
  "tui.renderSvg": {
663
683
  "type": "boolean",
664
684
  "default": true,
@@ -7084,6 +7104,38 @@
7084
7104
  ]
7085
7105
  }
7086
7106
  },
7107
+ "act.enabled": {
7108
+ "type": "enum",
7109
+ "default": "auto",
7110
+ "values": [
7111
+ "auto",
7112
+ "on",
7113
+ "off"
7114
+ ],
7115
+ "ui": {
7116
+ "tab": "tools",
7117
+ "group": "Available Tools",
7118
+ "label": "Act (judge-picked clicks)",
7119
+ "description": "Enable tab.act/tab.expect in browser use and win.act/win.expect in computer use: the judge model role picks the element an intent names, or checks the screen. Auto enables them when the first usable judge is native",
7120
+ "options": [
7121
+ {
7122
+ "value": "auto",
7123
+ "label": "Auto",
7124
+ "description": "Enable when the first usable judge is native"
7125
+ },
7126
+ {
7127
+ "value": "on",
7128
+ "label": "On",
7129
+ "description": "Always enable, whichever model the judge role resolves to"
7130
+ },
7131
+ {
7132
+ "value": "off",
7133
+ "label": "Off",
7134
+ "description": "Disable the act helpers"
7135
+ }
7136
+ ]
7137
+ }
7138
+ },
7087
7139
  "find.timeoutMs": {
7088
7140
  "type": "number",
7089
7141
  "default": 20000,
@@ -7379,7 +7431,7 @@
7379
7431
  "tab": "tools",
7380
7432
  "group": "GitHub",
7381
7433
  "label": "GitHub View Cache",
7382
- "description": "Cache rendered issue/PR view output in ~/.omp/cache/github-cache.db so repeated reads are free"
7434
+ "description": "Cache forge overviews and diffs in ~/.omp/cache/github-cache.db"
7383
7435
  }
7384
7436
  },
7385
7437
  "github.cache.softTtlSec": {
@@ -7389,7 +7441,7 @@
7389
7441
  "tab": "tools",
7390
7442
  "group": "GitHub",
7391
7443
  "label": "GitHub Cache Soft TTL",
7392
- "description": "Within this window, cached issue/PR view rows are returned directly (seconds; default 5 minutes)"
7444
+ "description": "Revalidate cached forge overviews after this many seconds; diffs check revisions on every live read"
7393
7445
  }
7394
7446
  },
7395
7447
  "github.cache.hardTtlSec": {
@@ -7399,7 +7451,7 @@
7399
7451
  "tab": "tools",
7400
7452
  "group": "GitHub",
7401
7453
  "label": "GitHub Cache Hard TTL",
7402
- "description": "Past the soft TTL the cached row is returned and refreshed in the background; past the hard TTL it is dropped (seconds; default 7 days)"
7454
+ "description": "Maximum age of cached forge rows and retained diff snapshots (seconds; default 7 days)"
7403
7455
  }
7404
7456
  },
7405
7457
  "web_search.enabled": {
@@ -7796,7 +7848,7 @@
7796
7848
  "tab": "shell",
7797
7849
  "group": "Bash",
7798
7850
  "label": "Reap Background Processes",
7799
- "description": "Remind the agent about processes its bash calls left running (`cmd &`, `nohup`) when it stops, and kill the `&` ones at session end unless registered as services; off in RPC mode"
7851
+ "description": "Remind the agent about processes its bash calls left running (`cmd &`, `nohup`) when it stops, and kill the `&` ones at session end unless registered as services; off in non-interactive runs (print, RPC, ACP)"
7800
7852
  }
7801
7853
  },
7802
7854
  "bash.gitGuard": {
@@ -8476,7 +8528,7 @@
8476
8528
  },
8477
8529
  "task.maxRecursionDepth": {
8478
8530
  "type": "number",
8479
- "default": 2,
8531
+ "default": 1,
8480
8532
  "ui": {
8481
8533
  "tab": "tasks",
8482
8534
  "group": "Subagents",
@@ -9046,7 +9098,7 @@
9046
9098
  "tab": "tools",
9047
9099
  "group": "Grep & Browser",
9048
9100
  "label": "Freeze Browser Tabs On Turn End",
9049
- "description": "Freeze OMP-owned headless Chromium tabs when a turn settles so animated pages stop burning CPU/GPU while idle (WebKit tabs draw nothing unless asked). Tabs unfreeze automatically on next use; pass persist:true on open to opt a tab out."
9101
+ "description": "Freeze OMP-owned headless Chromium tabs when a turn settles so animated pages stop burning CPU/GPU while idle. WebKit tabs are not frozen: their pages keep animating until closed or reaped by browser.idleCloseSec. Tabs unfreeze automatically on next use; pass persist:true on open to opt a tab out."
9050
9102
  }
9051
9103
  },
9052
9104
  "browser.idleCloseSec": {
@@ -26,7 +26,7 @@
26
26
 
27
27
  import type { ExtensionUiDialogRequest } from '@kabmo-labs/kabmo-chat/contracts/agent';
28
28
  import type { AskQuestion } from '@/shared/lib/chat/ask-form/types';
29
- import { groupAskFrames } from '@/shared/lib/chat/ask-questions';
29
+ import { askQuestionForTitle, groupAskFrames } from '@/shared/lib/chat/ask-questions';
30
30
 
31
31
  export interface BucketedFrames {
32
32
  /** One bucket per question, in form order. */
@@ -53,10 +53,20 @@ export function bucketAskFrames(
53
53
  const unplaced: ExtensionUiDialogRequest[] = [];
54
54
  for (const frame of frames) {
55
55
  if (Array.isArray(frame.questions) && frame.questions.length > 0) {
56
+ const indexes = new Set<number>();
56
57
  for (const grouped of frame.questions) {
57
- const index = questions.findIndex((question) => question.id === grouped.id);
58
- if (index >= 0) placed[index].push(frame);
59
- else walking.push(frame);
58
+ const byId = questions.findIndex((question) => question.id === grouped.id);
59
+ const index = byId >= 0 ? byId : askQuestionForTitle(questions, grouped.question);
60
+ if (index >= 0) indexes.add(index);
61
+ }
62
+ // A grouped frame covers every question it names. An ACP elicitation's
63
+ // ids are schema names (`q0`), so the tool call's question text is often
64
+ // the only shared key; if even that missed, the first bucket draws the
65
+ // card and `GroupedAsk` renders the frame's whole question set.
66
+ if (indexes.size === 0) {
67
+ if (placed[0]) placed[0].push(frame);
68
+ } else {
69
+ for (const index of indexes) placed[index].push(frame);
60
70
  }
61
71
  continue;
62
72
  }