@kabmo-labs/kabmo 0.41.0 → 0.42.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 (305) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +533 -518
  3. package/dist/client/static/js/{CsvGrid-60njj97j.js → CsvGrid-20k047ht.js} +2 -2
  4. package/dist/client/static/js/{DocxView-rsv0j46a.js → DocxView-qpvhfcmg.js} +5 -5
  5. package/dist/client/static/js/{DrawioView-n2g5df3a.js → DrawioView-178skky8.js} +2 -2
  6. package/dist/client/static/js/ImageView-460th5qa.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-5cv0dty8.js +2 -0
  8. package/dist/client/static/js/Modal-wks6p4r5.js +38 -0
  9. package/dist/client/static/js/{PdfView-1r7a0qkp.js → PdfView-y51g03nr.js} +1 -1
  10. package/dist/client/static/js/SessionsView-rsmvn7ks.js +1 -0
  11. package/dist/client/static/js/{SheetView-bt5pp042.js → SheetView-z7yvb05v.js} +25 -25
  12. package/dist/client/static/js/{SvgPreview-vfmqgmrx.js → SvgPreview-yehgzhem.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-8k5hk1yx.js → abnfDiagram-O67JEVCF-6zxpcy8b.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-9q06651f.js +1 -0
  15. package/dist/client/static/js/architectureDiagram-NJMV4G6O-m98sgh3c.js +36 -0
  16. package/dist/client/static/js/{astro-0rh34hha.js → astro-nn7xg0we.js} +1 -1
  17. package/dist/client/static/js/bash-fjzhxy10.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-04sbtdth.js → blockDiagram-BEXU5L5S-cp7rervg.js} +5 -5
  19. package/dist/client/static/js/c-wqtyezvw.js +1 -0
  20. package/dist/client/static/js/c4Diagram-YGBWAQC7-t31recqm.js +38 -0
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-18cc0bsb.js → classDiagram-v2-NBCMYWYE-fy8x3dkx.js} +5 -5
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-dk683zvp.js → cose-bilkent-JH36ORCC-va7ybm9e.js} +1 -1
  23. package/dist/client/static/js/cpp-y0nzwner.js +1 -0
  24. package/dist/client/static/js/css-a13jmmnc.js +1 -0
  25. package/dist/client/static/js/css-n2waj098.js +1 -0
  26. package/dist/client/static/js/cynefin-OW5HDTMX-w7a38g4g.js +1 -0
  27. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-m2sx8d8s.js → cynefinDiagram-VND7K2PF-4k0k429c.js} +2 -2
  28. package/dist/client/static/js/{dagre-6A5THRUB-qf3pr59p.js → dagre-6A5THRUB-ykdhxq6t.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-twnz23mt.js → diagram-22UHCM2B-5nvwx7b6.js} +8 -8
  30. package/dist/client/static/js/{diagram-3UASUU5V-417bas6t.js → diagram-3UASUU5V-hc7zsjgw.js} +1 -1
  31. package/dist/client/static/js/diagram-ATOU4E4O-97ae07y7.js +3 -0
  32. package/dist/client/static/js/diagram-CDSNMT55-b56nnbbs.js +30 -0
  33. package/dist/client/static/js/{diagram-MLGK6HIB-7a0h1hs3.js → diagram-MLGK6HIB-37rygr9k.js} +1 -1
  34. package/dist/client/static/js/{diagram-MPIPVDR6-w75bftmd.js → diagram-MPIPVDR6-wv3vhhfk.js} +2 -2
  35. package/dist/client/static/js/{dockerfile-g5qbaeq3.js → dockerfile-0efb1z6e.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-vdzm3tsv.js → ebnfDiagram-ZINNZB2B-13fv7vxg.js} +1 -1
  37. package/dist/client/static/js/{elixir-gpez1k9m.js → elixir-mabagxwa.js} +1 -1
  38. package/dist/client/static/js/{elk-276RUBZZ-2fsbb484.js → elk-276RUBZZ-xam60ktz.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-vnkztq7d.js → erDiagram-OPXOYQCR-24ctv2ee.js} +6 -6
  40. package/dist/client/static/js/{erlang-jqqa3ehb.js → erlang-zwy7cqdk.js} +1 -1
  41. package/dist/client/static/js/eventmodeling-NTZA5JFV-6wrjccyw.js +1 -0
  42. package/dist/client/static/js/flowDiagram-KWPJA3E3-19vjkg84.js +1 -0
  43. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-pbvcch52.js → ganttDiagram-FUAMR5RP-766a8fqw.js} +2 -2
  44. package/dist/client/static/js/gitGraph-4MIJSDKK-4je2p50v.js +1 -0
  45. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-dkvktvzr.js → gitGraphDiagram-X574FWY7-fmwjkgh6.js} +2 -2
  46. package/dist/client/static/js/graphql-gvb7e2eb.js +1 -0
  47. package/dist/client/static/js/html-bwyt0ayy.js +1 -0
  48. package/dist/client/static/js/{index-rc8wrs2a.js → index-03pyvmcz.js} +2 -2
  49. package/dist/client/static/js/index-13dr1t1r.js +314 -0
  50. package/dist/client/static/js/{index-rebnv57p.js → index-13xbwcbz.js} +2 -2
  51. package/dist/client/static/js/{index-pbsm2vw7.js → index-1c0pnsjd.js} +2 -2
  52. package/dist/client/static/js/index-1rxa9zxp.js +1 -0
  53. package/dist/client/static/js/{index-c6kx7s6a.js → index-2hpy58d0.js} +2 -2
  54. package/dist/client/static/js/{index-f8pq132s.js → index-2x9eqztp.js} +1 -1
  55. package/dist/client/static/js/{index-pn91shfp.js → index-4cncqz8j.js} +2 -2
  56. package/dist/client/static/js/index-4j8rgr4p.js +1 -0
  57. package/dist/client/static/js/{index-x2kb1kx5.js → index-4mstdh41.js} +3 -3
  58. package/dist/client/static/js/index-4z4ax55k.js +12 -0
  59. package/dist/client/static/js/{index-55hq7tnj.js → index-6ge6gk9w.js} +1 -1
  60. package/dist/client/static/js/{index-re1xz433.js → index-7t63akyt.js} +1 -1
  61. package/dist/client/static/js/{index-zye9309h.js → index-8b3t2y77.js} +2 -2
  62. package/dist/client/static/js/index-8hgm0abr.js +474 -0
  63. package/dist/client/static/js/index-8jqawh3r.js +2 -0
  64. package/dist/client/static/js/index-95en3p3g.js +9 -0
  65. package/dist/client/static/js/{index-rdqn92tc.js → index-97qst4k9.js} +2 -2
  66. package/dist/client/static/js/{index-xfa5hswh.js → index-9vdbnvmk.js} +1 -1
  67. package/dist/client/static/js/{index-zfykeg7x.js → index-a9t9gdew.js} +9 -9
  68. package/dist/client/static/js/{index-ds6a2cx7.js → index-b4y5g48d.js} +5 -5
  69. package/dist/client/static/js/{index-hz177dr2.js → index-czagykbq.js} +2 -2
  70. package/dist/client/static/js/{index-yq9vnd1y.js → index-dfqmwm7j.js} +2 -2
  71. package/dist/client/static/js/{index-tgper3yy.js → index-dydwcp3n.js} +2 -2
  72. package/dist/client/static/js/{index-0c6vpk89.js → index-e1yz59fa.js} +2 -2
  73. package/dist/client/static/js/{index-ce4vytm6.js → index-e6any867.js} +2 -2
  74. package/dist/client/static/js/{index-j5ram1ve.js → index-ejdnjh5c.js} +2 -2
  75. package/dist/client/static/js/index-f4vr1c6e.css +1 -0
  76. package/dist/client/static/js/{index-cytks03p.js → index-feffxxss.js} +2 -2
  77. package/dist/client/static/js/{index-6fx2t6y7.js → index-grczkttn.js} +12 -12
  78. package/dist/client/static/js/{index-s78n0dtv.js → index-hga3e13s.js} +2 -2
  79. package/dist/client/static/js/{index-ajjq0b8y.js → index-hw14rhen.js} +2 -2
  80. package/dist/client/static/js/index-hzwr5fm9.js +4 -0
  81. package/dist/client/static/js/{index-sj4y8kj2.js → index-j17h4z6f.js} +2 -2
  82. package/dist/client/static/js/{index-a4ed3mks.js → index-ka2rc2cr.js} +5 -5
  83. package/dist/client/static/js/{index-djv15k5s.js → index-ktbrmp29.js} +2 -2
  84. package/dist/client/static/js/{index-3rymer2w.js → index-nbexks3x.js} +1 -1
  85. package/dist/client/static/js/{index-ngk9h0v9.js → index-nh29fkk9.js} +2 -2
  86. package/dist/client/static/js/{index-gn92c6hp.js → index-p0ez6hqd.js} +2 -2
  87. package/dist/client/static/js/{index-e7yf273s.js → index-pkes9492.js} +2 -2
  88. package/dist/client/static/js/{index-fg965t62.js → index-pysqpc5n.js} +2 -2
  89. package/dist/client/static/js/index-qj34r6d0.js +1 -0
  90. package/dist/client/static/js/{index-ntcqyqd5.js → index-qx6x4z0y.js} +2 -2
  91. package/dist/client/static/js/{index-agdbjh5k.js → index-r8cc80w5.js} +2 -2
  92. package/dist/client/static/js/{index-9dnkfpx4.js → index-rab39785.js} +2 -2
  93. package/dist/client/static/js/{index-haaz8t7e.js → index-sk9ej289.js} +2 -2
  94. package/dist/client/static/js/{index-9fnzcg2x.js → index-sq3r1xhf.js} +2 -2
  95. package/dist/client/static/js/{index-pfbyfab5.js → index-sx809d6d.js} +2 -2
  96. package/dist/client/static/js/{index-7w3gqw2b.js → index-sz3mxjvy.js} +1 -1
  97. package/dist/client/static/js/{index-4jk8ngjg.js → index-tqycj126.js} +2 -2
  98. package/dist/client/static/js/{index-0xaz2eyv.js → index-vcn1kcpy.js} +3 -3
  99. package/dist/client/static/js/{index-2z9wrb46.js → index-x7f5ysch.js} +2 -2
  100. package/dist/client/static/js/index-xe5cqwnf.js +1 -0
  101. package/dist/client/static/js/index-xxe52zrm.js +2 -0
  102. package/dist/client/static/js/{index-amawahyh.js → index-yvxa7hd8.js} +2 -2
  103. package/dist/client/static/js/{index-e6qjfcz9.js → index-z6kpc98a.js} +1 -1
  104. package/dist/client/static/js/{index-yzg9mbsv.js → index-zjydzxhm.js} +1 -1
  105. package/dist/client/static/js/{index-ne131hmw.js → index-zvazj4va.js} +2 -2
  106. package/dist/client/static/js/info-A6RAGUB7-k0z5qdew.js +1 -0
  107. package/dist/client/static/js/{infoDiagram-VRGFBTTK-mh6yks62.js → infoDiagram-VRGFBTTK-tqytmzp1.js} +1 -1
  108. package/dist/client/static/js/ini-2gvjwh83.js +1 -0
  109. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-hnfqppnv.js → ishikawaDiagram-OU5B5YK6-rp77ff6m.js} +1 -1
  110. package/dist/client/static/js/java-1xwcq79s.js +1 -0
  111. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-s4nv1f3q.js → journeyDiagram-ZHPQQLJL-c7bxrhf1.js} +2 -2
  112. package/dist/client/static/js/json-4pqjabgq.js +1 -0
  113. package/dist/client/static/js/jsx-wcsss15s.js +1 -0
  114. package/dist/client/static/js/{julia-yre4bxb9.js → julia-2eekpjq8.js} +1 -1
  115. package/dist/client/static/js/{kanban-definition-PNTS6WVX-t8kbfefp.js → kanban-definition-PNTS6WVX-j2pxewqq.js} +5 -5
  116. package/dist/client/static/js/lua-h7vjcn0h.js +1 -0
  117. package/dist/client/static/js/markdown-f30jjjh9.js +1 -0
  118. package/dist/client/static/js/{mermaid.core-0784021p.js → mermaid.core-cqqe1krg.js} +6 -6
  119. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-swkkze8c.js → mindmap-definition-NLK3R4M7-s03k32p9.js} +5 -5
  120. package/dist/client/static/js/one-dark-pro-9tt0a020.js +1 -0
  121. package/dist/client/static/js/one-light-5fg4r0ra.js +1 -0
  122. package/dist/client/static/js/packet-AYTQ26CC-6cnvmb2z.js +1 -0
  123. package/dist/client/static/js/{pegDiagram-GJSIUBJH-jqayzh7z.js → pegDiagram-GJSIUBJH-dfg2j0zc.js} +1 -1
  124. package/dist/client/static/js/{perl-weeskn1v.js → perl-5vxax0nr.js} +1 -1
  125. package/dist/client/static/js/{php-vf3045p9.js → php-hgrgdq63.js} +1 -1
  126. package/dist/client/static/js/pie-WAS4IAKB-m9z1mztn.js +1 -0
  127. package/dist/client/static/js/{pieDiagram-5QR66LMP-w03a65ky.js → pieDiagram-5QR66LMP-pshd1j79.js} +1 -1
  128. package/dist/client/static/js/properties-ymexza6q.js +1 -0
  129. package/dist/client/static/js/python-31ycwa66.js +1 -0
  130. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-2j7sfa9s.js → quadrantDiagram-O4NWA36T-cvvvmtk2.js} +4 -4
  131. package/dist/client/static/js/r-t2nne4xp.js +1 -0
  132. package/dist/client/static/js/radar-RG4KPBEZ-8m9rkex6.js +1 -0
  133. package/dist/client/static/js/railroad-74A4TZTK-wc55emj8.js +1 -0
  134. package/dist/client/static/js/railroad-abnf-HS5TGJTU-2y2rnrzq.js +1 -0
  135. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-zzcc9x0v.js +1 -0
  136. package/dist/client/static/js/railroad-peg-WCYAUIDC-z82na5nb.js +1 -0
  137. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-jtkkgy34.js → railroadDiagram-XR7U4H2S-h53p3sha.js} +1 -1
  138. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-t85ckjdb.js → requirementDiagram-PLB6GJNP-bdv2fkxd.js} +4 -4
  139. package/dist/client/static/js/{ruby-1a2ryzy6.js → ruby-8pxcn21w.js} +1 -1
  140. package/dist/client/static/js/{rust-736r0f0v.js → rust-j80dxgjg.js} +1 -1
  141. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-5pfkw8ne.js → sankeyDiagram-IPEJSGJF-xqnnvmhy.js} +2 -2
  142. package/dist/client/static/js/{sass-tq4vw7hd.js → sass-bm32bb5k.js} +1 -1
  143. package/dist/client/static/js/{scss-x7ddw6gb.js → scss-e2dndbfa.js} +1 -1
  144. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-55vs9zv5.js → sequenceDiagram-PO4LG4MO-3p67305f.js} +10 -10
  145. package/dist/client/static/js/{sizeCapture-INFHLROL-pzqqd7f4.js → sizeCapture-INFHLROL-f87525h7.js} +1 -1
  146. package/dist/client/static/js/sql-bwnasywx.js +1 -0
  147. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-6nhrph8n.js → stateDiagram-v2-GCMORJYK-e5st1fy3.js} +6 -6
  148. package/dist/client/static/js/{svelte-0hv6pak2.js → svelte-ztkaww47.js} +1 -1
  149. package/dist/client/static/js/{swimlanes-2SLR337P-6tcnxfbv.js → swimlanes-2SLR337P-ceghkbez.js} +1 -1
  150. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-vc8hvfya.js +8 -0
  151. package/dist/client/static/js/{timeline-definition-EJHVYXUP-1dz46nt5.js → timeline-definition-EJHVYXUP-f7evs443.js} +2 -2
  152. package/dist/client/static/js/treeView-Q6P3EWNA-kzh6cm3f.js +1 -0
  153. package/dist/client/static/js/treemap-WGGIJYW6-wz5ed560.js +1 -0
  154. package/dist/client/static/js/tsx-zfy727zs.js +1 -0
  155. package/dist/client/static/js/typescript-p3syh43m.js +1 -0
  156. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-b3jfveq6.js → usecaseDiagram-POWQR4AR-0gpn21p7.js} +27 -27
  157. package/dist/client/static/js/{vennDiagram-UO4OBE2U-dnc3jqvp.js → vennDiagram-UO4OBE2U-4spzy428.js} +1 -1
  158. package/dist/client/static/js/{vue-zccj3qa5.js → vue-xm1dxpmy.js} +1 -1
  159. package/dist/client/static/js/wardley-WFR3VGLG-zewbfccz.js +1 -0
  160. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-466m8400.js → wardleyDiagram-VNRHLVJA-745xr2pa.js} +4 -4
  161. package/dist/client/static/js/xml-4enq788a.js +1 -0
  162. package/dist/client/static/js/xychartDiagram-PMCCYNJV-7dr9qwx5.js +7 -0
  163. package/dist/client/static/js/yaml-pjtt3jsc.js +1 -0
  164. package/package.json +1 -1
  165. package/src/client/components/common/batch-selection/folder-state.ts +2 -2
  166. package/src/client/components/common/server-control/Panel.tsx +16 -5
  167. package/src/client/components/common/server-control/index.test.tsx +63 -9
  168. package/src/client/components/common/session-row/TrailingSlot.tsx +8 -0
  169. package/src/client/components/common/session-row/index.tsx +16 -9
  170. package/src/client/components/layout/session-sidebar/CategoryItem.tsx +1 -1
  171. package/src/client/components/layout/session-sidebar/ClassicView.tsx +13 -0
  172. package/src/client/components/layout/session-sidebar/HarnessFilter.tsx +175 -0
  173. package/src/client/components/layout/session-sidebar/SessionList.tsx +9 -1
  174. package/src/client/components/layout/session-sidebar/SessionsView.tsx +6 -0
  175. package/src/client/components/layout/session-sidebar/harness-filter.test.tsx +173 -0
  176. package/src/client/components/layout/session-sidebar/modern/FilterChips.tsx +63 -18
  177. package/src/client/components/layout/session-sidebar/modern/SearchField.tsx +1 -1
  178. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +21 -12
  179. package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +1 -1
  180. package/src/client/components/layout/session-sidebar/modern/index.tsx +11 -2
  181. package/src/client/components/layout/session-sidebar/modern/search-field.test.tsx +96 -0
  182. package/src/client/components/layout/session-sidebar/session-list-states.test.tsx +3 -0
  183. package/src/client/components/layout/session-sidebar/variant-props.ts +7 -0
  184. package/src/client/components/mobile/SessionSidebar.tsx +14 -25
  185. package/src/client/components/mobile/mobile-session-sidebar/ClassicDrawer.tsx +19 -0
  186. package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +1 -1
  187. package/src/client/components/settings/categories/omp-settings/EngineHeader.tsx +1 -1
  188. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.image.test.ts +147 -0
  189. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.test.ts +51 -83
  190. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.tsx +44 -63
  191. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ReadDirectory.tsx +72 -0
  192. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ReadImage.tsx +51 -0
  193. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/read-test-util.ts +91 -0
  194. package/src/client/components/workspace/git-panel/commit-modal/CommitRow.test.ts +80 -62
  195. package/src/client/components/workspace/git-panel/commit-modal/CommitRow.tsx +15 -33
  196. package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +1 -1
  197. package/src/client/components/workspace/terminal-panel/copy.test.ts +179 -0
  198. package/src/client/components/workspace/terminal-panel/copy.ts +76 -0
  199. package/src/client/components/workspace/terminal-panel/mount.ts +13 -0
  200. package/src/client/data/settings/omp-schema.json +39 -18
  201. package/src/client/hooks/chat/omp/pending-child.test.ts +1 -1
  202. package/src/client/hooks/chat/omp/session-sidebar-controller.test.ts +61 -0
  203. package/src/client/hooks/chat/omp/session-sidebar-controller.ts +37 -39
  204. package/src/client/hooks/chat/omp/sidebar-filter.ts +62 -0
  205. package/src/client/hooks/chat/timeline/session-changes.test.ts +85 -0
  206. package/src/client/hooks/chat/timeline/session-changes.ts +8 -5
  207. package/src/client/hooks/shell/servers.ts +60 -2
  208. package/src/client/hooks/ui/updates/mobile-flow.ts +56 -0
  209. package/src/client/tailwind.css +58 -0
  210. package/src/server/lib/harness/acp/commands.test.ts +1 -0
  211. package/src/server/lib/harness/acp/commands.ts +12 -4
  212. package/src/server/lib/harness/acp/replay-transcript.ts +32 -13
  213. package/src/server/lib/harness/acp/session-transcript.server.test.ts +162 -0
  214. package/src/server/lib/harness/acp/session-transcript.server.ts +350 -0
  215. package/src/server/lib/harness/acp/session.ts +6 -1
  216. package/src/server/lib/harness/schema.server.ts +18 -0
  217. package/src/server/lib/harness/spawn.server.ts +14 -1
  218. package/src/server/lib/models/provider-icon-fetch.ts +2 -2
  219. package/src/server/lib/models/provider-icon-parse.test.ts +0 -12
  220. package/src/server/lib/models/provider-icon-parse.ts +0 -8
  221. package/src/server/lib/omp/rpc/frame-fold.test.ts +16 -1
  222. package/src/server/lib/omp/rpc/frame-fold.ts +17 -4
  223. package/src/server/lib/omp/session/blobs.server.test.ts +34 -0
  224. package/src/server/lib/omp/session/blobs.server.ts +8 -3
  225. package/src/server/lib/omp/session/delete.server.ts +4 -0
  226. package/src/server/lib/omp/session/sidebar-activity.server.test.ts +2 -1
  227. package/src/server/routes/agent/harness-command.test.ts +71 -0
  228. package/src/server/routes/agent/harness-command.ts +27 -13
  229. package/src/server/routes/chat/imported.ts +5 -2
  230. package/src/server/routes/chat/live-meta.ts +42 -0
  231. package/src/server/routes/chat/session.test.ts +110 -0
  232. package/src/server/routes/chat/session.ts +31 -34
  233. package/src/shared/lib/chat/transcript-rows.ts +22 -0
  234. package/src/shared/lib/fs/file-kind.test.ts +46 -3
  235. package/src/shared/lib/fs/file-kind.ts +40 -9
  236. package/src/shared/lib/omp/config/schema-releases.test.ts +29 -0
  237. package/src/shared/lib/workspace/harness-filter.test.ts +89 -0
  238. package/src/shared/lib/workspace/harness-filter.ts +75 -0
  239. package/src/{client/lib → shared/lib/workspace}/session-tree.test.ts +1 -1
  240. package/src/shared/lib/workspace/session-visibility.test.ts +71 -0
  241. package/src/shared/lib/workspace/session-visibility.ts +48 -23
  242. package/src/shared/lib/workspace/sidebar-filter-row.test.ts +64 -23
  243. package/src/shared/lib/workspace/sidebar-filter-row.ts +89 -31
  244. package/dist/client/static/js/ImageView-t330jx6y.js +0 -1
  245. package/dist/client/static/js/LayoutWrapper-qp6nsw65.js +0 -2
  246. package/dist/client/static/js/Modal-sbya4ahp.js +0 -38
  247. package/dist/client/static/js/SessionsView-yqs5m8tj.js +0 -1
  248. package/dist/client/static/js/architecture-7GRP2DOG-1wqga929.js +0 -1
  249. package/dist/client/static/js/architectureDiagram-NJMV4G6O-7jcb7fgy.js +0 -36
  250. package/dist/client/static/js/bash-vv2ysp0a.js +0 -1
  251. package/dist/client/static/js/c-67jyc7sg.js +0 -1
  252. package/dist/client/static/js/c4Diagram-YGBWAQC7-vwac9za0.js +0 -38
  253. package/dist/client/static/js/cpp-crfbnwv8.js +0 -1
  254. package/dist/client/static/js/css-2re5mbea.js +0 -1
  255. package/dist/client/static/js/css-983fbv00.js +0 -1
  256. package/dist/client/static/js/cynefin-OW5HDTMX-j2dpdgkh.js +0 -1
  257. package/dist/client/static/js/diagram-ATOU4E4O-n63cpdnx.js +0 -3
  258. package/dist/client/static/js/diagram-CDSNMT55-v86p14dd.js +0 -30
  259. package/dist/client/static/js/eventmodeling-NTZA5JFV-xjvjawd3.js +0 -1
  260. package/dist/client/static/js/flowDiagram-KWPJA3E3-j21f2bfg.js +0 -1
  261. package/dist/client/static/js/gitGraph-4MIJSDKK-r0zbk95f.js +0 -1
  262. package/dist/client/static/js/graphql-npbd9fdx.js +0 -1
  263. package/dist/client/static/js/html-1cpe2xc8.js +0 -1
  264. package/dist/client/static/js/index-1sw00wm0.js +0 -2
  265. package/dist/client/static/js/index-7fwppdkn.js +0 -1
  266. package/dist/client/static/js/index-ae91g8ka.js +0 -9
  267. package/dist/client/static/js/index-b6cyn4hr.js +0 -314
  268. package/dist/client/static/js/index-efn233xp.js +0 -4
  269. package/dist/client/static/js/index-esx3zwnt.js +0 -1
  270. package/dist/client/static/js/index-fbbp5cwj.js +0 -2
  271. package/dist/client/static/js/index-g1cggqgx.js +0 -12
  272. package/dist/client/static/js/index-ghsdzs4m.js +0 -1
  273. package/dist/client/static/js/index-gs7ytgdw.js +0 -474
  274. package/dist/client/static/js/index-jqs23cc7.css +0 -1
  275. package/dist/client/static/js/index-qjsy6p86.js +0 -1
  276. package/dist/client/static/js/info-A6RAGUB7-a8xap43w.js +0 -1
  277. package/dist/client/static/js/ini-df5bw23e.js +0 -1
  278. package/dist/client/static/js/java-8j33rj1p.js +0 -1
  279. package/dist/client/static/js/json-g5ggnd94.js +0 -1
  280. package/dist/client/static/js/jsx-f6p72qpc.js +0 -1
  281. package/dist/client/static/js/lua-bahx6qze.js +0 -1
  282. package/dist/client/static/js/markdown-9dhg1fax.js +0 -1
  283. package/dist/client/static/js/one-dark-pro-h5tmw145.js +0 -1
  284. package/dist/client/static/js/one-light-x7vj1pxr.js +0 -1
  285. package/dist/client/static/js/packet-AYTQ26CC-b5bvg6v1.js +0 -1
  286. package/dist/client/static/js/pie-WAS4IAKB-77ee73zg.js +0 -1
  287. package/dist/client/static/js/properties-49mfnee4.js +0 -1
  288. package/dist/client/static/js/python-qb69wp1s.js +0 -1
  289. package/dist/client/static/js/r-s3mf2tch.js +0 -1
  290. package/dist/client/static/js/radar-RG4KPBEZ-cp79xtvb.js +0 -1
  291. package/dist/client/static/js/railroad-74A4TZTK-dcpgqhcb.js +0 -1
  292. package/dist/client/static/js/railroad-abnf-HS5TGJTU-qasqv686.js +0 -1
  293. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-e46908rd.js +0 -1
  294. package/dist/client/static/js/railroad-peg-WCYAUIDC-7009t6bk.js +0 -1
  295. package/dist/client/static/js/sql-aczp05f2.js +0 -1
  296. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-7xrkrkpa.js +0 -8
  297. package/dist/client/static/js/treeView-Q6P3EWNA-tpn62q8j.js +0 -1
  298. package/dist/client/static/js/treemap-WGGIJYW6-w910f1g4.js +0 -1
  299. package/dist/client/static/js/tsx-s1shkfg9.js +0 -1
  300. package/dist/client/static/js/typescript-htx9v6bf.js +0 -1
  301. package/dist/client/static/js/wardley-WFR3VGLG-pt9tq808.js +0 -1
  302. package/dist/client/static/js/xml-wr1dxav5.js +0 -1
  303. package/dist/client/static/js/xychartDiagram-PMCCYNJV-kryrpqp1.js +0 -7
  304. package/dist/client/static/js/yaml-0y9fdskg.js +0 -1
  305. /package/src/{client/lib → shared/lib/workspace}/session-tree.ts +0 -0
@@ -0,0 +1,179 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The terminal's copy paths.
8
+ *
9
+ * A browser delivers ⌘C as a keydown ghostty-web handles itself, but two
10
+ * platforms do not: the macOS shell's Edit menu claims the chord and the page
11
+ * only sees the native `copy:` action's DOM `copy` event, while Windows and
12
+ * Linux use `Ctrl+Shift+C` and `Ctrl+Shift+V` (ghostty-web binds neither). Both
13
+ * paths are pinned here, including the empty-selection case that must stay the
14
+ * platform's business and the capture-phase `stopImmediatePropagation` that
15
+ * keeps the chord out of the PTY encoder.
16
+ */
17
+
18
+ import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
19
+ import { Window } from 'happy-dom';
20
+ import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
21
+ import {
22
+ installTerminalCopy,
23
+ installTerminalCopyChords,
24
+ } from '@/client/components/workspace/terminal-panel/copy';
25
+
26
+ let win: Window;
27
+ let container: HTMLDivElement;
28
+
29
+ beforeAll(() => {
30
+ win = new Window();
31
+ installDomGlobals(win);
32
+ });
33
+
34
+ afterEach(() => {
35
+ document.body.innerHTML = '';
36
+ });
37
+
38
+ afterAll(() => {
39
+ restoreDomGlobals();
40
+ });
41
+
42
+ function mount(): void {
43
+ container = document.createElement('div');
44
+ document.body.appendChild(container);
45
+ }
46
+
47
+ function installClipboard(written: string[], pasted: string): void {
48
+ Object.defineProperty(navigator, 'clipboard', {
49
+ configurable: true,
50
+ value: {
51
+ writeText: async (text: string) => void written.push(text),
52
+ readText: async () => pasted,
53
+ },
54
+ });
55
+ // happy-dom leaves `isSecureContext` undefined, and the clipboard helper
56
+ // refuses the async API without it.
57
+ Object.defineProperty(window, 'isSecureContext', { configurable: true, value: true });
58
+ }
59
+
60
+ function copyEvent(): { event: Event; data: Map<string, string> } {
61
+ const data = new Map<string, string>();
62
+ const event = new Event('copy', { cancelable: true }) as unknown as Event & {
63
+ clipboardData: { setData: (type: string, value: string) => void };
64
+ };
65
+ event.clipboardData = { setData: (type, value) => data.set(type, value) };
66
+ return { event, data };
67
+ }
68
+
69
+ function chord(code: string, key: string): KeyboardEvent {
70
+ return new win.KeyboardEvent('keydown', {
71
+ key,
72
+ code,
73
+ ctrlKey: true,
74
+ shiftKey: true,
75
+ cancelable: true,
76
+ bubbles: true,
77
+ }) as unknown as KeyboardEvent;
78
+ }
79
+
80
+ describe('terminal copy event', () => {
81
+ test('writes the terminal selection and suppresses the DOM copy', () => {
82
+ mount();
83
+ const dispose = installTerminalCopy(container, () => 'line one\nline two');
84
+ const { event, data } = copyEvent();
85
+ container.dispatchEvent(event);
86
+ expect(event.defaultPrevented).toBe(true);
87
+ expect(data.get('text/plain')).toBe('line one\nline two');
88
+ dispose();
89
+ });
90
+
91
+ test('leaves an empty selection to the platform', () => {
92
+ mount();
93
+ const dispose = installTerminalCopy(container, () => '');
94
+ const { event, data } = copyEvent();
95
+ container.dispatchEvent(event);
96
+ expect(event.defaultPrevented).toBe(false);
97
+ expect(data.size).toBe(0);
98
+ dispose();
99
+ });
100
+
101
+ test('the disposer removes the listener', () => {
102
+ mount();
103
+ const dispose = installTerminalCopy(container, () => 'x');
104
+ dispose();
105
+ const { event, data } = copyEvent();
106
+ container.dispatchEvent(event);
107
+ expect(data.size).toBe(0);
108
+ });
109
+ });
110
+
111
+ describe('terminal copy chords', () => {
112
+ test('Ctrl+Shift+C copies the selection and never reaches the PTY encoder', async () => {
113
+ mount();
114
+ const written: string[] = [];
115
+ installClipboard(written, '');
116
+ const dispose = installTerminalCopyChords(container, {
117
+ getSelection: () => 'chord selection',
118
+ paste: () => {},
119
+ });
120
+ let reachedEncoder = false;
121
+ container.addEventListener('keydown', () => { reachedEncoder = true; });
122
+ const event = chord('KeyC', 'c');
123
+ container.dispatchEvent(event);
124
+ await Promise.resolve();
125
+ expect(event.defaultPrevented).toBe(true);
126
+ expect(reachedEncoder).toBe(false);
127
+ expect(written).toEqual(['chord selection']);
128
+ dispose();
129
+ });
130
+
131
+ test('Ctrl+Shift+C with no selection stays out of the way', () => {
132
+ mount();
133
+ const written: string[] = [];
134
+ installClipboard(written, '');
135
+ const dispose = installTerminalCopyChords(container, {
136
+ getSelection: () => '',
137
+ paste: () => {},
138
+ });
139
+ const event = chord('KeyC', 'c');
140
+ container.dispatchEvent(event);
141
+ expect(event.defaultPrevented).toBe(false);
142
+ expect(written).toEqual([]);
143
+ dispose();
144
+ });
145
+
146
+ test('Ctrl+Shift+V pastes the clipboard into the terminal', async () => {
147
+ mount();
148
+ const written: string[] = [];
149
+ installClipboard(written, 'clipboard text');
150
+ const pasted: string[] = [];
151
+ const dispose = installTerminalCopyChords(container, {
152
+ getSelection: () => '',
153
+ paste: (text) => void pasted.push(text),
154
+ });
155
+ const event = chord('KeyV', 'v');
156
+ container.dispatchEvent(event);
157
+ await Promise.resolve();
158
+ await Promise.resolve();
159
+ expect(event.defaultPrevented).toBe(true);
160
+ expect(pasted).toEqual(['clipboard text']);
161
+ dispose();
162
+ });
163
+
164
+ test('the disposer removes both chords', async () => {
165
+ mount();
166
+ const written: string[] = [];
167
+ installClipboard(written, 'clipboard text');
168
+ const dispose = installTerminalCopyChords(container, {
169
+ getSelection: () => 'chord selection',
170
+ paste: () => {},
171
+ });
172
+ dispose();
173
+ const event = chord('KeyC', 'c');
174
+ container.dispatchEvent(event);
175
+ await Promise.resolve();
176
+ expect(event.defaultPrevented).toBe(false);
177
+ expect(written).toEqual([]);
178
+ });
179
+ });
@@ -0,0 +1,76 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The terminal's own copy paths, beside the chords ghostty-web implements.
8
+ *
9
+ * Two platforms deliver copy differently and neither is `Meta+C`:
10
+ *
11
+ * - **macOS shell**: the Edit menu claims ⌘C, so the page never sees the
12
+ * keydown — the native `copy:` action fires a DOM `copy` event on the
13
+ * focused element instead. `installTerminalCopy` answers that event with the
14
+ * canvas selection, which the native action would otherwise replace with the
15
+ * (empty) DOM selection.
16
+ * - **Windows and Linux**: there is no native Edit menu in the way, but
17
+ * ghostty-web binds copy to `Meta+C` only, and `Ctrl+C` must stay SIGINT.
18
+ * `installTerminalCopyChords` adds the terminal convention,
19
+ * `Ctrl+Shift+C` / `Ctrl+Shift+V`, in the CAPTURE phase so ghostty's encoder
20
+ * never sees the chord and sends a control byte instead.
21
+ *
22
+ * `clipboardData.setData` is the synchronous path the `copy` event exists for;
23
+ * the async clipboard API is the fallback for a platform that hands the event
24
+ * no `DataTransfer`.
25
+ */
26
+
27
+ import { copyToClipboard, readClipboardText } from '@/client/hooks/ui/clipboard';
28
+
29
+ /** Copy the canvas selection when the platform's copy command fires `copy`. */
30
+ export function installTerminalCopy(
31
+ container: HTMLElement,
32
+ getSelection: () => string,
33
+ ): () => void {
34
+ const onCopy = (event: ClipboardEvent): void => {
35
+ const selection = getSelection();
36
+ if (!selection) return;
37
+ event.preventDefault();
38
+ if (event.clipboardData) event.clipboardData.setData('text/plain', selection);
39
+ else void copyToClipboard(selection);
40
+ };
41
+ container.addEventListener('copy', onCopy);
42
+ return () => container.removeEventListener('copy', onCopy);
43
+ }
44
+
45
+ /**
46
+ * `Ctrl+Shift+C` / `Ctrl+Shift+V`, the Windows and Linux terminal chords.
47
+ *
48
+ * Capture phase on the container, because ghostty-web's `keydown` listener is
49
+ * a bubble listener on the same element: a `Ctrl+Shift+C` that reached it would
50
+ * be encoded for the PTY, not copied.
51
+ */
52
+ export function installTerminalCopyChords(
53
+ container: HTMLElement,
54
+ actions: { getSelection: () => string; paste: (text: string) => void },
55
+ ): () => void {
56
+ const onKeyDown = (event: KeyboardEvent): void => {
57
+ if (!event.ctrlKey || !event.shiftKey || event.altKey) return;
58
+ if (event.code === 'KeyC') {
59
+ const selection = actions.getSelection();
60
+ if (!selection) return;
61
+ event.preventDefault();
62
+ event.stopImmediatePropagation();
63
+ void copyToClipboard(selection);
64
+ return;
65
+ }
66
+ if (event.code === 'KeyV') {
67
+ event.preventDefault();
68
+ event.stopImmediatePropagation();
69
+ void readClipboardText().then((text) => {
70
+ if (text) actions.paste(text);
71
+ });
72
+ }
73
+ };
74
+ container.addEventListener('keydown', onKeyDown, true);
75
+ return () => container.removeEventListener('keydown', onKeyDown, true);
76
+ }
@@ -50,6 +50,7 @@ import {
50
50
  handleKeyNavigation,
51
51
  } from '@/client/components/workspace/terminal-panel/navigation';
52
52
  import { holdAcrossWrite, watchPointerPress } from '@/client/components/workspace/terminal-panel/scroll-hold';
53
+ import { installTerminalCopy, installTerminalCopyChords } from '@/client/components/workspace/terminal-panel/copy';
53
54
  import {
54
55
  focusTerminal,
55
56
  redirectSoftKeyboardFocus,
@@ -132,6 +133,18 @@ export async function mountTerminal(
132
133
  // one.
133
134
  term.attachCustomKeyEventHandler((event: globalThis.KeyboardEvent) => handleKeyNavigation(term, event));
134
135
  instance.disposables.push(
136
+ // The macOS shell's Edit menu claims ⌘C, so the page never sees the
137
+ // keydown ghostty-web would copy from; the native `copy:` action fires a
138
+ // DOM `copy` event instead. See `copy.ts`.
139
+ { dispose: installTerminalCopy(container, () => term.getSelection()) },
140
+ // Windows and Linux have no native Edit menu in the way, but ghostty-web
141
+ // binds copy to `Meta+C` only and `Ctrl+C` must stay SIGINT. See `copy.ts`.
142
+ {
143
+ dispose: installTerminalCopyChords(container, {
144
+ getSelection: () => term.getSelection(),
145
+ paste: (text) => term.paste(text),
146
+ }),
147
+ },
135
148
  // ghostty's own `open()` re-focuses the container on a timer; see
136
149
  // `focus-target.ts` for why a phone's textarea needs this redirect.
137
150
  { dispose: redirectSoftKeyboardFocus(container, term) },
@@ -1,5 +1,5 @@
1
1
  {
2
- "source": "@oh-my-pi/pi-coding-agent 10 tabs / 629 settings",
2
+ "source": "@oh-my-pi/pi-coding-agent 10 tabs / 632 settings",
3
3
  "tabs": [
4
4
  {
5
5
  "id": "appearance",
@@ -3554,24 +3554,13 @@
3554
3554
  }
3555
3555
  },
3556
3556
  "live.voice": {
3557
- "type": "enum",
3557
+ "type": "string",
3558
3558
  "default": "sol",
3559
- "values": [
3560
- "arbor",
3561
- "breeze",
3562
- "cove",
3563
- "ember",
3564
- "juniper",
3565
- "maple",
3566
- "sol",
3567
- "spruce",
3568
- "vale"
3569
- ],
3570
3559
  "ui": {
3571
3560
  "tab": "providers",
3572
3561
  "group": "Services",
3573
3562
  "label": "Live Voice",
3574
- "description": "Voice used by Codex-backed realtime voice sessions",
3563
+ "description": "Voice of realtime voice sessions; a custom live endpoint may take other names (set in config)",
3575
3564
  "options": [
3576
3565
  {
3577
3566
  "value": "arbor",
@@ -3612,6 +3601,25 @@
3612
3601
  ]
3613
3602
  }
3614
3603
  },
3604
+ "live.endpoint": {
3605
+ "type": "string",
3606
+ "ui": {
3607
+ "tab": "providers",
3608
+ "group": "Services",
3609
+ "label": "Live Endpoint",
3610
+ "description": "Base URL of an OpenAI Realtime WebRTC-compatible server (e.g. http://127.0.0.1:8080/v1) used for live voice instead of Codex; empty uses Codex"
3611
+ }
3612
+ },
3613
+ "live.apiKey": {
3614
+ "type": "string",
3615
+ "credential": true,
3616
+ "ui": {
3617
+ "tab": "providers",
3618
+ "group": "Services",
3619
+ "label": "Live Endpoint API Key",
3620
+ "description": "Bearer key sent only to the live endpoint: a literal, an environment variable name, or !command"
3621
+ }
3622
+ },
3615
3623
  "tts.localVoice": {
3616
3624
  "type": "enum",
3617
3625
  "default": "harper",
@@ -3937,6 +3945,16 @@
3937
3945
  ]
3938
3946
  }
3939
3947
  },
3948
+ "providers.webKeyless": {
3949
+ "type": "boolean",
3950
+ "default": true,
3951
+ "ui": {
3952
+ "tab": "providers",
3953
+ "group": "Services",
3954
+ "label": "Keyless Web Services",
3955
+ "description": "Let web search and URL reading use third-party services without your credential: keyless Parallel, Exa, Firecrawl, Keenable, and Perplexity, the Jina reader, and scraped engines (Startpage, DuckDuckGo, Ecosia, Google, Mojeek, Hacker News). Off, only services you configured run."
3956
+ }
3957
+ },
3940
3958
  "codexResets.autoRedeem5h": {
3941
3959
  "type": "enum",
3942
3960
  "default": "unset",
@@ -5336,6 +5354,7 @@
5336
5354
  },
5337
5355
  "mnemopi.embeddingApiKey": {
5338
5356
  "type": "string",
5357
+ "credential": true,
5339
5358
  "ui": {
5340
5359
  "tab": "memory",
5341
5360
  "group": "Mnemopi",
@@ -5410,6 +5429,7 @@
5410
5429
  },
5411
5430
  "mnemopi.llmApiKey": {
5412
5431
  "type": "string",
5432
+ "credential": true,
5413
5433
  "ui": {
5414
5434
  "tab": "memory",
5415
5435
  "group": "Mnemopi",
@@ -5441,6 +5461,7 @@
5441
5461
  },
5442
5462
  "hindsight.apiToken": {
5443
5463
  "type": "string",
5464
+ "credential": true,
5444
5465
  "ui": {
5445
5466
  "tab": "memory",
5446
5467
  "group": "Hindsight",
@@ -7790,7 +7811,7 @@
7790
7811
  "tab": "tasks",
7791
7812
  "group": "Subagents",
7792
7813
  "label": "Structured Task Results",
7793
- "description": "Expose outputSchema/schemaMode on the task tool and return subagent results through the yield tool, validated against caller or agent output schemas. Off: task subagents have no yield tool and return their final message as plain text, except agents whose definition sets structured: true. Eval agent()/workpool spawns always keep structured results."
7814
+ "description": "Expose outputSchema/schemaMode on the task tool and honor agent output schemas; a subagent with a schema returns its result through the yield tool, validated against it. Off: task subagents ignore schemas, except agents whose definition sets structured: true. A subagent without a schema has no yield tool and returns its final message. Eval agent()/workpool spawns always honor schemas."
7794
7815
  }
7795
7816
  },
7796
7817
  "task.speculativeLaunch": {
@@ -8468,7 +8489,7 @@
8468
8489
  "tab": "tools",
8469
8490
  "group": "Grep & Browser",
8470
8491
  "label": "Browser Relay",
8471
- "description": "Drive your own Chrome tabs through the omp browser relay. Install the extension once (`omp browser-relay install`); the relay server auto-starts when the browser prelude needs it. Takes precedence over Browser CDP URL; set PI_BROWSER_RELAY=0 or PI_BROWSER_RELAY=1 to override."
8492
+ "description": "Drive your own Chrome tabs through the omp browser relay. Install the extension once (`omp browser-relay install`); the relay server auto-starts when the browser prelude needs it. Takes precedence over Browser CDP URL; set PI_BROWSER_RELAY=0 or PI_BROWSER_RELAY=1 to override. Subagents skip it unless an open passes app: \"relay\"."
8472
8493
  }
8473
8494
  },
8474
8495
  "browser.relayUrl": {
@@ -8497,7 +8518,7 @@
8497
8518
  "tab": "tools",
8498
8519
  "group": "Grep & Browser",
8499
8520
  "label": "cmux Browser",
8500
- "description": "Use cmux WKWebView surfaces for browser automation when a cmux socket is available. Set PI_BROWSER_CMUX=0 or PI_BROWSER_CMUX=1 to override."
8521
+ "description": "Use cmux WKWebView surfaces for browser automation when a cmux socket is available (not for subagents). Set PI_BROWSER_CMUX=0 or PI_BROWSER_CMUX=1 to override."
8501
8522
  }
8502
8523
  },
8503
8524
  "browser.tern": {
@@ -8507,7 +8528,7 @@
8507
8528
  "tab": "tools",
8508
8529
  "group": "Grep & Browser",
8509
8530
  "label": "Tern Browser",
8510
- "description": "Inside a Tern pane, open browser tabs as picture-in-pictures over omp's pane (native web view) instead of omp's own headless browser; falls back to that browser when no Tern window can host them. An explicit app, the relay and Browser CDP URL take precedence; app \"own\" opts one open out. Set PI_BROWSER_TERN=0 or PI_BROWSER_TERN=1 to override."
8531
+ "description": "Inside a Tern pane, open browser tabs as picture-in-pictures over omp's pane (native web view) instead of omp's own headless browser; falls back to that browser when no Tern window can host them. Subagents skip it unless an open passes app: \"tern\". An explicit app, the relay and Browser CDP URL take precedence; app \"own\" opts one open out. Set PI_BROWSER_TERN=0 or PI_BROWSER_TERN=1 to override."
8511
8532
  }
8512
8533
  },
8513
8534
  "browser.webkit": {
@@ -22,7 +22,7 @@ import {
22
22
  startPendingSession,
23
23
  } from '@/client/hooks/chat/omp/pending-sessions';
24
24
  import { withPendingRows } from '@/client/hooks/chat/omp/pending-rows';
25
- import { buildSessionTree } from '@/client/lib/session-tree';
25
+ import { buildSessionTree } from '@/shared/lib/workspace/session-tree';
26
26
  import { formatNewSessionTitle } from '@/shared/lib/omp/session/default-title';
27
27
  import type { WorkspaceFolderData } from '@/shared/types';
28
28
 
@@ -164,3 +164,64 @@ describe('the sidebar search finds a session by its id', () => {
164
164
  harness.server.stop();
165
165
  });
166
166
  });
167
+
168
+ describe('the sidebar harness filter', () => {
169
+ test('narrows the list to one agent and drops a workspace with nothing left', async () => {
170
+ const harness = await mountSidebarController('?sessionId=real-1');
171
+ const server = harness.server;
172
+ server.publish(TOPIC_SIDEBAR, {
173
+ folders: [
174
+ {
175
+ id: 7,
176
+ name: 'ws',
177
+ isExpanded: true,
178
+ hasMore: false,
179
+ totalSessions: 3,
180
+ sessions: [
181
+ { id: 'real-1', folder_id: 7, title: 'omp chat', harness: 'omp-rpc' },
182
+ { id: 'omp-2', folder_id: 7, title: 'another omp chat', harness: 'omp-rpc' },
183
+ { id: 'claude-1', folder_id: 7, title: 'claude chat', harness: 'claude' },
184
+ ],
185
+ },
186
+ {
187
+ id: 8,
188
+ name: 'other',
189
+ isExpanded: true,
190
+ hasMore: false,
191
+ totalSessions: 1,
192
+ sessions: [{ id: 'codex-1', folder_id: 8, title: 'codex chat', harness: 'codex' }],
193
+ },
194
+ ],
195
+ isMock: false,
196
+ });
197
+ await server.waitForTopic<SidebarPayload>(TOPIC_SIDEBAR, (value) => (value?.folders ?? []).length === 2);
198
+ await act(async () => {
199
+ for (let i = 0; i < 8; i += 1) await Promise.resolve();
200
+ });
201
+
202
+ // The menu counts the whole list, most-used first.
203
+ expect(harness.holder.api?.harnessOptions).toEqual([
204
+ { harness: 'omp-rpc', label: 'omp', count: 2 },
205
+ { harness: 'claude', label: 'claude', count: 1 },
206
+ { harness: 'codex', label: 'codex', count: 1 },
207
+ ]);
208
+
209
+ await act(async () => {
210
+ harness.holder.api?.setHarnessFilter('claude');
211
+ for (let i = 0; i < 8; i += 1) await Promise.resolve();
212
+ });
213
+ expect(renderedSessionIds(harness.holder.api)).toEqual(['claude-1']);
214
+ // A workspace with nothing left to show is dropped, not drawn empty.
215
+ expect(harness.holder.api?.processedFolders.map((folder) => folder.id)).toEqual([7]);
216
+ // The counts stay a fact about the workspaces, not about the narrowed list.
217
+ expect(harness.holder.api?.harnessOptions.map((option) => option.count)).toEqual([2, 1, 1]);
218
+
219
+ await act(async () => {
220
+ harness.holder.api?.setHarnessFilter(null);
221
+ for (let i = 0; i < 8; i += 1) await Promise.resolve();
222
+ });
223
+ expect(renderedSessionIds(harness.holder.api)).toEqual(['codex-1', 'real-1', 'omp-2', 'claude-1']);
224
+
225
+ server.stop();
226
+ });
227
+ });
@@ -34,7 +34,13 @@ import {
34
34
  import { markPendingSessionWaiting } from '@/client/hooks/chat/omp/pending-waiting';
35
35
  import { useWaitingPrompts } from '@/client/hooks/chat/waiting/store';
36
36
  import { withPendingRows } from '@/client/hooks/chat/omp/pending-rows';
37
+ import { filterFoldersBySearch } from '@/client/hooks/chat/omp/sidebar-filter';
37
38
  import { useFolderAutoExpand } from '@/client/hooks/chat/omp/folder-auto-expand';
39
+ import {
40
+ harnessFilterFolders,
41
+ harnessFilterOptions,
42
+ type HarnessFilterOption,
43
+ } from '@/shared/lib/workspace/harness-filter';
38
44
  import { writeSetting } from '@/shared/lib/settings/client';
39
45
  import { subscribeSessionKey } from '@/shared/lib/workspace/session-state/listeners';
40
46
  import { CHAT_DRAFT_ATTACHMENTS_KEY, CHAT_DRAFT_KEY } from '@/shared/lib/chat/composer/draft';
@@ -81,6 +87,11 @@ export interface SessionSidebarController {
81
87
  setOptionsOpen: (value: boolean) => void;
82
88
  sortOption: SessionSortOption;
83
89
  handleSortChange: (opt: SessionSortOption) => void;
90
+ /** The harness the list is narrowed to, or null for every harness. */
91
+ harnessFilter: string | null;
92
+ setHarnessFilter: (harness: string | null) => void;
93
+ /** The harnesses the list holds, with row counts — the filter's menu. */
94
+ harnessOptions: HarnessFilterOption[];
84
95
  processedFolders: WorkspaceFolderData[];
85
96
  sessionStatus: Record<string, 'stream' | 'finish' | 'abort'>;
86
97
  handleSelectSession: (id: number | string) => void;
@@ -113,6 +124,9 @@ export function useSessionSidebarController(
113
124
 
114
125
  const [searchQuery, setSearchQuery] = useState('');
115
126
  const [showArchived, setShowArchived] = useState(false);
127
+ // Which agent ran the chat. In-memory like the search and the archive toggle:
128
+ // a filter is a way of looking at the list, not a preference about it.
129
+ const [harnessFilter, setHarnessFilter] = useState<string | null>(null);
116
130
  const [optionsOpen, setOptionsOpen] = useState(false);
117
131
  // Seeded from the server (app_settings.omp_sidebar_sort) so the SSR HTML and
118
132
  // the first client render agree. With no stored preference the sidebar opens
@@ -265,45 +279,28 @@ export function useSessionSidebarController(
265
279
  onAfterSelect?.();
266
280
  };
267
281
 
268
- // Filter and sort folders
269
- const processedFolders = useMemo(() => {
270
- // A pending row joins the list BEFORE the filter: the row exists because
271
- // omp's transcript scan cannot see the session yet, and a row that the
272
- // user's own search hides is a row the search never offered to find.
273
- let result = withPendingRows(folders, pendingEntries, {
282
+ // The list before any filter: the server's folders plus the pending rows. A
283
+ // pending row joins BEFORE the filters — the row exists because omp's
284
+ // transcript scan cannot see the session yet, and a row the user's own search
285
+ // hides is a row the search never offered to find.
286
+ const baseFolders = useMemo(
287
+ () => withPendingRows(folders, pendingEntries, {
274
288
  activeId: sessionParam,
275
289
  urlFolderId: folderIdParam,
276
290
  titleFor: titleHint,
277
- });
291
+ }),
292
+ [folders, pendingEntries, sessionParam, folderIdParam, titleHint],
293
+ );
278
294
 
279
- // Search filter. A session matches on its title OR its id: the id is what
280
- // "Copy session ID" puts on the clipboard, and a search that could not find
281
- // the string it just handed the user would be a dead end.
282
- if (searchQuery.trim()) {
283
- const q = searchQuery.toLowerCase();
284
- const matchesSession = (s: { id: number | string; title: string }) =>
285
- s.title.toLowerCase().includes(q) || String(s.id).toLowerCase().includes(q);
286
- if (expandSearchMatches) {
287
- result = result.filter(folder => {
288
- const matchFolder = folder.name.toLowerCase().includes(q);
289
- const matchSession = folder.sessions?.some(matchesSession);
290
- return matchFolder || matchSession;
291
- }).map(folder => {
292
- // If we are searching, we also filter the sessions within the folder
293
- const filteredSessions = folder.sessions?.filter((s) =>
294
- folder.name.toLowerCase().includes(q) || matchesSession(s)
295
- );
296
- return { ...folder, sessions: filteredSessions, isExpanded: true };
297
- });
298
- } else {
299
- result = result.map(folder => {
300
- const matchesFolderName = folder.name.toLowerCase().includes(q);
301
- const filteredSessions = (folder.sessions || []).filter(matchesSession);
302
- if (matchesFolderName) return folder;
303
- return { ...folder, sessions: filteredSessions };
304
- }).filter(f => f.sessions && f.sessions.length > 0);
305
- }
306
- }
295
+ // Counted over the list BEFORE the search and the harness filter, so an
296
+ // entry's number is a fact about the workspaces rather than about what is on
297
+ // screen — "3 claude" stays readable while the list is narrowed to `codex`.
298
+ const harnessOptions = useMemo(() => harnessFilterOptions(baseFolders), [baseFolders]);
299
+
300
+ // Filter and sort folders
301
+ const processedFolders = useMemo(() => {
302
+ let result = filterFoldersBySearch(baseFolders, searchQuery, expandSearchMatches);
303
+ result = harnessFilterFolders(result, harnessFilter);
307
304
 
308
305
  // A run in flight opens its folder in the SAME frame the spinner appears,
309
306
  // and keeps it open if the toggle write is refused. The write below makes
@@ -315,10 +312,8 @@ export function useSessionSidebarController(
315
312
  }
316
313
 
317
314
  // Ordering is shared with the other sidebar so the two cannot drift.
318
- result = sortFolders(result, sortOption);
319
-
320
- return result;
321
- }, [folders, pendingEntries, searchQuery, sortOption, sessionParam, folderIdParam, expandSearchMatches, titleHint, runningFolderIds]);
315
+ return sortFolders(result, sortOption);
316
+ }, [baseFolders, searchQuery, harnessFilter, sortOption, expandSearchMatches, runningFolderIds]);
322
317
 
323
318
  return {
324
319
  folders,
@@ -338,6 +333,9 @@ export function useSessionSidebarController(
338
333
  setOptionsOpen,
339
334
  sortOption,
340
335
  handleSortChange,
336
+ harnessFilter,
337
+ setHarnessFilter,
338
+ harnessOptions,
341
339
  processedFolders,
342
340
  sessionStatus,
343
341
  handleSelectSession,