@kabmo-labs/kabmo 0.58.1 → 0.59.1

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 (399) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +513 -495
  3. package/dist/client/static/js/{Body-ysmhxbvk.js → Body-5yedtmnk.js} +3 -3
  4. package/dist/client/static/js/{CsvGrid-w90pxyn2.js → CsvGrid-39m8pp1c.js} +2 -2
  5. package/dist/client/static/js/{DocxView-evxn6kaq.js → DocxView-vd99cv12.js} +3 -3
  6. package/dist/client/static/js/{DrawioView-tmdevwf4.js → DrawioView-6nq4412n.js} +2 -2
  7. package/dist/client/static/js/{HtmlPreview-bpsn2z9p.js → HtmlPreview-cs51gszy.js} +1 -1
  8. package/dist/client/static/js/ImageView-nc2n0w6s.js +1 -0
  9. package/dist/client/static/js/LayoutWrapper-j7786frq.js +2 -0
  10. package/dist/client/static/js/MergeDiffView-0rn5zsy5.js +1 -0
  11. package/dist/client/static/js/Modal-7ag7a9qq.js +60 -0
  12. package/dist/client/static/js/{PdfView-txxn6qff.js → PdfView-0zab721q.js} +1 -1
  13. package/dist/client/static/js/SessionsView-t9rhx472.js +1 -0
  14. package/dist/client/static/js/{SheetView-52b33e6f.js → SheetView-2wdn5hkd.js} +11 -11
  15. package/dist/client/static/js/{SvgPreview-hrk4pfm1.js → SvgPreview-fmrfxd7z.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-at77sybc.js → abnfDiagram-O67JEVCF-41scfh9v.js} +1 -1
  17. package/dist/client/static/js/architecture-7GRP2DOG-bwn1drdz.js +1 -0
  18. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-raw33jgg.js → architectureDiagram-NJMV4G6O-fp6etjvt.js} +3 -3
  19. package/dist/client/static/js/{astro-qha7sceh.js → astro-ryr2ajmg.js} +1 -1
  20. package/dist/client/static/js/bash-zknkkwkw.js +1 -0
  21. package/dist/client/static/js/{blockDiagram-BEXU5L5S-b6e90fbk.js → blockDiagram-BEXU5L5S-pespk9mt.js} +4 -4
  22. package/dist/client/static/js/c-0w02jkxb.js +1 -0
  23. package/dist/client/static/js/{c4Diagram-YGBWAQC7-msg9y1c6.js → c4Diagram-YGBWAQC7-rt4z91dx.js} +2 -2
  24. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-jmrd1h8r.js → classDiagram-v2-NBCMYWYE-6bzaq8sd.js} +4 -4
  25. package/dist/client/static/js/{cose-bilkent-JH36ORCC-na65ebq3.js → cose-bilkent-JH36ORCC-z3fhgcba.js} +1 -1
  26. package/dist/client/static/js/cpp-p5b4vean.js +1 -0
  27. package/dist/client/static/js/css-9jzbvdyz.js +1 -0
  28. package/dist/client/static/js/css-sn00sq6v.js +1 -0
  29. package/dist/client/static/js/cynefin-OW5HDTMX-jbc50ks8.js +1 -0
  30. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-9xkkw71m.js → cynefinDiagram-VND7K2PF-8endeh4p.js} +2 -2
  31. package/dist/client/static/js/{dagre-6A5THRUB-p59f19tv.js → dagre-6A5THRUB-2a2f32dv.js} +2 -2
  32. package/dist/client/static/js/{diagram-22UHCM2B-2e2rcvn7.js → diagram-22UHCM2B-wgbyr6b7.js} +9 -9
  33. package/dist/client/static/js/{diagram-3UASUU5V-r9ds8vgr.js → diagram-3UASUU5V-5122b41x.js} +1 -1
  34. package/dist/client/static/js/{diagram-ATOU4E4O-jgwxv7v8.js → diagram-ATOU4E4O-1gt9fr7e.js} +3 -3
  35. package/dist/client/static/js/{diagram-CDSNMT55-20m35eqq.js → diagram-CDSNMT55-v6hs59jb.js} +4 -4
  36. package/dist/client/static/js/{diagram-MLGK6HIB-vt3kxt2m.js → diagram-MLGK6HIB-yey2m5nm.js} +1 -1
  37. package/dist/client/static/js/{diagram-MPIPVDR6-c47rgxf1.js → diagram-MPIPVDR6-hg4f3q4d.js} +2 -2
  38. package/dist/client/static/js/{dockerfile-gtcyey0q.js → dockerfile-56tfnp5r.js} +1 -1
  39. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-aszw3xy3.js → ebnfDiagram-ZINNZB2B-2mhc9aar.js} +1 -1
  40. package/dist/client/static/js/{elixir-w92v180e.js → elixir-fyxw6d70.js} +1 -1
  41. package/dist/client/static/js/{elk-276RUBZZ-gbvr3gry.js → elk-276RUBZZ-wedtvz9y.js} +2 -2
  42. package/dist/client/static/js/{erDiagram-OPXOYQCR-1hqca8qe.js → erDiagram-OPXOYQCR-1kysnby9.js} +6 -6
  43. package/dist/client/static/js/{erlang-v7344938.js → erlang-97ayje6m.js} +1 -1
  44. package/dist/client/static/js/eventmodeling-NTZA5JFV-b37ey01t.js +1 -0
  45. package/dist/client/static/js/flowDiagram-KWPJA3E3-vd4z6bvy.js +1 -0
  46. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-07v22te5.js → ganttDiagram-FUAMR5RP-j4g65rpm.js} +3 -3
  47. package/dist/client/static/js/gitGraph-4MIJSDKK-mvqq7tcs.js +1 -0
  48. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-y068jtz9.js → gitGraphDiagram-X574FWY7-vcwmj4b3.js} +8 -8
  49. package/dist/client/static/js/graphql-xzykn0ba.js +1 -0
  50. package/dist/client/static/js/html-2zc3shky.js +1 -0
  51. package/dist/client/static/js/{index-r8d4bk86.js → index-10vzyga1.js} +2 -2
  52. package/dist/client/static/js/index-1mkn5fbf.js +481 -0
  53. package/dist/client/static/js/{index-medk4f18.js → index-2h7xh93h.js} +2 -2
  54. package/dist/client/static/js/{index-fhtnvqgf.js → index-3j2he86h.js} +2 -2
  55. package/dist/client/static/js/{index-zhgh7a31.js → index-3kedv94b.js} +2 -2
  56. package/dist/client/static/js/{index-374xq5a4.js → index-42k78whj.js} +1 -1
  57. package/dist/client/static/js/{index-c9aqx3ht.js → index-42q5gg7t.js} +1 -1
  58. package/dist/client/static/js/index-461ga40v.js +2 -0
  59. package/dist/client/static/js/{index-9qf2h9jb.js → index-51rbgeh9.js} +12 -12
  60. package/dist/client/static/js/{index-tdg7hz80.js → index-58z2hatp.js} +2 -2
  61. package/dist/client/static/js/{index-4tbdws4r.js → index-5e4e18tg.js} +2 -2
  62. package/dist/client/static/js/{index-th61y26d.js → index-69mnn71v.js} +2 -2
  63. package/dist/client/static/js/index-6vbra7p9.js +1 -0
  64. package/dist/client/static/js/{index-007sewcn.js → index-7enfdvh0.js} +2 -2
  65. package/dist/client/static/js/{index-gaa39w5q.js → index-8tzt0dek.js} +2 -2
  66. package/dist/client/static/js/{index-ewryzs4g.js → index-92h38pwg.js} +2 -2
  67. package/dist/client/static/js/{index-vw8b29ek.js → index-9mgpbwfr.js} +1 -1
  68. package/dist/client/static/js/{index-80kx6dm6.js → index-a3bpmw2r.js} +2 -2
  69. package/dist/client/static/js/{index-fv7nybnf.js → index-a70sk36c.js} +2 -2
  70. package/dist/client/static/js/index-c5401dqs.js +4 -0
  71. package/dist/client/static/js/{index-xmg1x6zv.js → index-csxnqgzw.js} +5 -5
  72. package/dist/client/static/js/{index-qefssj0m.js → index-d201jvs9.js} +1 -1
  73. package/dist/client/static/js/{index-y0f3wbc3.js → index-d9sfavx1.js} +2 -2
  74. package/dist/client/static/js/{index-5hvt233n.js → index-db6s66jr.js} +2 -2
  75. package/dist/client/static/js/index-dbsy29gn.js +2 -0
  76. package/dist/client/static/js/{index-j830qk07.js → index-dw9epydj.js} +2 -2
  77. package/dist/client/static/js/{index-s4dpkds5.js → index-e39m185a.js} +2 -2
  78. package/dist/client/static/js/{index-dxq1tbwm.js → index-fg0ne74z.js} +2 -2
  79. package/dist/client/static/js/{index-hb7a7m9m.js → index-fnaq8baz.js} +1 -1
  80. package/dist/client/static/js/{index-tq3t3qm4.js → index-fsa18ns9.js} +2 -2
  81. package/dist/client/static/js/{index-wxqcnsrq.js → index-fvphmwkf.js} +2 -2
  82. package/dist/client/static/js/{index-94d416ee.js → index-gajpd90b.js} +2 -2
  83. package/dist/client/static/js/{index-rxt8sf9a.js → index-h1xbx74w.js} +2 -2
  84. package/dist/client/static/js/{index-1e0rt7c6.js → index-hgzf4ask.js} +5 -5
  85. package/dist/client/static/js/{index-wn28m9h7.js → index-hrez92pw.js} +8 -8
  86. package/dist/client/static/js/{index-zs7kw0be.js → index-jaf968hx.js} +4 -4
  87. package/dist/client/static/js/{index-sxag9ptg.js → index-jct0jryd.js} +2 -2
  88. package/dist/client/static/js/{index-5xxbbzqa.js → index-kt77dwsg.js} +7 -7
  89. package/dist/client/static/js/{index-8d8ce00v.js → index-m62sf9wn.js} +2 -2
  90. package/dist/client/static/js/{index-6x0kn8pb.js → index-mhrkjbjq.js} +2 -2
  91. package/dist/client/static/js/index-mttx9327.css +1 -0
  92. package/dist/client/static/js/{index-1e710snk.js → index-n7bmqeqz.js} +1 -1
  93. package/dist/client/static/js/{index-3ymw778n.js → index-ndqtff48.js} +2 -2
  94. package/dist/client/static/js/{index-cmjyet7w.js → index-nf4hq5tg.js} +27 -27
  95. package/dist/client/static/js/{index-3p732mvs.js → index-np2rfq06.js} +2 -2
  96. package/dist/client/static/js/{index-2s17netq.js → index-nwbr15b3.js} +2 -2
  97. package/dist/client/static/js/{index-nptbz7sv.js → index-pn0ja904.js} +1 -1
  98. package/dist/client/static/js/{index-azz46nwc.js → index-pr8wsq24.js} +2 -2
  99. package/dist/client/static/js/{index-7sq6cjt1.js → index-q3k8r0ms.js} +11 -11
  100. package/dist/client/static/js/{index-an7fq7f6.js → index-qc3de995.js} +1 -1
  101. package/dist/client/static/js/{index-f61c25vn.js → index-r42f3r1p.js} +3 -3
  102. package/dist/client/static/js/{index-e4nge3f4.js → index-s7p2wdr1.js} +1 -1
  103. package/dist/client/static/js/{index-vny4ymjf.js → index-sg65xdey.js} +1 -1
  104. package/dist/client/static/js/index-skp6991n.js +2 -0
  105. package/dist/client/static/js/index-spnrx2c0.js +2 -0
  106. package/dist/client/static/js/{index-fe92hqmb.js → index-sqyvj03y.js} +4 -4
  107. package/dist/client/static/js/{index-cpp43af3.js → index-tz5ewsza.js} +9 -9
  108. package/dist/client/static/js/{index-v8xhgfeq.js → index-vs2y8gxr.js} +2 -2
  109. package/dist/client/static/js/{index-e0kahttb.js → index-vs3g6njv.js} +1 -1
  110. package/dist/client/static/js/index-wkxsypj1.js +2 -0
  111. package/dist/client/static/js/{index-gqrt766t.js → index-xqz7bqcn.js} +61 -61
  112. package/dist/client/static/js/{index-jxsha63v.js → index-y4cx8cqf.js} +2 -2
  113. package/dist/client/static/js/{index-kzzvrqnv.js → index-y5pkqrga.js} +2 -2
  114. package/dist/client/static/js/{index-3m1dksmy.js → index-yrwm437g.js} +2 -2
  115. package/dist/client/static/js/{index-7ynf3s2w.js → index-z82nd2bd.js} +2 -2
  116. package/dist/client/static/js/info-A6RAGUB7-zkv4crz7.js +1 -0
  117. package/dist/client/static/js/{infoDiagram-VRGFBTTK-1x83h4k4.js → infoDiagram-VRGFBTTK-7craq9x2.js} +2 -2
  118. package/dist/client/static/js/ini-62r3vxaf.js +1 -0
  119. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-et6z3c28.js → ishikawaDiagram-OU5B5YK6-ncjty2re.js} +2 -2
  120. package/dist/client/static/js/java-kacycary.js +1 -0
  121. package/dist/client/static/js/javascript-zc1qnyyp.js +1 -0
  122. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-sw669e7a.js → journeyDiagram-ZHPQQLJL-yx222bzt.js} +2 -2
  123. package/dist/client/static/js/json-yrwpn6bd.js +1 -0
  124. package/dist/client/static/js/jsx-b40ag8q1.js +1 -0
  125. package/dist/client/static/js/{julia-z14p8jsx.js → julia-agc5kfvg.js} +1 -1
  126. package/dist/client/static/js/{kanban-definition-PNTS6WVX-aqxg95kx.js → kanban-definition-PNTS6WVX-a2f84qmn.js} +6 -6
  127. package/dist/client/static/js/lua-bk961f37.js +1 -0
  128. package/dist/client/static/js/markdown-b7rgzgd6.js +1 -0
  129. package/dist/client/static/js/mermaid.core-9vfwthw3.js +12 -0
  130. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-530anpc4.js → mindmap-definition-NLK3R4M7-fsxysg6f.js} +4 -4
  131. package/dist/client/static/js/one-dark-pro-7v4by00h.js +1 -0
  132. package/dist/client/static/js/one-light-5rfzh8p4.js +1 -0
  133. package/dist/client/static/js/packet-AYTQ26CC-dgpge627.js +1 -0
  134. package/dist/client/static/js/{pegDiagram-GJSIUBJH-5zar6hvy.js → pegDiagram-GJSIUBJH-77wxmp9g.js} +1 -1
  135. package/dist/client/static/js/{perl-1na2x6yd.js → perl-v5vbtzgf.js} +1 -1
  136. package/dist/client/static/js/{php-x75tt7w3.js → php-83qwy98t.js} +1 -1
  137. package/dist/client/static/js/pie-WAS4IAKB-b8pgsqrd.js +1 -0
  138. package/dist/client/static/js/{pieDiagram-5QR66LMP-3bx8syvw.js → pieDiagram-5QR66LMP-gvgfhez0.js} +3 -3
  139. package/dist/client/static/js/properties-k8gbzggp.js +1 -0
  140. package/dist/client/static/js/python-343tspad.js +1 -0
  141. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-yaarpr2e.js → quadrantDiagram-O4NWA36T-9zkbt5h8.js} +2 -2
  142. package/dist/client/static/js/r-ycdwmv8g.js +1 -0
  143. package/dist/client/static/js/radar-RG4KPBEZ-fmfe5y27.js +1 -0
  144. package/dist/client/static/js/railroad-74A4TZTK-b5tks4ce.js +1 -0
  145. package/dist/client/static/js/railroad-abnf-HS5TGJTU-0sf4m0ze.js +1 -0
  146. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pjfy3pt7.js +1 -0
  147. package/dist/client/static/js/railroad-peg-WCYAUIDC-nr8ngt42.js +1 -0
  148. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-ag41q4nt.js → railroadDiagram-XR7U4H2S-w55bsyw6.js} +1 -1
  149. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-g8sr48h4.js → requirementDiagram-PLB6GJNP-828s1e5g.js} +3 -3
  150. package/dist/client/static/js/{ruby-3h22qahv.js → ruby-994n5j6e.js} +1 -1
  151. package/dist/client/static/js/{rust-r27demr5.js → rust-csv5f258.js} +1 -1
  152. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-t1wbd1hh.js → sankeyDiagram-IPEJSGJF-34f3fyvg.js} +3 -3
  153. package/dist/client/static/js/{sass-8bq5r2tz.js → sass-p6g7qdv2.js} +1 -1
  154. package/dist/client/static/js/{scss-c04ezwnn.js → scss-4j4t3r6y.js} +1 -1
  155. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-407mjqty.js → sequenceDiagram-PO4LG4MO-nnta2hn0.js} +7 -7
  156. package/dist/client/static/js/{sizeCapture-INFHLROL-w38zb9ky.js → sizeCapture-INFHLROL-gpcramga.js} +1 -1
  157. package/dist/client/static/js/sql-kwpd5w07.js +1 -0
  158. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-4cvgymkc.js → stateDiagram-v2-GCMORJYK-3f2en220.js} +3 -3
  159. package/dist/client/static/js/{svelte-egg3x4tw.js → svelte-bek3h1sz.js} +1 -1
  160. package/dist/client/static/js/{swimlanes-2SLR337P-w7ts2rzw.js → swimlanes-2SLR337P-jgqt12z9.js} +1 -1
  161. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xx1z57df.js +8 -0
  162. package/dist/client/static/js/{timeline-definition-EJHVYXUP-nq46nzy9.js → timeline-definition-EJHVYXUP-sgchcs11.js} +3 -3
  163. package/dist/client/static/js/treeView-Q6P3EWNA-23r9fa68.js +1 -0
  164. package/dist/client/static/js/treemap-WGGIJYW6-mxxzdrj6.js +1 -0
  165. package/dist/client/static/js/tsx-gjxfjnbk.js +1 -0
  166. package/dist/client/static/js/typescript-4dchbnya.js +1 -0
  167. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-q144snzb.js → usecaseDiagram-POWQR4AR-znkg9pkq.js} +15 -15
  168. package/dist/client/static/js/{vennDiagram-UO4OBE2U-2wemak2p.js → vennDiagram-UO4OBE2U-dncg96ej.js} +4 -4
  169. package/dist/client/static/js/{vue-d7p4wv35.js → vue-y44m889c.js} +1 -1
  170. package/dist/client/static/js/wardley-WFR3VGLG-cbqtax1x.js +1 -0
  171. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-bb2qvvgr.js → wardleyDiagram-VNRHLVJA-77xz2d49.js} +4 -4
  172. package/dist/client/static/js/xml-xs6qz3ya.js +1 -0
  173. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-9dr05fdq.js → xychartDiagram-PMCCYNJV-40j1aqyf.js} +4 -4
  174. package/dist/client/static/js/yaml-174nk5bn.js +1 -0
  175. package/package.json +7 -7
  176. package/src/client/borders.css +15 -3
  177. package/src/client/components/common/ComposerTextarea.test.tsx +13 -1
  178. package/src/client/components/common/ComposerTextarea.tsx +8 -2
  179. package/src/client/components/common/MarkdownRenderer.tsx +11 -2
  180. package/src/client/components/common/harness-glyph/harness-glyph.test.ts +0 -4
  181. package/src/client/components/common/harness-glyph/index.tsx +4 -5
  182. package/src/client/components/common/markdown-inline-file.test.tsx +90 -15
  183. package/src/client/components/common/session-actions-menu/index.test.tsx +45 -0
  184. package/src/client/components/common/session-actions-menu/index.tsx +6 -1
  185. package/src/client/components/common/session-row/TrailingSlot.tsx +8 -1
  186. package/src/client/components/common/session-row/index.tsx +4 -0
  187. package/src/client/components/common/session-row/session-row.test.tsx +5 -0
  188. package/src/client/components/layout/desktop-layout/RightColumn.tsx +4 -1
  189. package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +28 -35
  190. package/src/client/components/layout/desktop-layout/index.tsx +5 -3
  191. package/src/client/components/layout/desktop-layout/resizer/index.tsx +13 -3
  192. package/src/client/components/layout/desktop-layout/resizer/panel.test.ts +41 -0
  193. package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +21 -1
  194. package/src/client/components/layout/session-sidebar/CategoryHeader.worktree.test.tsx +1 -0
  195. package/src/client/components/layout/session-sidebar/CategoryItem.tsx +8 -2
  196. package/src/client/components/layout/session-sidebar/ClassicView.tsx +2 -0
  197. package/src/client/components/layout/session-sidebar/SessionList.tsx +4 -0
  198. package/src/client/components/layout/session-sidebar/SessionsView.tsx +22 -1
  199. package/src/client/components/layout/session-sidebar/modern/RevealRow.tsx +36 -5
  200. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +45 -28
  201. package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +10 -3
  202. package/src/client/components/layout/session-sidebar/modern/index.tsx +2 -0
  203. package/src/client/components/layout/session-sidebar/modern/reveal-row.test.tsx +28 -1
  204. package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +27 -11
  205. package/src/client/components/layout/session-sidebar/search-results.test.tsx +29 -16
  206. package/src/client/components/layout/session-sidebar/session-list-states.test.tsx +1 -0
  207. package/src/client/components/layout/session-sidebar/variant-props.ts +2 -0
  208. package/src/client/components/mobile/LayoutWrapper.tsx +9 -0
  209. package/src/client/components/mobile/SessionSidebar.tsx +4 -0
  210. package/src/client/components/mobile/left-drawer-nav.test.tsx +1 -1
  211. package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +4 -0
  212. package/src/client/components/mobile/mobile-session-sidebar/ClassicDrawer.tsx +3 -0
  213. package/src/client/components/mobile/mobile-session-sidebar/Item.test.tsx +85 -0
  214. package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +30 -14
  215. package/src/client/components/mobile/mobile-session-sidebar/List.tsx +4 -0
  216. package/src/client/components/settings/apply-side-effects.test.ts +31 -0
  217. package/src/client/components/settings/apply-side-effects.ts +7 -0
  218. package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.tsx +3 -2
  219. package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.test.tsx +95 -0
  220. package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.tsx +35 -0
  221. package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +1 -0
  222. package/src/client/components/workspace/chat-timeline/MessageItem.gutter.test.ts +26 -0
  223. package/src/client/components/workspace/chat-timeline/MessageItem.tsx +6 -3
  224. package/src/client/components/workspace/chat-timeline/ThinkingSection.test.tsx +17 -0
  225. package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +9 -3
  226. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +39 -2
  227. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +19 -4
  228. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +28 -21
  229. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.wait.test.tsx +48 -0
  230. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +44 -21
  231. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +24 -0
  232. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +44 -18
  233. package/src/client/components/workspace/chat-timeline/chat-input/GoalSurfaces.tsx +2 -1
  234. package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +35 -0
  235. package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +33 -12
  236. package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +24 -0
  237. package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.tsx +14 -3
  238. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +24 -1
  239. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +78 -135
  240. package/src/client/components/workspace/chat-timeline/chat-input/VoiceButton.tsx +58 -0
  241. package/src/client/components/workspace/chat-timeline/chat-input/action-base.ts +42 -0
  242. package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +1 -0
  243. package/src/client/components/workspace/chat-timeline/chat-input/mode-icons.test.ts +108 -0
  244. package/src/client/components/workspace/chat-timeline/chat-input/mode-icons.tsx +122 -0
  245. package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +78 -20
  246. package/src/client/components/workspace/chat-timeline/chat-input/styles/index.tsx +11 -5
  247. package/src/client/components/workspace/chat-timeline/chat-input/styles.test.tsx +19 -0
  248. package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +9 -0
  249. package/src/client/components/workspace/chat-timeline/index.tsx +1 -1
  250. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.test.tsx +125 -0
  251. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.tsx +84 -27
  252. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.test.tsx +18 -0
  253. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +14 -5
  254. package/src/client/components/workspace/model-dropdown/CloseButton.tsx +2 -2
  255. package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +2 -2
  256. package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +40 -10
  257. package/src/client/components/workspace/model-dropdown/Header.tsx +33 -18
  258. package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -1
  259. package/src/client/components/workspace/model-dropdown/ThinkingLevels.tsx +51 -0
  260. package/src/client/components/workspace/model-dropdown/Trigger.tsx +99 -0
  261. package/src/client/components/workspace/model-dropdown/bands.ts +51 -0
  262. package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +39 -5
  263. package/src/client/components/workspace/model-dropdown/index.tsx +20 -47
  264. package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +34 -4
  265. package/src/client/components/workspace/model-dropdown/thinking-levels.test.tsx +108 -0
  266. package/src/client/components/workspace/model-dropdown/trigger.test.ts +54 -8
  267. package/src/client/hooks/chat/composer/attachments.test.ts +12 -0
  268. package/src/client/hooks/chat/composer/attachments.ts +16 -4
  269. package/src/client/hooks/chat/composer/pipeline.test.ts +14 -0
  270. package/src/client/hooks/chat/composer/pipeline.ts +15 -6
  271. package/src/client/hooks/chat/omp/session-list.activity.test.ts +20 -0
  272. package/src/client/hooks/chat/omp/session-merges.ts +18 -6
  273. package/src/client/hooks/chat/omp/session-sidebar-controller.ts +4 -0
  274. package/src/client/hooks/chat/timeline/scope.test.ts +17 -0
  275. package/src/client/hooks/chat/timeline/scope.ts +6 -1
  276. package/src/client/hooks/chat/timeline/send-refusal.test.ts +19 -0
  277. package/src/client/hooks/chat/timeline/send-steer.test.ts +17 -0
  278. package/src/client/hooks/chat/timeline/send.ts +17 -0
  279. package/src/client/hooks/editor/quick-open.ts +41 -0
  280. package/src/client/hooks/ui/border-style.test.ts +13 -0
  281. package/src/client/hooks/ui/markdown-render.ts +11 -6
  282. package/src/client/hooks/ui/open-inline-file.test.ts +16 -0
  283. package/src/client/hooks/ui/open-inline-file.ts +4 -2
  284. package/src/client/hooks/ui/show-more.ts +11 -1
  285. package/src/client/hooks/ui/ui-feedback.test.ts +11 -0
  286. package/src/client/hooks/ui/verified-inline-files.test.tsx +143 -0
  287. package/src/client/hooks/ui/verified-inline-files.ts +165 -0
  288. package/src/client/hooks/workspace/mobile-workspace-panels.test.tsx +116 -0
  289. package/src/client/hooks/workspace/mobile-workspace-panels.ts +73 -0
  290. package/src/client/hooks/workspace/panel-resize.test.ts +127 -0
  291. package/src/client/hooks/workspace/panel-resize.ts +81 -0
  292. package/src/client/hooks/workspace/session-list-limit.test.ts +80 -0
  293. package/src/client/hooks/workspace/session-list-limit.ts +69 -0
  294. package/src/client/hooks/workspace/session-pin.ts +58 -0
  295. package/src/client/hooks/workspace/workspace-panels-mode.test.tsx +87 -0
  296. package/src/client/hooks/workspace/workspace-panels-mode.ts +76 -0
  297. package/src/client/lib/router/branch-params.test.ts +17 -1
  298. package/src/client/lib/router/branch-params.ts +18 -0
  299. package/src/client/lib/ui/pressed.ts +15 -0
  300. package/src/client/tailwind.css +30 -10
  301. package/src/server/lib/connect/cloudflared.lifecycle.test.ts +25 -9
  302. package/src/server/lib/db/schema.test.ts +1 -1
  303. package/src/server/lib/db/schema.ts +17 -0
  304. package/src/server/lib/harness/activity.server.test.ts +81 -0
  305. package/src/server/lib/harness/activity.server.ts +55 -0
  306. package/src/server/lib/harness/spawn.server.ts +9 -0
  307. package/src/server/lib/omp/session/delete.server.ts +4 -2
  308. package/src/server/lib/omp/session/sidebar-activity.server.test.ts +24 -2
  309. package/src/server/lib/omp/session/sidebar-data.canonical.test.ts +14 -0
  310. package/src/server/lib/sessions/last-opened.server.test.ts +17 -0
  311. package/src/server/lib/sessions/last-opened.server.ts +18 -1
  312. package/src/server/routes/sessions/index.ts +3 -2
  313. package/src/server/routes/sessions/routes.test.ts +29 -46
  314. package/src/server/routes/sessions/session.ts +40 -62
  315. package/src/server/routes/sessions/state.test.ts +89 -0
  316. package/src/server/routes/sessions/state.ts +86 -0
  317. package/src/shared/lib/chat/attachment-budget.test.ts +74 -0
  318. package/src/shared/lib/chat/attachment-budget.ts +111 -0
  319. package/src/shared/lib/chat/attachments.test.ts +0 -17
  320. package/src/shared/lib/chat/attachments.ts +0 -53
  321. package/src/shared/lib/chat/timeline/block-chrome.test.ts +35 -0
  322. package/src/shared/lib/chat/timeline/block-chrome.ts +21 -0
  323. package/src/shared/lib/markdown/degenerate-emphasis.test.ts +64 -0
  324. package/src/shared/lib/markdown/degenerate-emphasis.ts +90 -0
  325. package/src/shared/lib/markdown/inline-file.test.ts +79 -22
  326. package/src/shared/lib/markdown/inline-file.ts +57 -25
  327. package/src/shared/lib/markdown/marked.ts +5 -1
  328. package/src/shared/lib/settings/defaults.ts +2 -0
  329. package/src/shared/lib/theme/border-style.ts +1 -1
  330. package/src/shared/lib/workspace/active-project.test.ts +17 -1
  331. package/src/shared/lib/workspace/active-project.ts +9 -0
  332. package/src/shared/lib/workspace/project-settings-delete.test.ts +97 -0
  333. package/src/shared/lib/workspace/project-settings.test.ts +2 -34
  334. package/src/shared/lib/workspace/project-settings.ts +6 -0
  335. package/src/shared/lib/workspace/session-list-limit.test.ts +31 -0
  336. package/src/shared/lib/workspace/session-list-limit.ts +32 -0
  337. package/src/shared/lib/workspace/sidebar-sort.test.ts +21 -0
  338. package/src/shared/lib/workspace/workspace-panel-widths.ts +1 -1
  339. package/src/shared/lib/workspace/workspace-session.test.ts +34 -0
  340. package/src/shared/lib/workspace/workspace-session.ts +40 -0
  341. package/src/shared/types/settings/state.ts +10 -0
  342. package/dist/client/static/js/ImageView-ssazqckj.js +0 -1
  343. package/dist/client/static/js/LayoutWrapper-qwpfq4dq.js +0 -2
  344. package/dist/client/static/js/MergeDiffView-en6aazw8.js +0 -1
  345. package/dist/client/static/js/Modal-zjnhj9nb.js +0 -60
  346. package/dist/client/static/js/SessionsView-eryjtmb2.js +0 -1
  347. package/dist/client/static/js/architecture-7GRP2DOG-v05ap4e3.js +0 -1
  348. package/dist/client/static/js/bash-n5d0esqg.js +0 -1
  349. package/dist/client/static/js/c-pk766wx0.js +0 -1
  350. package/dist/client/static/js/cpp-3pt91jvm.js +0 -1
  351. package/dist/client/static/js/css-q2k6afe3.js +0 -1
  352. package/dist/client/static/js/css-sp1cgdbr.js +0 -1
  353. package/dist/client/static/js/cynefin-OW5HDTMX-sqv0ze38.js +0 -1
  354. package/dist/client/static/js/eventmodeling-NTZA5JFV-t4dzf5s7.js +0 -1
  355. package/dist/client/static/js/flowDiagram-KWPJA3E3-c16xmjyv.js +0 -1
  356. package/dist/client/static/js/gitGraph-4MIJSDKK-0jq8y0qd.js +0 -1
  357. package/dist/client/static/js/graphql-qx4tt6ze.js +0 -1
  358. package/dist/client/static/js/html-5e0g8664.js +0 -1
  359. package/dist/client/static/js/index-4ddgpqm0.css +0 -1
  360. package/dist/client/static/js/index-5g2j626a.js +0 -1
  361. package/dist/client/static/js/index-cc7qbfvn.js +0 -477
  362. package/dist/client/static/js/index-f27wvdky.js +0 -4
  363. package/dist/client/static/js/index-m5n0zsft.js +0 -2
  364. package/dist/client/static/js/index-rqt8mem9.js +0 -2
  365. package/dist/client/static/js/index-s9k82stc.js +0 -2
  366. package/dist/client/static/js/index-skwem10a.js +0 -2
  367. package/dist/client/static/js/index-tv9rn2nd.js +0 -2
  368. package/dist/client/static/js/info-A6RAGUB7-szttx3v5.js +0 -1
  369. package/dist/client/static/js/ini-bdk46a3d.js +0 -1
  370. package/dist/client/static/js/java-3g3925cf.js +0 -1
  371. package/dist/client/static/js/javascript-av46zx4c.js +0 -1
  372. package/dist/client/static/js/json-hdyzmffz.js +0 -1
  373. package/dist/client/static/js/jsx-y8r9mrdq.js +0 -1
  374. package/dist/client/static/js/lua-wf5k6p3r.js +0 -1
  375. package/dist/client/static/js/markdown-9bf16dx7.js +0 -1
  376. package/dist/client/static/js/mermaid.core-6cgqsgcf.js +0 -12
  377. package/dist/client/static/js/one-dark-pro-9hnhtkpr.js +0 -1
  378. package/dist/client/static/js/one-light-2n5y8592.js +0 -1
  379. package/dist/client/static/js/packet-AYTQ26CC-401149bv.js +0 -1
  380. package/dist/client/static/js/pie-WAS4IAKB-bgfv8tfz.js +0 -1
  381. package/dist/client/static/js/properties-xk4dn00p.js +0 -1
  382. package/dist/client/static/js/python-7sgz05n4.js +0 -1
  383. package/dist/client/static/js/r-w4qxm0pv.js +0 -1
  384. package/dist/client/static/js/radar-RG4KPBEZ-pw720590.js +0 -1
  385. package/dist/client/static/js/railroad-74A4TZTK-n2a30ngs.js +0 -1
  386. package/dist/client/static/js/railroad-abnf-HS5TGJTU-rn5rx9qt.js +0 -1
  387. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-t4yryhtd.js +0 -1
  388. package/dist/client/static/js/railroad-peg-WCYAUIDC-c4ebgvrr.js +0 -1
  389. package/dist/client/static/js/sql-sd00wgem.js +0 -1
  390. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-v82nym6b.js +0 -8
  391. package/dist/client/static/js/treeView-Q6P3EWNA-bxgt5yhm.js +0 -1
  392. package/dist/client/static/js/treemap-WGGIJYW6-hh3595m0.js +0 -1
  393. package/dist/client/static/js/tsx-h5yzg80q.js +0 -1
  394. package/dist/client/static/js/typescript-qy1sbhea.js +0 -1
  395. package/dist/client/static/js/wardley-WFR3VGLG-6bza7h1b.js +0 -1
  396. package/dist/client/static/js/xml-mrk4xakv.js +0 -1
  397. package/dist/client/static/js/yaml-xaza6dra.js +0 -1
  398. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.test.tsx +0 -110
  399. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +0 -86
@@ -1,6 +1,7 @@
1
1
  import { useCallback, useState } from 'preact/hooks';
2
2
  import { useSearchParams } from '@/client/lib/router/search-params';
3
3
  import { clearBranchParams, newSessionParams } from '@/client/lib/router/branch-params';
4
+ import { useMobileWorkspacePanels } from '@/client/hooks/workspace/mobile-workspace-panels';
4
5
  import { useKabmoEvent } from '@/client/hooks/ui/window-event';
5
6
  import { useMobileBackStack } from '@/client/hooks/workspace/mobile-back';
6
7
  import { useMobileDrawerReveals, type MobileScreen } from '@/client/components/mobile/mobile-drawer-reveals';
@@ -194,6 +195,13 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
194
195
  setCurrentScreen('main');
195
196
  };
196
197
 
198
+ const handleOpenWorkspacePanels = useMobileWorkspacePanels({
199
+ stateSessionId,
200
+ drawers,
201
+ setSearchParams,
202
+ setCurrentScreen,
203
+ });
204
+
197
205
  // Desktop parity: a worktree made from the phone's folder menu starts its chat
198
206
  // in it. The sequence lives in one module so both layouts share it.
199
207
  const handleNewWorktreeSession = (targetFolderId: number, worktreePath: string) =>
@@ -250,6 +258,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
250
258
  onSelectSession={handleSelectSession}
251
259
  onNewSession={handleNewSession}
252
260
  onNewSessionForFolder={handleNewSessionForFolder}
261
+ onOpenWorkspacePanels={handleOpenWorkspacePanels}
253
262
  onNewWorktreeSession={handleNewWorktreeSession}
254
263
  onClose={() => setCurrentScreen('main')}
255
264
  onDesktopToggle={onDesktopToggle}
@@ -46,6 +46,8 @@ interface MobileSessionSidebarProps {
46
46
  onSelectSession: (id: number | string) => void;
47
47
  onNewSession: () => void;
48
48
  onNewSessionForFolder: (folderId: number) => void;
49
+ /** Open this folder's panels under its per-folder workspace session. */
50
+ onOpenWorkspacePanels: (folderId: number) => void;
49
51
  /** Start a chat in a worktree made from this folder. */
50
52
  onNewWorktreeSession?: (folderId: number, worktreePath: string) => void;
51
53
  onClose: () => void;
@@ -74,6 +76,7 @@ export function MobileSessionSidebar({
74
76
  onSelectSession,
75
77
  onNewSession,
76
78
  onNewSessionForFolder,
79
+ onOpenWorkspacePanels,
77
80
  onNewWorktreeSession,
78
81
  onClose,
79
82
  onDesktopToggle,
@@ -191,6 +194,7 @@ export function MobileSessionSidebar({
191
194
  onScheduler={() => setSchedulerOpen(true)}
192
195
  onToggleArchived={handleToggleArchived}
193
196
  onNewSessionForFolder={handleNewSessionForFolderAndClose}
197
+ onOpenWorkspacePanels={onOpenWorkspacePanels}
194
198
  {...(closeAfterWorktree ? { onNewWorktreeSession: closeAfterWorktree } : {})}
195
199
  onToast={pushToast}
196
200
  onArchiveSelected={handleArchiveSelected}
@@ -119,6 +119,7 @@ async function mount(style: 'classic' | 'tabs', railEnabled = true) {
119
119
  onSelectSession: () => {},
120
120
  onNewSession: () => {},
121
121
  onNewSessionForFolder: () => {},
122
+ onOpenWorkspacePanels: () => {},
122
123
  onClose: () => {},
123
124
  // The drawer's `onRefresh` is the WORKSPACE refresh the layout hands
124
125
  // down (`LayoutWrapper` passes `handleWorkspaceChanged`), so counting
@@ -337,7 +338,6 @@ describe('the drawer keeps its title bar and footer in both chromes', () => {
337
338
  expect(container.querySelector('[aria-label="Close sidebar"]')).not.toBeNull();
338
339
  });
339
340
  });
340
-
341
341
  /**
342
342
  * The rail switch is what the style hangs on, exactly as on the desktop: with
343
343
  * no rail there is no strip, so a tab style has nothing to open a view from.
@@ -46,6 +46,7 @@ export interface DrawerBodyProps {
46
46
  onScheduler: () => void;
47
47
  onToggleArchived: () => void;
48
48
  onNewSessionForFolder: (folderId: number) => void;
49
+ onOpenWorkspacePanels: (folderId: number) => void;
49
50
  onNewWorktreeSession?: (folderId: number, worktreePath: string) => void;
50
51
  onToast: (message: string, tone?: ToastTone) => void;
51
52
  onArchiveSelected: () => void;
@@ -68,6 +69,7 @@ export function DrawerBody({
68
69
  onScheduler,
69
70
  onToggleArchived,
70
71
  onNewSessionForFolder,
72
+ onOpenWorkspacePanels,
71
73
  onNewWorktreeSession,
72
74
  onToast,
73
75
  onArchiveSelected,
@@ -132,6 +134,7 @@ export function DrawerBody({
132
134
  onScheduler,
133
135
  onSelectSession: handleSelectSession,
134
136
  onNewSessionForFolder,
137
+ onOpenWorkspacePanels,
135
138
  onNewWorktreeSession,
136
139
  onToast,
137
140
  onCancelWait,
@@ -179,6 +182,7 @@ export function DrawerBody({
179
182
  onSelectWorkspaces={batch.toggleWorkspaceSelection}
180
183
  onSelectSession={handleSelectSession}
181
184
  onNewSessionForFolder={onNewSessionForFolder}
185
+ onOpenWorkspacePanels={onOpenWorkspacePanels}
182
186
  onNewWorktreeSession={onNewWorktreeSession}
183
187
  onToggleFolder={onToggleFolder}
184
188
  onToast={onToast}
@@ -60,6 +60,7 @@ export interface ClassicDrawerProps {
60
60
  onSelectWorkspaces: () => void;
61
61
  onSelectSession: (id: number | string) => void;
62
62
  onNewSessionForFolder: (folderId: number) => void;
63
+ onOpenWorkspacePanels: (folderId: number) => void;
63
64
  onNewWorktreeSession?: (folderId: number, worktreePath: string) => void;
64
65
  onToggleFolder: (folderId: number) => void;
65
66
  onToast: (message: string, type?: ToastTone) => void;
@@ -100,6 +101,7 @@ export function ClassicDrawer({
100
101
  onSelectWorkspaces,
101
102
  onSelectSession,
102
103
  onNewSessionForFolder,
104
+ onOpenWorkspacePanels,
103
105
  onNewWorktreeSession,
104
106
  onToggleFolder,
105
107
  onToast,
@@ -153,6 +155,7 @@ export function ClassicDrawer({
153
155
  sessionStatus={sessionStatus}
154
156
  onSelectSession={onSelectSession}
155
157
  onNewSessionForFolder={onNewSessionForFolder}
158
+ onOpenWorkspacePanels={onOpenWorkspacePanels}
156
159
  onNewWorktreeSession={onNewWorktreeSession}
157
160
  onToggleFolder={onToggleFolder}
158
161
  onToast={onToast}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The phone's classic folder row states the same action order as the modern
8
+ * header: disclosure, workspace panels, new chat, options. A folder button on
9
+ * the wrong side of the chevron is the regression this pins.
10
+ */
11
+
12
+ import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
13
+ import { Window } from 'happy-dom';
14
+ import { h, render } from 'preact';
15
+
16
+ import { MobileSessionCategory } from '@/client/components/mobile/mobile-session-sidebar/Item';
17
+ import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
18
+ import type { WorkspaceFolderData } from '@/shared/types';
19
+
20
+ let container: HTMLElement | undefined;
21
+
22
+ beforeAll(() => {
23
+ installDomGlobals(new Window({ url: 'http://localhost' }));
24
+ });
25
+
26
+ afterAll(() => {
27
+ restoreDomGlobals();
28
+ });
29
+
30
+ function mount(activeSessionId: string | null = null) {
31
+ container = document.body.appendChild(document.createElement('div'));
32
+ const folder = {
33
+ id: 7,
34
+ name: 'kabmo',
35
+ isExpanded: true,
36
+ sessions: [],
37
+ hasMore: false,
38
+ totalSessions: 0,
39
+ } as unknown as WorkspaceFolderData;
40
+ render(
41
+ h(MobileSessionCategory, {
42
+ folder,
43
+ activeSessionId,
44
+ onSelectSession: () => {},
45
+ onNewSessionForFolder: () => {},
46
+ onOpenWorkspacePanels: () => {},
47
+ isExpanded: true,
48
+ onToggleExpand: () => {},
49
+ }),
50
+ container,
51
+ );
52
+ return container;
53
+ }
54
+
55
+ afterEach(() => {
56
+ if (container) render(null, container);
57
+ container?.remove();
58
+ container = undefined;
59
+ });
60
+
61
+ describe('phone classic folder row', () => {
62
+ test('the action cluster is chevron · folder · + · options', () => {
63
+ const host = mount();
64
+ const header = host.querySelector('[data-testid="session-folder"] > div') as HTMLElement;
65
+ const actions = header.lastElementChild as HTMLElement;
66
+ const [count, disclosure, workspace, newChat, options] = Array.from(actions.children) as HTMLElement[];
67
+
68
+ expect(count.textContent?.trim()).toBe('0');
69
+ expect(disclosure.querySelector('svg')).not.toBeNull();
70
+ expect(workspace.getAttribute('aria-label')).toBe('Open workspace panels for kabmo');
71
+ expect(newChat.getAttribute('aria-label')).toBe('New session in kabmo');
72
+ expect(options.querySelector('[aria-label="Options for kabmo"]')).not.toBeNull();
73
+ });
74
+
75
+ test('the folder button looks pressed while this workspace is open', () => {
76
+ const host = mount('workspace-7');
77
+ const header = host.querySelector('[data-testid="session-folder"] > div') as HTMLElement;
78
+ const actions = header.lastElementChild as HTMLElement;
79
+ const workspace = actions.children[2] as HTMLElement;
80
+
81
+ expect(workspace.getAttribute('aria-pressed')).toBe('true');
82
+ expect(workspace.className).toContain('bg-ink/15');
83
+ expect(workspace.className).toContain('shadow-inner');
84
+ });
85
+ });
@@ -1,4 +1,4 @@
1
- import { ChevronDown, ChevronRight, GitBranch, MessageSquare, Plus } from 'lucide-preact';
1
+ import { ChevronDown, ChevronRight, FolderOpen, GitBranch, MessageSquare, Plus } from 'lucide-preact';
2
2
  import { FolderItemMenu } from '@/client/components/mobile/mobile-session-sidebar/ItemMenu';
3
3
  import { useSearchParams } from '@/client/lib/router/search-params';
4
4
  import { MobileSessionRow, MOBILE_BRANCH_STYLE } from '@/client/components/mobile/mobile-session-sidebar/SessionRow';
@@ -7,7 +7,7 @@ import type { BranchControl } from '@/client/components/common/session-branch';
7
7
  import type { ToastTone } from '@/shared/lib/ui/toast-duration';
8
8
  import { buildSessionTree } from '@/shared/lib/workspace/session-tree';
9
9
  import { useWorktreeDialog } from '@/client/components/mobile/mobile-session-sidebar/WorktreeDialog';
10
- import { useShowMore } from '@/client/hooks/ui/show-more';
10
+ import { useSessionListShowMore } from '@/client/hooks/workspace/session-list-limit';
11
11
  import { useExpandedSessions } from '@/client/hooks/workspace/expanded-sessions';
12
12
  import { useWorkspaceFolderActions } from '@/client/hooks/workspace/workspace-folder-actions';
13
13
  import { useSessionDelete } from '@/client/hooks/workspace/session-delete';
@@ -15,6 +15,7 @@ import { SessionDeleteModal } from '@/client/components/common/session-delete-mo
15
15
  import { getProjectIcon } from '@/shared/lib/workspace/project-icon';
16
16
  import { formatFullDate, relativeTimeAgo } from '@/shared/lib/workspace/relative-time';
17
17
  import { isPendingSessionId } from '@kabmo-labs/kabmo-omp/session-core/default-title';
18
+ import { workspaceSessionId } from '@/shared/lib/workspace/workspace-session';
18
19
  import { useSidebarData } from '@/client/hooks/chat/omp/session-list';
19
20
  import type { SessionItemData, WorkspaceFolderData } from '@/shared/types';
20
21
  import type { BatchBinding } from '@/client/components/common/batch-selection/types';
@@ -22,12 +23,15 @@ import { folderBatchState } from '@/client/components/common/batch-selection/fol
22
23
  import { SelectionCheckbox } from '@/client/components/common/batch-selection/SelectionCheckbox';
23
24
  import { SessionRevealRow } from '@/client/components/mobile/mobile-session-sidebar/RevealRow';
24
25
  import { folderGroupGap } from '@/client/components/mobile/mobile-session-sidebar/folder-gap';
26
+ import { PRESSED_TOGGLE_CLASS } from '@/client/lib/ui/pressed';
25
27
 
26
28
  interface MobileSessionCategoryProps {
27
29
  folder: WorkspaceFolderData;
28
30
  activeSessionId: number | string | null;
29
31
  onSelectSession: (id: number | string) => void;
30
32
  onNewSessionForFolder: (folderId: number) => void;
33
+ /** Open this folder's panels under its per-folder workspace session. */
34
+ onOpenWorkspacePanels: (folderId: number) => void;
31
35
  /** Start a chat in a worktree made from this folder. */
32
36
  onNewWorktreeSession?: (folderId: number, worktreePath: string) => void;
33
37
  isExpanded: boolean;
@@ -48,6 +52,7 @@ export function MobileSessionCategory({
48
52
  activeSessionId,
49
53
  onSelectSession,
50
54
  onNewSessionForFolder,
55
+ onOpenWorkspacePanels,
51
56
  onNewWorktreeSession,
52
57
  isExpanded,
53
58
  onToggleExpand,
@@ -58,7 +63,7 @@ export function MobileSessionCategory({
58
63
  onStartSessionSelection,
59
64
  onCancelWait,
60
65
  }: MobileSessionCategoryProps) {
61
- const { visibleCount, showMore, showLess, canShowLess } = useShowMore();
66
+ const { visibleCount, showMore, showLess, canShowLess } = useSessionListShowMore();
62
67
  // The phone's folder row opens the same dialog the desktop one does. Its state
63
68
  // lives in a hook so this row stays under the size ceiling.
64
69
  const worktreeDialog = useWorktreeDialog(folder, (worktreePath) =>
@@ -228,6 +233,28 @@ export function MobileSessionCategory({
228
233
 
229
234
  {!batch && (
230
235
  <>
236
+ <span className="flex items-center justify-center">
237
+ {isExpanded ? <ChevronDown size={14} /> : <ChevronRight size={14} />}
238
+ </span>
239
+
240
+ <button
241
+ type="button"
242
+ onClick={(event) => {
243
+ event.stopPropagation();
244
+ onOpenWorkspacePanels(folder.id);
245
+ }}
246
+ className={`p-1.5 rounded-lg transition-colors ${
247
+ String(activeSessionId) === workspaceSessionId(folder.id)
248
+ ? PRESSED_TOGGLE_CLASS
249
+ : 'hover:bg-ink/10 active:bg-ink/15 text-ink/60 hover:text-ink'
250
+ }`}
251
+ title="Workspace panels"
252
+ aria-label={`Open workspace panels for ${folder.name}`}
253
+ aria-pressed={String(activeSessionId) === workspaceSessionId(folder.id)}
254
+ >
255
+ <FolderOpen size={15} />
256
+ </button>
257
+
231
258
  <button
232
259
  type="button"
233
260
  onClick={(event) => {
@@ -255,17 +282,6 @@ export function MobileSessionCategory({
255
282
  onRequestDelete={requestDelete}
256
283
  onCancelDelete={cancelDelete}
257
284
  />
258
-
259
- {/* The disclosure glyph's BOX ends on the list's content edge — the
260
- same x the toolbar row's last control ends on above it — and its
261
- ink sits 4px inside it (`pr-1`), which is the inset a session
262
- row's `⋯` / roster chevron uses. So the drawer's right column is
263
- one line of INK, not just one line of boxes: measured before, the
264
- folder chevron's ink ran 6px further right than every row glyph
265
- beneath it. */}
266
- <span className="flex items-center justify-center pr-1">
267
- {isExpanded ? <ChevronDown size={14} /> : <ChevronRight size={14} />}
268
- </span>
269
285
  </>
270
286
  )}
271
287
  </div>
@@ -11,6 +11,8 @@ interface MobileSessionListProps {
11
11
  sessionStatus: Record<string, 'stream' | 'finish' | 'abort'>;
12
12
  onSelectSession: (id: number | string) => void;
13
13
  onNewSessionForFolder: (folderId: number) => void;
14
+ /** Open this folder's panels under its per-folder workspace session. */
15
+ onOpenWorkspacePanels: (folderId: number) => void;
14
16
  /** Start a chat in a worktree made from this folder. */
15
17
  onNewWorktreeSession?: (folderId: number, worktreePath: string) => void;
16
18
  onToggleFolder: (folderId: number) => void;
@@ -31,6 +33,7 @@ export function MobileSessionList({
31
33
  sessionStatus,
32
34
  onSelectSession,
33
35
  onNewSessionForFolder,
36
+ onOpenWorkspacePanels,
34
37
  onNewWorktreeSession,
35
38
  onToggleFolder,
36
39
  onToast,
@@ -59,6 +62,7 @@ export function MobileSessionList({
59
62
  activeSessionId={activeSessionId}
60
63
  onSelectSession={onSelectSession}
61
64
  onNewSessionForFolder={onNewSessionForFolder}
65
+ onOpenWorkspacePanels={onOpenWorkspacePanels}
62
66
  onNewWorktreeSession={onNewWorktreeSession}
63
67
  isExpanded={expandedFolders[folder.id] ?? true}
64
68
  onToggleExpand={() => onToggleFolder(folder.id)}
@@ -23,6 +23,7 @@ import { Window } from 'happy-dom';
23
23
  import { applySettingsSideEffects } from '@/client/components/settings/apply-side-effects';
24
24
  import { DEFAULT_SETTINGS } from '@/shared/lib/settings/defaults';
25
25
  import { SIDEBAR_STYLE_CHANGED_EVENT } from '@/client/hooks/workspace/sidebar-style';
26
+ import { SESSION_LIST_LIMIT_CHANGED_EVENT } from '@/client/hooks/workspace/session-list-limit';
26
27
  import { CHANGED_FILES_CHANGED_EVENT } from '@/client/hooks/chat/timeline/changed-files-setting';
27
28
  import { EDITOR_FONT_CHANGED_EVENT } from '@/client/hooks/editor/font';
28
29
  import { RIGHT_SIDE_HIDDEN_SCOPE_CHANGED_EVENT } from '@/client/hooks/workspace/right-side';
@@ -81,6 +82,36 @@ describe('applySettingsSideEffects', () => {
81
82
  expect(seen).toEqual([]);
82
83
  });
83
84
 
85
+ test('announces the session list page size so the open list repaginates', () => {
86
+ const win = installDom();
87
+ const seen: unknown[] = [];
88
+ win.addEventListener(SESSION_LIST_LIMIT_CHANGED_EVENT, (event) =>
89
+ seen.push((event as unknown as CustomEvent).detail),
90
+ );
91
+
92
+ applySettingsSideEffects(
93
+ state({ sidebarSessionLimit: 5 }),
94
+ state({ sidebarSessionLimit: 25 }),
95
+ );
96
+
97
+ expect(seen).toEqual([25]);
98
+ });
99
+
100
+ test('does not announce a page size that did not move', () => {
101
+ const win = installDom();
102
+ const seen: unknown[] = [];
103
+ win.addEventListener(SESSION_LIST_LIMIT_CHANGED_EVENT, (event) =>
104
+ seen.push((event as unknown as CustomEvent).detail),
105
+ );
106
+
107
+ applySettingsSideEffects(
108
+ state({ sidebarSessionLimit: 10 }),
109
+ state({ sidebarSessionLimit: 10 }),
110
+ );
111
+
112
+ expect(seen).toEqual([]);
113
+ });
114
+
84
115
  test('announces the changed-files toggle so the open timeline redraws', () => {
85
116
  const win = installDom();
86
117
  const seen: unknown[] = [];
@@ -35,6 +35,7 @@ import { applyChatWidthMode } from '@/client/hooks/chat/timeline/width-mode';
35
35
  import { applyToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
36
36
  import { applyShowChangedFiles } from '@/client/hooks/chat/timeline/changed-files-setting';
37
37
  import { applySidebarStyle } from '@/client/hooks/workspace/sidebar-style';
38
+ import { applySessionListLimit } from '@/client/hooks/workspace/session-list-limit';
38
39
  import { applyPanelNav } from '@/client/hooks/workspace/panel-nav';
39
40
  import { applyMobilePanelNav } from '@/client/hooks/workspace/mobile-panel-nav';
40
41
  import { applyRightSideHiddenScope } from '@/client/hooks/workspace/right-side';
@@ -106,6 +107,12 @@ export function applySettingsSideEffects(previous: SettingsState, next: Settings
106
107
  applySidebarStyle(next.sidebarStyle);
107
108
  }
108
109
 
110
+ // The page size is a count the open list is currently drawing, so a saved
111
+ // value has to reach the sidebars without a reload.
112
+ if (next.sidebarSessionLimit !== previous.sidebarSessionLimit) {
113
+ applySessionListLimit(next.sidebarSessionLimit);
114
+ }
115
+
109
116
  // A panel column's navigation picks a Preact tree over one column, and both
110
117
  // columns are visible behind this modal — so a change repaints on the click.
111
118
  // Each side is announced separately: one value must not re-mount the other
@@ -89,8 +89,9 @@ export function BorderStyleSection({ settings, onUpdate }: BorderStyleSectionPro
89
89
  <div>
90
90
  <h4 className="text-sm font-semibold text-ink">Rules</h4>
91
91
  <p className="mt-0.5 text-[11px] text-ink/60">
92
- Whether the 1px rules between panels, columns and rows are painted. Controls keep their
93
- edge either way, and so do validation colours, drop zones and the focus ring.
92
+ Whether the 1px rules between panels, columns and rows are painted. The chat transcript
93
+ keeps its own rules, controls keep their edge either way, and so do validation colours,
94
+ drop zones and the focus ring.
94
95
  </p>
95
96
  </div>
96
97
 
@@ -0,0 +1,95 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The Session sidebar section carries a COUNT as well as the two style cards.
8
+ * The count must survive as a number — a cleared field must not write `0`
9
+ * (which would draw an empty workspace) — and must be clamped to the range the
10
+ * sidebar can actually draw.
11
+ */
12
+
13
+ import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
14
+ import { Window } from 'happy-dom';
15
+ import { h, render } from 'preact';
16
+ import { act } from 'preact/test-utils';
17
+
18
+ import { SidebarStyleSection } from '@/client/components/settings/categories/appearance-settings/SidebarStyleSection';
19
+ import { DEFAULT_SETTINGS } from '@/shared/lib/settings/defaults';
20
+ import type { SettingsState } from '@/shared/types';
21
+ import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
22
+
23
+ let container: HTMLElement | null = null;
24
+ let lastUpdate: Partial<SettingsState> | null = null;
25
+
26
+ beforeAll(() => {
27
+ installDomGlobals(new Window({ url: 'http://localhost' }));
28
+ });
29
+
30
+ afterEach(() => {
31
+ if (container) render(null, container);
32
+ container?.remove();
33
+ container = null;
34
+ lastUpdate = null;
35
+ });
36
+
37
+ afterAll(() => {
38
+ restoreDomGlobals();
39
+ });
40
+
41
+ function mount(limit = 10): HTMLInputElement {
42
+ container = document.body.appendChild(document.createElement('div'));
43
+ const onUpdate = (patch: Partial<SettingsState>) => {
44
+ lastUpdate = patch;
45
+ };
46
+ act(() => {
47
+ render(
48
+ h(SidebarStyleSection, {
49
+ settings: { ...DEFAULT_SETTINGS, sidebarSessionLimit: limit },
50
+ onUpdate: onUpdate as (
51
+ updater: Partial<SettingsState> | ((previous: SettingsState) => SettingsState),
52
+ ) => void,
53
+ }),
54
+ container as HTMLElement,
55
+ );
56
+ });
57
+ const input = container.querySelector('input[type="number"]');
58
+ if (!input) throw new Error('session count input missing');
59
+ return input as HTMLInputElement;
60
+ }
61
+
62
+ function type(input: HTMLInputElement, value: string) {
63
+ input.value = value;
64
+ act(() => {
65
+ input.dispatchEvent(new Event('input', { bubbles: true }));
66
+ });
67
+ }
68
+
69
+ describe('sidebar session count', () => {
70
+ test('renders the stored count and writes a valid number', () => {
71
+ const input = mount(10);
72
+ expect(input.value).toBe('10');
73
+
74
+ type(input, '25');
75
+ expect(lastUpdate).toEqual({ sidebarSessionLimit: 25 });
76
+ });
77
+
78
+ test('clamps a count below the floor and above the ceiling', () => {
79
+ const input = mount(10);
80
+
81
+ type(input, '0');
82
+ expect(lastUpdate).toEqual({ sidebarSessionLimit: 1 });
83
+
84
+ type(input, '999');
85
+ expect(lastUpdate).toEqual({ sidebarSessionLimit: 100 });
86
+ });
87
+
88
+ test('an empty field writes nothing', () => {
89
+ const input = mount(10);
90
+
91
+ type(input, '');
92
+
93
+ expect(lastUpdate).toBeNull();
94
+ });
95
+ });
@@ -27,6 +27,11 @@ import {
27
27
  resolveSidebarStyle,
28
28
  type SidebarStyle,
29
29
  } from '@/shared/lib/workspace/sidebar-style';
30
+ import {
31
+ MAX_SESSION_LIST_LIMIT,
32
+ MIN_SESSION_LIST_LIMIT,
33
+ resolveSessionListLimit,
34
+ } from '@/shared/lib/workspace/session-list-limit';
30
35
 
31
36
  interface SidebarStyleSectionProps {
32
37
  settings: SettingsState;
@@ -105,6 +110,15 @@ const MINIATURES: Record<SidebarStyle, ComponentType> = {
105
110
 
106
111
  export function SidebarStyleSection({ settings, onUpdate }: SidebarStyleSectionProps) {
107
112
  const selected = resolveSidebarStyle(settings.sidebarStyle);
113
+ const sessionLimit = resolveSessionListLimit(settings.sidebarSessionLimit);
114
+
115
+ const changeSessionLimit = (raw: string) => {
116
+ if (raw.trim() === '') return;
117
+ const parsed = Number(raw);
118
+ if (!Number.isFinite(parsed)) return;
119
+ const next = resolveSessionListLimit(parsed);
120
+ if (next !== sessionLimit) onUpdate({ sidebarSessionLimit: next });
121
+ };
108
122
 
109
123
  return (
110
124
  <section className="space-y-3">
@@ -152,6 +166,27 @@ export function SidebarStyleSection({ settings, onUpdate }: SidebarStyleSectionP
152
166
  );
153
167
  })}
154
168
  </div>
169
+
170
+ <label className="flex items-center justify-between gap-3 rounded-xl border border-ink/15 bg-paper p-2.5">
171
+ <span className="min-w-0">
172
+ <span className="block text-xs font-semibold text-ink">Sessions per workspace</span>
173
+ <span className="mt-0.5 block text-[11px] leading-relaxed text-ink/60">
174
+ How many sessions each workspace lists first; the current sort decides which ones.
175
+ “Show more” reveals another {sessionLimit}. {MIN_SESSION_LIST_LIMIT}–
176
+ {MAX_SESSION_LIST_LIMIT}.
177
+ </span>
178
+ </span>
179
+ <input
180
+ type="number"
181
+ min={MIN_SESSION_LIST_LIMIT}
182
+ max={MAX_SESSION_LIST_LIMIT}
183
+ step={1}
184
+ value={sessionLimit}
185
+ onInput={(event) => changeSessionLimit(event.currentTarget.value)}
186
+ aria-label="Sessions shown per workspace"
187
+ className="h-8 w-16 shrink-0 rounded-md border border-ink/20 bg-paper px-2 text-right font-mono text-xs text-ink focus:border-ink/40 focus:outline-none"
188
+ />
189
+ </label>
155
190
  </section>
156
191
  );
157
192
  }
@@ -245,6 +245,7 @@ export function EmptyWorkspacePrompt({
245
245
 
246
246
  return (
247
247
  <div
248
+ data-chat-timeline=""
248
249
  className={`relative flex flex-col h-full bg-canvas ${docked ? '' : isMobile ? 'px-3 py-4' : 'p-8'} ${className}`}
249
250
  style={!docked && isMobile ? { paddingBottom: 'max(1rem, env(safe-area-inset-bottom, 0px))' } : undefined}
250
251
  >
@@ -22,6 +22,7 @@ import { h, render } from 'preact';
22
22
  import { act } from 'preact/test-utils';
23
23
  import { ChatMessageItem } from '@/client/components/workspace/chat-timeline/MessageItem';
24
24
  import { SessionStateProvider } from '@/client/components/common/session-state-provider';
25
+ import { primeKabmoSettings } from '@/shared/lib/settings/client';
25
26
  import type { ChatMessageData } from '@/shared/types';
26
27
 
27
28
  const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'HTMLInputElement', 'Event', 'MouseEvent', 'KeyboardEvent'] as const;
@@ -53,6 +54,8 @@ beforeEach(() => {
53
54
  if (container) render(null, container);
54
55
  container?.remove();
55
56
  container = null;
57
+ // A suite that primes `tui` must not leave the next file drawing that style.
58
+ primeKabmoSettings({});
56
59
  });
57
60
 
58
61
  /** A user row, and an AI row carrying one tool call — the two framed blocks. */
@@ -119,4 +122,27 @@ describe('transcript block gutter', () => {
119
122
  const desktopSection = desktop.querySelector('[data-tool-section]') as HTMLElement;
120
123
  expect(desktopSection.className).toContain('mx-3');
121
124
  });
125
+
126
+ test('in tui the answer shares the tool row’s edge, on the phone and on desktop', async () => {
127
+ primeKabmoSettings({ kabmo_settings: { toolRenderStyle: 'tui' } });
128
+
129
+ const phone = await mount(toolRow, true);
130
+ const phoneAnswer = phone.querySelector('div.bg-transparent') as HTMLElement;
131
+ // The section adds no gutter on a phone; the TUI row itself starts at
132
+ // `px-1`, so the answer must carry exactly that.
133
+ expect(phone.querySelector('[data-tool-section]')?.className).not.toContain('mx-3');
134
+ expect(phoneAnswer.className).toContain('px-1');
135
+ expect(phoneAnswer.className).not.toContain('px-3');
136
+ render(null, phone);
137
+ phone.remove();
138
+
139
+ const desktop = await mount(toolRow, false);
140
+ const desktopAnswer = desktop.querySelector('div.bg-transparent') as HTMLElement;
141
+ // Desktop insets the section by `mx-3`, so the answer takes the same inset
142
+ // plus the row's `px-1` — the row's visible left edge, not the prose column.
143
+ expect(desktop.querySelector('[data-tool-section]')?.className).toContain('mx-3');
144
+ expect(desktopAnswer.className).toContain('mx-3');
145
+ expect(desktopAnswer.className).toContain('px-1');
146
+ expect(desktopAnswer.className).not.toContain('px-3');
147
+ });
122
148
  });
@@ -12,7 +12,7 @@ import { UserTurn } from '@/client/components/workspace/chat-timeline/UserTurn';
12
12
  import { capitalizeFirstLetter } from '@/shared/lib/chat/capitalize';
13
13
  import { isNoticeRow, messageAnswerText } from '@kabmo-labs/kabmo-chat/notices/notice-row';
14
14
  import { transcriptGutter } from '@/shared/lib/chat/timeline/gutter';
15
- import { traceInset } from '@/shared/lib/chat/timeline/block-chrome';
15
+ import { proseInset, traceInset } from '@/shared/lib/chat/timeline/block-chrome';
16
16
  import { useToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
17
17
 
18
18
  interface ChatMessageItemProps {
@@ -120,6 +120,9 @@ export const ChatMessageItem = memo(function ChatMessageItem({
120
120
  const mode = useToolRenderMode();
121
121
  const textInset = traceInset(mode, isMobile);
122
122
  const boxInset = traceInset(mode, isMobile, true);
123
+ // The answer shares the tool row's left edge in `tui`; every framed style
124
+ // keeps its own `px-3` column — see `proseInset`.
125
+ const answerPad = proseInset(mode, isMobile);
123
126
 
124
127
  return (
125
128
  <div
@@ -182,14 +185,14 @@ export const ChatMessageItem = memo(function ChatMessageItem({
182
185
 
183
186
  {/* Main AI Response Content (Rich Markdown with code blocks, tables, lists) rendered before tool calls */}
184
187
  {hasRenderableContent && (
185
- <div className={`text-[13px] text-ink leading-relaxed font-sans bg-transparent px-3 py-1 select-text ${textInset}`}>
188
+ <div className={`text-[13px] text-ink leading-relaxed font-sans bg-transparent ${answerPad} py-1 select-text ${textInset}`}>
186
189
  <MarkdownRenderer content={assistantContent} sessionId={sessionId} />
187
190
  </div>
188
191
  )}
189
192
 
190
193
  {/* Tool Call Intent (rendered standalone only when there are no tool calls to absorb it as title) */}
191
194
  {cleanIntent && !hasToolCalls && (!hasRenderableContent || !msg.content.toLowerCase().includes(msg.intent.toLowerCase().trim())) && (
192
- <div className={`leading-relaxed font-sans px-3 select-text ${textInset} ${
195
+ <div className={`leading-relaxed font-sans ${answerPad} select-text ${textInset} ${
193
196
  hasRenderableContent
194
197
  ? 'text-[12px] text-ink/70 py-0.5'
195
198
  : 'text-[13px] text-ink py-1'