@kabmo-labs/kabmo 0.32.1 → 0.34.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 (334) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +805 -637
  3. package/dist/client/static/js/{CsvGrid-4gx0jevc.js → CsvGrid-vze4m5ag.js} +2 -2
  4. package/dist/client/static/js/{DocxView-0667nr8h.js → DocxView-jbf21gmh.js} +5 -5
  5. package/dist/client/static/js/{DrawioView-522v0d0r.js → DrawioView-b52qybx5.js} +2 -2
  6. package/dist/client/static/js/{ImageView-t8xp60hm.js → ImageView-mdgzj8px.js} +1 -1
  7. package/dist/client/static/js/LayoutWrapper-3c49dvtt.js +2 -0
  8. package/dist/client/static/js/Modal-sqp864vd.js +38 -0
  9. package/dist/client/static/js/{PdfView-3fx172xh.js → PdfView-g06rxqb1.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-n3agmf5t.js → SessionsView-521adxyr.js} +1 -1
  11. package/dist/client/static/js/{SheetView-nmrdb1b8.js → SheetView-h8xmsz7q.js} +22 -22
  12. package/dist/client/static/js/{SvgPreview-0xsc6xam.js → SvgPreview-1j4jvcvz.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-jj31rs62.js → abnfDiagram-O67JEVCF-pasxh4b6.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-fc9kmq1w.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-ay3yr7pf.js → architectureDiagram-NJMV4G6O-ms14g0bm.js} +4 -4
  16. package/dist/client/static/js/{astro-qgx1r159.js → astro-80bs6hvg.js} +1 -1
  17. package/dist/client/static/js/bash-b3rwyg5p.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-4x33e16k.js → blockDiagram-BEXU5L5S-ycn78fcq.js} +4 -4
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-dtb81cgz.js → c4Diagram-YGBWAQC7-vn2gpjfm.js} +5 -5
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-vk5a2n9w.js → classDiagram-v2-NBCMYWYE-fyrm1pr5.js} +5 -5
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-6rbjbe19.js → cose-bilkent-JH36ORCC-ea5nwvgq.js} +1 -1
  22. package/dist/client/static/js/css-6vj0d308.js +1 -0
  23. package/dist/client/static/js/cynefin-OW5HDTMX-a4t8992q.js +1 -0
  24. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-vyjksedr.js → cynefinDiagram-VND7K2PF-j6bsjpre.js} +2 -2
  25. package/dist/client/static/js/{dagre-6A5THRUB-7hey38z5.js → dagre-6A5THRUB-4smdkwv8.js} +2 -2
  26. package/dist/client/static/js/{diagram-22UHCM2B-aes06jde.js → diagram-22UHCM2B-9sm4kqwc.js} +19 -19
  27. package/dist/client/static/js/{diagram-3UASUU5V-3cfkgm3x.js → diagram-3UASUU5V-2h3qxaed.js} +1 -1
  28. package/dist/client/static/js/{diagram-ATOU4E4O-z8mfhwpy.js → diagram-ATOU4E4O-1981bc94.js} +3 -3
  29. package/dist/client/static/js/{diagram-CDSNMT55-t4821ctz.js → diagram-CDSNMT55-3vgsxavc.js} +5 -5
  30. package/dist/client/static/js/{diagram-MLGK6HIB-23yxbfrx.js → diagram-MLGK6HIB-c9gf2r3f.js} +2 -2
  31. package/dist/client/static/js/{diagram-MPIPVDR6-chhtf7v0.js → diagram-MPIPVDR6-gjqeq92d.js} +2 -2
  32. package/dist/client/static/js/{dockerfile-5b87ghm7.js → dockerfile-8v935dkn.js} +1 -1
  33. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-9jejcvfr.js → ebnfDiagram-ZINNZB2B-4vbsgh99.js} +1 -1
  34. package/dist/client/static/js/{elixir-rpa1g4gy.js → elixir-vcbg60wv.js} +1 -1
  35. package/dist/client/static/js/{elk-276RUBZZ-xhhtkf58.js → elk-276RUBZZ-nca3t891.js} +1 -1
  36. package/dist/client/static/js/{erDiagram-OPXOYQCR-mt2apjjb.js → erDiagram-OPXOYQCR-5kfkev03.js} +6 -6
  37. package/dist/client/static/js/{erlang-6m6tpt72.js → erlang-qt876zrq.js} +1 -1
  38. package/dist/client/static/js/eventmodeling-NTZA5JFV-18bdrkv5.js +1 -0
  39. package/dist/client/static/js/flowDiagram-KWPJA3E3-fg0yqx0h.js +1 -0
  40. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-8cm7a29w.js → ganttDiagram-FUAMR5RP-mxc73wmq.js} +3 -3
  41. package/dist/client/static/js/gitGraph-4MIJSDKK-8fa6y40p.js +1 -0
  42. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-5s0gbnx2.js → gitGraphDiagram-X574FWY7-7en3ag0e.js} +12 -12
  43. package/dist/client/static/js/graphql-n43pd5fs.js +1 -0
  44. package/dist/client/static/js/html-dbrwss36.js +1 -0
  45. package/dist/client/static/js/{index-ye3sr7db.js → index-0vm41je9.js} +4 -4
  46. package/dist/client/static/js/{index-5y7c62sm.js → index-1b0t1428.js} +5 -5
  47. package/dist/client/static/js/{index-9sd0vjmh.js → index-1ksg88qf.js} +2 -2
  48. package/dist/client/static/js/{index-brj8qwa6.js → index-1y9r4frb.js} +2 -2
  49. package/dist/client/static/js/index-231241f4.js +12 -0
  50. package/dist/client/static/js/index-2mx9ej4k.css +1 -0
  51. package/dist/client/static/js/{index-6q80csr0.js → index-2svnq5gg.js} +1 -1
  52. package/dist/client/static/js/{index-dt7e1328.js → index-354mqqra.js} +2 -2
  53. package/dist/client/static/js/{index-532btjmp.js → index-3zc1b0dv.js} +2 -2
  54. package/dist/client/static/js/{index-h06bcfds.js → index-4g46wbdw.js} +1 -1
  55. package/dist/client/static/js/{index-p7btwjvj.js → index-4qwzxj81.js} +3 -3
  56. package/dist/client/static/js/{index-3vhznzgr.js → index-52rqxgya.js} +1 -1
  57. package/dist/client/static/js/index-6sf2vsp2.js +1 -0
  58. package/dist/client/static/js/{index-xya34x4v.js → index-76zb4m0n.js} +2 -2
  59. package/dist/client/static/js/{index-jz9fpznk.js → index-7a64yjrm.js} +6 -6
  60. package/dist/client/static/js/{index-2xj14800.js → index-7y6rpsrp.js} +2 -2
  61. package/dist/client/static/js/{index-rg8jpbsw.js → index-8acv5b77.js} +2 -2
  62. package/dist/client/static/js/{index-ay34b398.js → index-a0fmsv1d.js} +19 -19
  63. package/dist/client/static/js/{index-2gfc25tq.js → index-ag2rmtas.js} +1 -1
  64. package/dist/client/static/js/{index-sa9cp6km.js → index-ahv9y42z.js} +2 -2
  65. package/dist/client/static/js/{index-g33knza2.js → index-b29afsjh.js} +1 -1
  66. package/dist/client/static/js/{index-629kfbcb.js → index-c3ek61zv.js} +2 -2
  67. package/dist/client/static/js/{index-360d7j0d.js → index-cd65zqba.js} +1 -1
  68. package/dist/client/static/js/{index-4s8ttfxj.js → index-cgzrpvzj.js} +211 -211
  69. package/dist/client/static/js/{index-gbfg0anm.js → index-dbe6afkf.js} +2 -2
  70. package/dist/client/static/js/{index-z4v1xmh1.js → index-ev3yt353.js} +2 -2
  71. package/dist/client/static/js/{index-ehcpzk5b.js → index-eyfcm0cy.js} +1 -1
  72. package/dist/client/static/js/{index-a733k69t.js → index-f7jhhqtk.js} +2 -2
  73. package/dist/client/static/js/{index-hc2jmzpx.js → index-fta1y9pc.js} +65 -65
  74. package/dist/client/static/js/{index-vd0e25p0.js → index-fvmfge3p.js} +1 -1
  75. package/dist/client/static/js/{index-a6k2hqke.js → index-g2dyfze9.js} +1 -1
  76. package/dist/client/static/js/index-h5bn97p6.js +2 -0
  77. package/dist/client/static/js/{index-7fdp9c7m.js → index-hf52f59k.js} +2 -2
  78. package/dist/client/static/js/{index-qkscve6n.js → index-j0r5hj0j.js} +2 -2
  79. package/dist/client/static/js/{index-ejgd8w3s.js → index-j51d5a5m.js} +28 -28
  80. package/dist/client/static/js/{index-kpspnztv.js → index-jsyekbx9.js} +2 -2
  81. package/dist/client/static/js/{index-a0bdavdr.js → index-km2zb6wk.js} +2 -2
  82. package/dist/client/static/js/{index-59jb53v3.js → index-nccwxv0s.js} +2 -2
  83. package/dist/client/static/js/{index-dnp07j57.js → index-p0nz38bm.js} +1 -1
  84. package/dist/client/static/js/{index-c0x6s6f7.js → index-pm6xxwz1.js} +2 -2
  85. package/dist/client/static/js/{index-5x95n3hx.js → index-ptcrwswj.js} +1 -1
  86. package/dist/client/static/js/{index-fdbfzshx.js → index-ptcwae2n.js} +2 -2
  87. package/dist/client/static/js/{index-h7pn9qw6.js → index-qckv9nte.js} +2 -2
  88. package/dist/client/static/js/{index-wzma5n54.js → index-r014brzs.js} +2 -2
  89. package/dist/client/static/js/{index-xj9649ac.js → index-ray2czf6.js} +7 -7
  90. package/dist/client/static/js/{index-qnwqaczk.js → index-rs80cwsv.js} +3 -3
  91. package/dist/client/static/js/{index-pf5sbesf.js → index-rytaa8ca.js} +2 -2
  92. package/dist/client/static/js/{index-c93sp4yh.js → index-rzxcj7cg.js} +1 -1
  93. package/dist/client/static/js/{index-a293pdg7.js → index-s7gkkkyz.js} +2 -2
  94. package/dist/client/static/js/{index-7n68yx6m.js → index-sd66wv26.js} +2 -2
  95. package/dist/client/static/js/{index-bbggh3f8.js → index-vhqe0y82.js} +2 -2
  96. package/dist/client/static/js/{index-dq1kdt03.js → index-vy6termr.js} +1 -1
  97. package/dist/client/static/js/{index-pf7syd7t.js → index-xx6mqpxm.js} +3 -3
  98. package/dist/client/static/js/{index-z5s27s26.js → index-ybm2x4vh.js} +1 -1
  99. package/dist/client/static/js/{index-jppt5mgc.js → index-zvfvqvn9.js} +2 -2
  100. package/dist/client/static/js/info-A6RAGUB7-3hk844f7.js +1 -0
  101. package/dist/client/static/js/{infoDiagram-VRGFBTTK-3w1yz32c.js → infoDiagram-VRGFBTTK-sef80132.js} +2 -2
  102. package/dist/client/static/js/ini-j5dyq6gm.js +1 -0
  103. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ckt471dy.js → ishikawaDiagram-OU5B5YK6-yhvepp1q.js} +6 -6
  104. package/dist/client/static/js/java-g4dgwbfd.js +1 -0
  105. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-kfvn4w7e.js → journeyDiagram-ZHPQQLJL-5w77y95w.js} +5 -5
  106. package/dist/client/static/js/jsx-7t5ecz9s.js +1 -0
  107. package/dist/client/static/js/{julia-0j0gsjvc.js → julia-d4j6wgvf.js} +1 -1
  108. package/dist/client/static/js/{kanban-definition-PNTS6WVX-0q36cm83.js → kanban-definition-PNTS6WVX-02znqtna.js} +6 -6
  109. package/dist/client/static/js/lua-1g6w30de.js +1 -0
  110. package/dist/client/static/js/markdown-afx21x8c.js +1 -0
  111. package/dist/client/static/js/{mermaid.core-b1ssa824.js → mermaid.core-a6e6vck4.js} +6 -6
  112. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-e2ym5en8.js → mindmap-definition-NLK3R4M7-y4n74q9x.js} +8 -8
  113. package/dist/client/static/js/one-dark-pro-vwhfpzr8.js +1 -0
  114. package/dist/client/static/js/one-light-y5t9x6zh.js +1 -0
  115. package/dist/client/static/js/packet-AYTQ26CC-4nj2yy10.js +1 -0
  116. package/dist/client/static/js/{pegDiagram-GJSIUBJH-t8bbdyhe.js → pegDiagram-GJSIUBJH-pr7ehgzb.js} +1 -1
  117. package/dist/client/static/js/{perl-7n7e9ncg.js → perl-srptw5vm.js} +1 -1
  118. package/dist/client/static/js/{php-32vy69vd.js → php-n89g3fk7.js} +1 -1
  119. package/dist/client/static/js/pie-WAS4IAKB-k7rde3f9.js +1 -0
  120. package/dist/client/static/js/{pieDiagram-5QR66LMP-envv4brj.js → pieDiagram-5QR66LMP-39wpsk08.js} +2 -2
  121. package/dist/client/static/js/properties-thd83wey.js +1 -0
  122. package/dist/client/static/js/python-264ns4xw.js +1 -0
  123. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-72rk137a.js → quadrantDiagram-O4NWA36T-esm913km.js} +4 -4
  124. package/dist/client/static/js/r-qw82kkv9.js +1 -0
  125. package/dist/client/static/js/radar-RG4KPBEZ-513dpw4f.js +1 -0
  126. package/dist/client/static/js/railroad-74A4TZTK-9bqnst9c.js +1 -0
  127. package/dist/client/static/js/railroad-abnf-HS5TGJTU-7367d5bv.js +1 -0
  128. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-b806b1mj.js +1 -0
  129. package/dist/client/static/js/railroad-peg-WCYAUIDC-5a67rwf8.js +1 -0
  130. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-1ej0f5hr.js → railroadDiagram-XR7U4H2S-wy2mgya6.js} +1 -1
  131. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-rvdaknpd.js → requirementDiagram-PLB6GJNP-6z9xdgbq.js} +4 -4
  132. package/dist/client/static/js/{ruby-5ty7fys7.js → ruby-r81ytgcm.js} +1 -1
  133. package/dist/client/static/js/{rust-2geezrcs.js → rust-frn3szvc.js} +1 -1
  134. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-nxvhtdaw.js → sankeyDiagram-IPEJSGJF-rtmxk3ys.js} +5 -5
  135. package/dist/client/static/js/{sass-mey5150f.js → sass-9bxped7y.js} +1 -1
  136. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-n5cn5qrt.js → sequenceDiagram-PO4LG4MO-awzcrafg.js} +18 -18
  137. package/dist/client/static/js/{sizeCapture-INFHLROL-r074kj7s.js → sizeCapture-INFHLROL-03gy196j.js} +1 -1
  138. package/dist/client/static/js/sql-0e9mnrda.js +1 -0
  139. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-vxghxdb0.js → stateDiagram-v2-GCMORJYK-an8v3q5n.js} +3 -3
  140. package/dist/client/static/js/{svelte-3ewx0hzx.js → svelte-mwtx07d9.js} +1 -1
  141. package/dist/client/static/js/{swimlanes-2SLR337P-qkkv894p.js → swimlanes-2SLR337P-n9yb4wcs.js} +1 -1
  142. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-nx5nfnf0.js +8 -0
  143. package/dist/client/static/js/{timeline-definition-EJHVYXUP-5tbq4ex2.js → timeline-definition-EJHVYXUP-jceb575g.js} +4 -4
  144. package/dist/client/static/js/treeView-Q6P3EWNA-kcy40evb.js +1 -0
  145. package/dist/client/static/js/treemap-WGGIJYW6-fsrvqxf4.js +1 -0
  146. package/dist/client/static/js/tsx-nm94hed6.js +1 -0
  147. package/dist/client/static/js/typescript-0s2t05jj.js +1 -0
  148. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-6p8hf0b7.js → usecaseDiagram-POWQR4AR-888h3100.js} +39 -39
  149. package/dist/client/static/js/vennDiagram-UO4OBE2U-wbfz0rzv.js +34 -0
  150. package/dist/client/static/js/{vue-06rdf4wh.js → vue-c0rtg1wf.js} +1 -1
  151. package/dist/client/static/js/wardley-WFR3VGLG-36dmxww4.js +1 -0
  152. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-km2x4er8.js → wardleyDiagram-VNRHLVJA-rn8c5qf9.js} +4 -4
  153. package/dist/client/static/js/xml-dz51p1m3.js +1 -0
  154. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-kr3sgr4m.js → xychartDiagram-PMCCYNJV-8sn1apt6.js} +5 -5
  155. package/dist/client/static/js/yaml-2cfkd30t.js +1 -0
  156. package/package.json +4 -1
  157. package/src/client/components/auth/login-screen/index.tsx +1 -0
  158. package/src/client/components/common/MarkdownRenderer.tsx +9 -12
  159. package/src/client/components/common/context-usage-button/McpSection.test.tsx +98 -0
  160. package/src/client/components/common/context-usage-button/McpSection.tsx +12 -5
  161. package/src/client/components/common/context-usage-button/SessionStats.tsx +80 -0
  162. package/src/client/components/common/context-usage-button/index.test.tsx +26 -0
  163. package/src/client/components/common/context-usage-button/index.tsx +36 -28
  164. package/src/client/components/common/harness-glyph/brands.ts +8 -0
  165. package/src/client/components/mobile/LayoutWrapper.tsx +12 -3
  166. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
  167. package/src/client/components/settings/Modal.tsx +14 -84
  168. package/src/client/components/settings/Sidebar.tsx +3 -1
  169. package/src/client/components/settings/apply-side-effects.test.ts +11 -0
  170. package/src/client/components/settings/apply-side-effects.ts +7 -0
  171. package/src/client/components/settings/categories/ChatSettings.test.tsx +1 -1
  172. package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
  173. package/src/client/components/settings/categories/ConnectSettings.tsx +105 -0
  174. package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
  175. package/src/client/components/settings/categories/chat-settings/ChangedFilesSection.tsx +79 -0
  176. package/src/client/components/settings/categories/chat-settings/groups.ts +4 -3
  177. package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +145 -0
  178. package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +160 -0
  179. package/src/client/components/settings/categories/connect-settings/QrCode.tsx +73 -0
  180. package/src/client/components/settings/categories/connect-settings/ServerCard.tsx +94 -0
  181. package/src/client/components/settings/categories/connect-settings/TunnelRow.tsx +127 -0
  182. package/src/client/components/settings/category-content.tsx +116 -0
  183. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.test.tsx +120 -0
  184. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +137 -0
  185. package/src/client/components/workspace/chat-timeline/MessageList.tsx +33 -1
  186. package/src/client/components/workspace/chat-timeline/RunFooter.tsx +22 -1
  187. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +13 -0
  188. package/src/client/components/workspace/chat-timeline/index.tsx +1 -1
  189. package/src/client/components/workspace/diff-panel/Toolbar.tsx +17 -51
  190. package/src/client/components/workspace/diff-panel/index.tsx +23 -4
  191. package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +94 -0
  192. package/src/client/components/workspace/editor/Body.tsx +2 -0
  193. package/src/client/data/settings/omp-schema.json +73 -3
  194. package/src/client/hooks/chat/timeline/change-stats.ts +57 -0
  195. package/src/client/hooks/chat/timeline/changed-files-setting.test.ts +31 -0
  196. package/src/client/hooks/chat/timeline/changed-files-setting.ts +60 -0
  197. package/src/client/hooks/chat/timeline/session-changes.ts +51 -0
  198. package/src/client/hooks/connect/use-connect-status.ts +116 -0
  199. package/src/client/hooks/connect/use-pairing.ts +100 -0
  200. package/src/client/hooks/ui/clipboard.ts +26 -0
  201. package/src/client/hooks/ui/notification-events.test.ts +3 -0
  202. package/src/client/hooks/ui/notification-events.ts +3 -1
  203. package/src/client/hooks/ui/notification-sound.ts +13 -6
  204. package/src/client/hooks/ui/ui-sounds.test.ts +15 -0
  205. package/src/client/hooks/workspace/diff-file.ts +11 -4
  206. package/src/client/hooks/workspace/file-tabs.ts +13 -4
  207. package/src/client/hooks/workspace/journal-diff.ts +97 -0
  208. package/src/client/lib/notifications/native-banner-sound.test.ts +93 -0
  209. package/src/client/lib/notifications/native-banner-sound.ts +46 -0
  210. package/src/client/lib/notifications/os.test.ts +14 -5
  211. package/src/client/lib/notifications/os.ts +8 -0
  212. package/src/client/tailwind.css +5 -0
  213. package/src/server/index.ts +2 -0
  214. package/src/server/lib/assets/font-css.server.test.ts +19 -0
  215. package/src/server/lib/auth/client-address.test.ts +58 -0
  216. package/src/server/lib/auth/client-address.ts +37 -3
  217. package/src/server/lib/auth/guard.ts +31 -4
  218. package/src/server/lib/auth/rate-limit.test.ts +25 -8
  219. package/src/server/lib/auth/rate-limit.ts +8 -5
  220. package/src/server/lib/connect/cloudflared.lifecycle.test.ts +88 -0
  221. package/src/server/lib/connect/cloudflared.server.test.ts +65 -0
  222. package/src/server/lib/connect/cloudflared.server.ts +206 -0
  223. package/src/server/lib/connect/devices.server.ts +192 -0
  224. package/src/server/lib/connect/identity.server.ts +81 -0
  225. package/src/server/lib/connect/pairing.server.test.ts +56 -0
  226. package/src/server/lib/connect/pairing.server.ts +113 -0
  227. package/src/server/lib/connect/qr.roundtrip.test.ts +106 -0
  228. package/src/server/lib/connect/qr.server.ts +36 -0
  229. package/src/server/lib/connect/run.server.ts +101 -0
  230. package/src/server/lib/connect/status.server.ts +177 -0
  231. package/src/server/lib/connect/tailscale.server.test.ts +117 -0
  232. package/src/server/lib/connect/tailscale.server.ts +172 -0
  233. package/src/server/lib/db/schema.ts +4 -0
  234. package/src/server/lib/harness/launch-table.ts +10 -0
  235. package/src/server/lib/omp/session/changes.test.ts +201 -0
  236. package/src/server/lib/omp/session/changes.ts +313 -0
  237. package/src/server/lib/omp/session/session-discovery.test.ts +4 -4
  238. package/src/server/lib/omp/session/sidebar-activity.server.test.ts +6 -2
  239. package/src/server/lib/omp/session/subagent-presence-scan.ts +54 -0
  240. package/src/server/lib/omp/session/subagent-presence-store.test.ts +1 -1
  241. package/src/server/lib/omp/session/subagent-presence.test.ts +115 -0
  242. package/src/server/lib/omp/session/subagent-presence.ts +12 -3
  243. package/src/server/lib/omp/session/telemetry/compute.ts +68 -0
  244. package/src/server/lib/omp/session/telemetry.test.ts +81 -0
  245. package/src/server/routes/connect/devices.ts +56 -0
  246. package/src/server/routes/connect/index.ts +15 -0
  247. package/src/server/routes/connect/pair-page.ts +177 -0
  248. package/src/server/routes/connect/pair.ts +158 -0
  249. package/src/server/routes/connect/status.ts +19 -0
  250. package/src/server/routes/connect/tunnels.ts +76 -0
  251. package/src/server/routes/health/probe.ts +5 -0
  252. package/src/server/routes/index.ts +2 -0
  253. package/src/server/routes/sessions/changes.test.ts +99 -0
  254. package/src/server/routes/sessions/changes.ts +79 -0
  255. package/src/server/routes/sessions/index.ts +7 -0
  256. package/src/shared/lib/chat/duration.ts +34 -0
  257. package/src/shared/lib/chat/timeline/changed-files.test.ts +121 -0
  258. package/src/shared/lib/chat/timeline/changed-files.ts +71 -0
  259. package/src/shared/lib/chat/timeline/fork-anchor.test.ts +3 -0
  260. package/src/shared/lib/connect/payload.test.ts +144 -0
  261. package/src/shared/lib/connect/payload.ts +229 -0
  262. package/src/shared/lib/connect/tier.test.ts +73 -0
  263. package/src/shared/lib/connect/tier.ts +105 -0
  264. package/src/shared/lib/connect/types.ts +99 -0
  265. package/src/shared/lib/format/duration.test.ts +31 -0
  266. package/src/shared/lib/format/duration.ts +27 -0
  267. package/src/shared/lib/fs/unified-diff.test.ts +53 -0
  268. package/src/shared/lib/fs/unified-diff.ts +127 -0
  269. package/src/shared/lib/harness/brand-color.ts +3 -0
  270. package/src/shared/lib/harness/catalog.test.ts +13 -0
  271. package/src/shared/lib/harness/catalog.ts +8 -1
  272. package/src/shared/lib/harness/fork.ts +4 -2
  273. package/src/shared/lib/harness/mcp-facts.ts +3 -0
  274. package/src/shared/lib/harness/provider-facts.ts +14 -0
  275. package/src/shared/lib/harness/updates.ts +5 -0
  276. package/src/shared/lib/icons/tint-hues.generated.ts +27 -27
  277. package/src/shared/lib/markdown/fira-code-fonts.css +65 -6
  278. package/src/shared/lib/markdown/marked.ts +7 -4
  279. package/src/shared/lib/markdown/mermaid-actions.test.ts +78 -0
  280. package/src/shared/lib/markdown/mermaid-actions.ts +45 -0
  281. package/src/shared/lib/markdown/mermaid.ts +41 -7
  282. package/src/shared/lib/omp/config/schema.test.ts +4 -2
  283. package/src/shared/lib/settings/defaults.ts +1 -0
  284. package/src/shared/lib/settings/sections.ts +6 -1
  285. package/src/shared/lib/workspace/file-tab-id.ts +9 -0
  286. package/src/shared/types/context.ts +18 -0
  287. package/src/shared/types/fs.ts +21 -0
  288. package/src/shared/types/index.ts +1 -0
  289. package/src/shared/types/omp/session.ts +6 -0
  290. package/src/shared/types/session-changes.ts +64 -0
  291. package/src/shared/types/settings/state.ts +10 -0
  292. package/dist/client/static/js/LayoutWrapper-xjnveecv.js +0 -2
  293. package/dist/client/static/js/Modal-k2jr9hc4.js +0 -38
  294. package/dist/client/static/js/architecture-7GRP2DOG-1y9zvsyt.js +0 -1
  295. package/dist/client/static/js/bash-m0qjsyy0.js +0 -1
  296. package/dist/client/static/js/css-t4ngafan.js +0 -1
  297. package/dist/client/static/js/cynefin-OW5HDTMX-k2188qcq.js +0 -1
  298. package/dist/client/static/js/eventmodeling-NTZA5JFV-pdr0qn0n.js +0 -1
  299. package/dist/client/static/js/flowDiagram-KWPJA3E3-zvz0mxne.js +0 -1
  300. package/dist/client/static/js/gitGraph-4MIJSDKK-wmqf046s.js +0 -1
  301. package/dist/client/static/js/graphql-692h0n2x.js +0 -1
  302. package/dist/client/static/js/html-pv88ny12.js +0 -1
  303. package/dist/client/static/js/index-61tm0v57.js +0 -1
  304. package/dist/client/static/js/index-e94a1en0.css +0 -1
  305. package/dist/client/static/js/index-kg86e3sy.js +0 -12
  306. package/dist/client/static/js/index-nmmxb4va.js +0 -2
  307. package/dist/client/static/js/info-A6RAGUB7-zg3twte6.js +0 -1
  308. package/dist/client/static/js/ini-cg0a5wm3.js +0 -1
  309. package/dist/client/static/js/java-vcck089n.js +0 -1
  310. package/dist/client/static/js/jsx-ht9zyzwa.js +0 -1
  311. package/dist/client/static/js/lua-ke895s2q.js +0 -1
  312. package/dist/client/static/js/markdown-gwmsh53r.js +0 -1
  313. package/dist/client/static/js/one-dark-pro-4geyzhjj.js +0 -1
  314. package/dist/client/static/js/one-light-tqssjm9t.js +0 -1
  315. package/dist/client/static/js/packet-AYTQ26CC-3pav51g0.js +0 -1
  316. package/dist/client/static/js/pie-WAS4IAKB-wqfh7zdk.js +0 -1
  317. package/dist/client/static/js/properties-mzvvbqg5.js +0 -1
  318. package/dist/client/static/js/python-3w64wsyd.js +0 -1
  319. package/dist/client/static/js/r-32re2zwb.js +0 -1
  320. package/dist/client/static/js/radar-RG4KPBEZ-w7qjdr2g.js +0 -1
  321. package/dist/client/static/js/railroad-74A4TZTK-rhr99kkj.js +0 -1
  322. package/dist/client/static/js/railroad-abnf-HS5TGJTU-c4jeea3m.js +0 -1
  323. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-x2ee66ex.js +0 -1
  324. package/dist/client/static/js/railroad-peg-WCYAUIDC-yw8wjfwg.js +0 -1
  325. package/dist/client/static/js/sql-g8wcshpc.js +0 -1
  326. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y81h9n27.js +0 -8
  327. package/dist/client/static/js/treeView-Q6P3EWNA-ekz05ccs.js +0 -1
  328. package/dist/client/static/js/treemap-WGGIJYW6-aq6qymjr.js +0 -1
  329. package/dist/client/static/js/tsx-0p183w2f.js +0 -1
  330. package/dist/client/static/js/typescript-t9a5jyvv.js +0 -1
  331. package/dist/client/static/js/vennDiagram-UO4OBE2U-7k5jsxf9.js +0 -34
  332. package/dist/client/static/js/wardley-WFR3VGLG-z34tj4y3.js +0 -1
  333. package/dist/client/static/js/xml-81hxjjt4.js +0 -1
  334. package/dist/client/static/js/yaml-yssayv8a.js +0 -1
@@ -42,6 +42,7 @@ import { formatCompactTokens } from '@/shared/lib/format/number';
42
42
  import { CONTEXT_BAND_TONES, contextUsageBand } from '@/shared/lib/chat/context/usage';
43
43
  import { ContextRing } from '@/client/components/common/context-usage-button/Ring';
44
44
  import { McpSection } from '@/client/components/common/context-usage-button/McpSection';
45
+ import { SessionStats } from '@/client/components/common/context-usage-button/SessionStats';
45
46
  import { CONTROL_BOX } from '@/client/lib/ui/control-plate';
46
47
 
47
48
  interface ContextUsageButtonProps {
@@ -127,36 +128,43 @@ export function ContextUsageButton({ sessionId, layout = 'desktop' }: ContextUsa
127
128
  {!started || !telemetry ? (
128
129
  <div className="pt-2 text-[11px] text-ink/50 italic font-sans">Session not started</div>
129
130
  ) : (
130
- <div className="pt-2 space-y-1.5 text-[11px] text-ink/80">
131
- <div className="flex justify-between gap-2">
132
- <span className="text-ink/50 flex-shrink-0">Provider:</span>
133
- <span className="truncate text-right">{providerName || '–'}</span>
134
- </div>
135
- <div className="flex justify-between gap-2">
136
- <span className="text-ink/50 flex-shrink-0">Model:</span>
137
- <span className="truncate text-right">{modelName || '–'}</span>
138
- </div>
139
- <div className="flex justify-between">
140
- <span className="text-ink/50">Context:</span>
141
- <span>
142
- {formatCompactTokens(telemetry.contextUsed) ?? '0'} / {formatCompactTokens(telemetry.contextLimit) ?? '0'} ({percent}%)
143
- </span>
144
- </div>
145
- <div className="flex justify-between">
146
- <span className="text-ink/50">Messages:</span>
147
- <span>{telemetry.messagesCount}</span>
148
- </div>
149
- <div className="flex justify-between">
150
- <span className="text-ink/50">Cost:</span>
151
- <span>{telemetry.costFormatted}</span>
152
- </div>
153
- {typeof telemetry.cacheHitAverage === 'number' && (
131
+ <>
132
+ <div className="pt-2 space-y-1.5 text-[11px] text-ink/80">
133
+ <div className="flex justify-between gap-2">
134
+ <span className="text-ink/50 flex-shrink-0">Provider:</span>
135
+ <span className="truncate text-right">{providerName || '–'}</span>
136
+ </div>
137
+ <div className="flex justify-between gap-2">
138
+ <span className="text-ink/50 flex-shrink-0">Model:</span>
139
+ <span className="truncate text-right">{modelName || '–'}</span>
140
+ </div>
141
+ <div className="flex justify-between">
142
+ <span className="text-ink/50">Context:</span>
143
+ <span>
144
+ {formatCompactTokens(telemetry.contextUsed) ?? '0'} / {formatCompactTokens(telemetry.contextLimit) ?? '0'} ({percent}%)
145
+ </span>
146
+ </div>
154
147
  <div className="flex justify-between">
155
- <span className="text-ink/50">Cache hit:</span>
156
- <span>{telemetry.cacheHitAverage.toFixed(1)}%</span>
148
+ <span className="text-ink/50">Messages:</span>
149
+ <span>{telemetry.messagesCount}</span>
157
150
  </div>
158
- )}
159
- </div>
151
+ <div className="flex justify-between">
152
+ <span className="text-ink/50">Cost:</span>
153
+ <span>{telemetry.costFormatted}</span>
154
+ </div>
155
+ {typeof telemetry.cacheHitAverage === 'number' && (
156
+ <div className="flex justify-between">
157
+ <span className="text-ink/50">Cache hit:</span>
158
+ <span>{telemetry.cacheHitAverage.toFixed(1)}%</span>
159
+ </div>
160
+ )}
161
+ </div>
162
+ <SessionStats
163
+ turns={telemetry.userCount}
164
+ steps={telemetry.assistantCount}
165
+ timing={telemetry.timing}
166
+ />
167
+ </>
160
168
  )}
161
169
  {/* The session's MCP servers, below the context numbers: one popover
162
170
  for "what this chat is running with", and the switch is per
@@ -68,4 +68,12 @@ zcode: { ink: [0, 2, 24, 20], body: "<path d=\"M12.105 2L9.927 4.953H.653L2.83 2
68
68
  jcode: { ink: [52, 52, 408, 408], body: "<path fill-rule=\"evenodd\" d=\"M256 52a204 204 0 1 0 0 408a204 204 0 1 0 0-408zM256 156a100 100 0 1 0 0 200a100 100 0 1 0 0-200z\"></path>" },
69
69
  // Grok's own mark from @lobehub/icons-static-svg (monochrome variant).
70
70
  grok: { ink: [0, 0, 24, 24], body: "<path d=\"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815\"></path>" },
71
+ // Hermes Agent's own mark: Nous Research's "nous girl" portrait, from
72
+ // `assets/nous-girl-black.svg` in NousResearch/hermes-agent. The vendor ships no
73
+ // compact monochrome logo — the source is one 115 KB path of 59 contours — so it
74
+ // was flattened and simplified (Douglas–Peucker, 20/5159 units) to the same
75
+ // 24-unit box every other mark uses, and drawn even-odd because the face is a
76
+ // HOLE in the hair contour. Trademark of Nous Research, not covered by this
77
+ // project's licence.
78
+ hermes: { ink: [0, 0, 22.26, 24], body: "<path fill-rule=\"evenodd\" d=\"M11.42 0.00L10.00 0.14L8.30 0.52L5.77 1.54L3.39 3.12L2.54 3.98L1.99 4.78L1.14 6.85L0.98 8.79L1.33 9.89L1.96 10.68L2.64 11.11L3.30 11.31L2.81 10.82L2.45 9.93L2.88 10.57L3.57 11.15L3.08 15.96L2.79 17.48L2.32 18.32L2.01 18.47L1.50 18.47L0.88 18.00L0.66 16.98L0.93 16.03L0.27 16.99L0.18 18.26L0.40 18.90L0.76 19.37L1.30 19.70L1.89 19.79L2.42 19.69L3.08 19.33L4.04 18.16L3.84 18.90L3.38 19.61L2.79 20.08L2.07 20.23L1.34 20.05L0.63 19.57L0.23 18.99L0.01 18.09L0.18 19.54L0.91 20.55L2.34 21.24L2.58 21.98L3.21 22.50L3.85 22.61L4.50 22.50L5.06 22.10L5.52 21.47L5.05 22.97L4.23 24.00L6.99 24.00L7.66 23.66L7.46 24.00L7.98 23.67L7.88 24.00L8.28 24.00L9.29 22.81L8.39 24.00L9.05 24.00L10.30 22.70L10.22 23.07L13.47 21.21L10.99 24.00L11.58 24.00L12.27 22.66L12.96 21.91L13.93 21.33L15.32 20.92L14.40 21.30L13.35 22.14L12.77 22.88L12.27 24.00L12.83 24.00L13.40 22.88L14.57 21.83L15.51 21.36L16.28 21.26L17.59 21.46L18.42 21.88L19.28 22.82L19.67 24.00L19.95 24.00L19.66 22.95L19.00 21.99L18.06 21.31L16.62 20.90L18.01 21.06L18.92 21.58L19.75 22.61L20.14 24.00L20.36 24.00L20.45 23.32L21.47 22.39L21.89 21.65L22.19 20.48L22.24 19.01L21.81 16.37L19.30 6.11L18.08 3.45L17.30 2.46L16.37 1.62L15.35 0.97L14.15 0.47L12.57 0.08L11.42 0.00ZM9.44 0.47L10.37 0.55L11.37 0.91L12.20 1.45L12.99 2.22L13.83 3.41L14.48 4.81L14.94 6.50L14.65 6.97L15.65 7.67L14.60 7.11L14.50 6.74L14.78 6.54L14.77 6.32L14.69 6.14L14.50 6.12L13.60 6.36L13.61 6.68L13.91 6.78L13.90 7.17L13.32 7.90L13.81 7.06L13.44 6.74L12.82 4.52L11.99 3.05L10.73 1.83L9.79 1.27L8.95 1.01L8.01 0.95L6.84 1.12L8.33 0.60L9.44 0.47ZM6.80 1.12L6.80 1.12ZM17.19 2.53L18.04 3.54L18.60 4.57L19.19 6.07L19.60 7.71L18.66 4.87L17.69 3.25L17.84 3.56L17.87 4.40L17.63 4.17L18.27 5.61L17.53 4.33L17.62 4.75L17.42 4.50L17.40 4.67L17.99 6.33L17.39 5.10L16.94 4.54L17.74 6.53L16.78 4.56L16.44 4.83L15.48 4.47L16.64 7.12L18.21 12.16L18.63 14.04L18.85 15.92L18.20 12.56L16.37 6.66L15.50 4.90L15.61 5.35L15.08 4.77L14.55 4.68L14.43 4.40L15.08 4.44L14.95 3.60L15.37 4.25L16.21 4.41L16.49 4.11L16.05 3.40L16.51 3.91L16.56 3.72L16.95 3.75L16.38 2.85L17.29 3.75L16.83 2.99L17.44 3.79L17.45 3.08L17.19 2.53ZM11.26 2.93L11.84 3.54L12.27 4.32L12.58 4.27L12.83 4.86L12.44 4.68L12.40 4.82L11.63 3.62L11.51 4.00L11.69 4.54L11.43 4.30L11.62 4.96L11.32 4.51L11.27 4.64L11.05 4.58L11.06 4.93L10.86 4.62L10.34 4.60L10.10 4.19L10.42 3.77L10.17 3.29L10.41 3.58L10.74 3.51L10.61 3.00L11.02 3.46L11.41 3.19L11.26 2.93ZM9.27 3.31L9.94 4.13L10.47 5.22L10.59 5.61L10.27 5.30L10.35 6.18L10.01 5.26L9.98 5.97L9.55 5.29L9.65 6.10L9.42 5.48L9.13 5.61L9.15 5.92L8.97 5.64L8.29 5.38L8.20 4.96L8.77 4.69L8.77 4.44L8.93 4.81L9.24 4.53L9.11 3.94L9.51 4.59L9.27 3.31ZM16.04 3.36L16.04 3.36ZM3.60 3.43L3.60 3.43ZM5.51 3.50L4.45 6.18L4.38 5.44L4.00 5.61L3.86 5.89L3.51 5.88L4.45 4.19L3.91 5.35L4.18 5.26L5.51 3.50ZM3.53 3.50L3.53 3.50ZM3.50 3.53L2.46 4.94L1.53 6.97L1.93 5.70L1.77 5.82L1.84 5.55L1.74 5.59L2.03 4.94L3.50 3.53ZM6.68 3.93L6.76 5.81L6.54 5.37L6.54 5.74L6.35 5.39L5.80 5.56L5.72 5.81L5.69 5.55L5.03 5.62L4.84 5.38L5.07 4.70L5.75 4.99L6.04 4.05L5.85 5.05L6.32 4.92L6.68 3.93ZM6.06 3.96L6.06 3.96ZM3.55 4.03L3.09 4.78L3.30 4.83L3.90 4.05L3.28 5.12L3.70 5.07L3.86 4.90L3.20 6.46L3.24 5.96L3.00 6.19L2.89 5.55L2.26 7.13L2.64 5.76L2.13 5.81L2.26 5.43L2.66 4.72L2.99 4.73L3.55 4.03ZM7.87 4.28L8.22 5.76L7.98 5.41L7.09 5.28L7.06 5.54L6.85 4.95L6.82 4.49L7.82 4.61L7.87 4.28ZM3.92 4.74L3.92 4.74ZM3.89 4.79L3.89 4.79ZM12.43 4.84L12.43 4.84ZM11.65 4.97L11.65 4.97ZM18.28 5.64L18.28 5.64ZM18.31 5.72L18.31 5.72ZM6.94 5.94L6.94 5.94ZM6.96 6.02L7.44 7.36L8.15 8.75L7.81 8.78L7.48 8.13L6.96 6.02ZM18.00 6.36L18.00 6.36ZM17.75 6.56L17.75 6.56ZM19.62 7.75L19.63 7.85L19.62 7.75ZM19.65 7.92L19.65 7.92ZM4.69 8.00L4.69 8.00ZM4.71 8.04L5.82 9.27L6.82 9.08L6.44 9.70L8.22 8.87L8.57 9.24L10.35 9.22L10.42 8.64L10.61 9.23L11.53 9.43L11.51 11.61L10.65 16.98L10.73 18.54L10.14 19.08L9.41 17.99L8.80 17.44L6.64 17.62L5.82 17.43L4.61 15.42L4.04 13.77L4.10 12.44L4.26 12.83L4.80 13.46L4.63 14.15L5.12 15.43L5.40 15.63L5.31 15.47L5.76 15.29L5.13 15.30L5.03 15.05L5.19 14.89L6.23 14.89L6.32 14.95L6.06 15.10L6.67 14.90L6.61 14.72L6.32 14.71L5.55 14.31L5.02 14.30L4.79 14.00L4.91 13.47L4.23 12.56L4.24 12.27L4.81 11.75L5.17 10.99L5.11 10.50L4.72 10.06L4.29 9.92L4.96 10.40L4.45 10.26L4.07 10.37L4.97 10.44L5.11 10.81L4.52 10.42L3.97 10.50L3.74 10.01L4.09 9.82L4.60 9.84L4.34 9.59L5.29 9.33L4.71 8.04ZM7.99 9.40L7.13 9.61L6.87 9.98L7.35 9.78L7.02 10.09L7.14 10.09L6.94 10.24L7.14 10.17L6.98 10.44L7.15 10.35L7.16 10.56L7.69 9.98L7.58 10.39L7.75 10.59L7.66 10.68L8.11 11.10L8.39 11.08L8.68 10.85L8.81 10.25L9.30 10.53L9.28 10.64L8.99 11.00L8.43 11.22L7.11 11.09L7.40 11.21L7.39 11.35L8.05 11.36L8.14 11.47L8.22 11.36L8.99 11.34L8.91 11.21L9.25 11.22L9.11 11.08L9.39 11.02L9.24 10.94L9.65 10.81L9.43 10.74L9.78 10.62L9.60 10.57L10.08 10.35L9.72 10.31L9.93 10.18L9.46 10.21L9.47 10.10L8.61 9.67L7.82 9.50L8.35 9.50L9.12 9.79L7.99 9.40ZM7.21 9.60L7.21 9.60ZM7.39 9.63L7.39 9.63ZM7.17 9.64L7.17 9.64ZM7.32 9.66L7.32 9.66ZM7.24 9.69L6.96 9.92L7.24 9.69ZM9.17 9.80L9.17 9.80ZM14.89 10.12L15.37 10.26L15.66 10.56L13.94 10.48L14.33 10.19L14.89 10.12ZM7.16 10.71L7.18 10.84L7.16 10.71ZM4.34 10.75L4.71 11.67L4.55 11.78L4.38 11.79L4.23 11.47L4.20 10.89L4.34 10.75ZM4.20 11.90L4.43 11.96L4.15 12.21L4.20 11.90ZM4.97 12.83L5.39 13.18L5.29 12.94L4.97 12.83ZM17.31 13.98L17.39 15.20L17.28 16.17L17.31 13.98ZM4.77 14.10L4.95 14.40L4.77 14.10ZM5.26 14.29L5.66 14.46L5.19 14.46L5.09 14.37L5.26 14.29ZM5.20 14.53L5.20 14.53ZM5.37 14.60L5.25 14.71L5.37 14.60ZM13.33 14.68L13.48 16.54L12.48 17.18L13.33 14.68ZM19.82 14.70L20.30 17.62L20.06 19.91L20.20 17.88L19.82 14.70ZM5.36 14.93L5.31 15.21L5.36 14.93ZM17.26 16.22L17.26 16.22ZM16.60 16.33L16.60 16.33ZM16.58 16.45L16.34 17.30L16.58 16.45ZM13.57 17.24L13.74 18.19L13.14 18.67L12.64 18.65L12.36 18.03L13.57 17.24ZM16.32 17.32L16.32 17.32ZM16.29 17.41L16.29 17.41ZM5.05 19.04L4.80 20.37L4.23 21.35L3.60 21.71L3.07 21.70L2.74 21.49L2.60 21.27L3.58 21.18L4.21 20.77L4.69 20.04L5.05 19.04ZM10.93 19.12L11.48 20.01L12.81 20.92L11.68 21.67L9.94 22.47L8.83 20.47L9.72 20.25L10.93 19.12ZM20.05 19.98L20.03 20.07L20.05 19.98ZM20.02 20.15L20.02 20.15Z\"></path>" },
71
79
  };
@@ -3,7 +3,7 @@ import { useSearchParams } from '@/client/lib/router/search-params';
3
3
  import { clearBranchParams, newSessionParams } from '@/client/lib/router/branch-params';
4
4
  import { useKabmoEvent } from '@/client/hooks/ui/window-event';
5
5
  import { useMobileBackStack } from '@/client/hooks/workspace/mobile-back';
6
- import type { SettingsCategoryId } from '@/shared/types';
6
+ import type { JournalDiffRef, SettingsCategoryId } from '@/shared/types';
7
7
  import { MobileMainView } from '@/client/components/mobile/MainView';
8
8
  import { WindowAura } from '@/client/components/layout/WindowAura';
9
9
  import { ShellNotice } from '@/client/components/layout/ShellNotice';
@@ -50,7 +50,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
50
50
 
51
51
  const [currentScreen, setCurrentScreen] = useState<MobileScreen>('main');
52
52
  const [mobileEditorFile, setMobileEditorFile] = useState<MobileEditorFile | null>(null);
53
- const [mobileDiff, setMobileDiff] = useState<{ path: string; status?: string; staged?: boolean; repo?: string; root?: string } | null>(null);
53
+ const [mobileDiff, setMobileDiff] = useState<{ path: string; status?: string; staged?: boolean; repo?: string; root?: string; journal?: JournalDiffRef } | null>(null);
54
54
  // Bumped whenever a write lands so the workspace panels (explorer, git,
55
55
  // context) re-read from disk — the same signal the desktop layout passes down.
56
56
  const [refreshKey, setRefreshKey] = useState(0);
@@ -121,7 +121,15 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
121
121
  // phone the same event opens the full-screen diff; without a listener here
122
122
  // the tap was silently dropped.
123
123
  useKabmoEvent('omp:open-diff', (e) => {
124
- const detail = (e as CustomEvent<{ file?: string; status?: string; staged?: boolean; repo?: string; root?: string }>).detail;
124
+ const detail = (e as CustomEvent<{
125
+ file?: string;
126
+ status?: string;
127
+ staged?: boolean;
128
+ repo?: string;
129
+ root?: string;
130
+ source?: 'journal';
131
+ journal?: JournalDiffRef;
132
+ }>).detail;
125
133
  if (!detail?.file) return;
126
134
  setMobileDiff({
127
135
  path: detail.file.replace(/^\/+/, ''),
@@ -129,6 +137,7 @@ export function MobileLayoutWrapper({ onDesktopToggle, appSettings = {} }: Mobil
129
137
  staged: detail.staged,
130
138
  repo: detail.repo,
131
139
  root: detail.root ?? activeProjectPath ?? undefined,
140
+ ...(detail.source === 'journal' && detail.journal ? { journal: detail.journal } : {}),
132
141
  });
133
142
  });
134
143
 
@@ -2,8 +2,9 @@ import { ArrowLeft } from 'lucide-preact';
2
2
  import { FileIcon } from '@/client/components/common/file-icon';
3
3
  import { DiffPanel } from '@/client/components/workspace/diff-panel';
4
4
  import { getGitStatusInfo } from '@/shared/lib/fs/git-status';
5
- import { diffTabId } from '@/shared/lib/workspace/file-tab-id';
5
+ import { diffTabId, journalDiffTabId } from '@/shared/lib/workspace/file-tab-id';
6
6
  import { titlebarPaddingLeft, titlebarPaddingRight } from '@/shared/lib/ui/titlebar';
7
+ import type { JournalDiffRef } from '@/shared/types/fs';
7
8
 
8
9
  interface MobileFullDiffProps {
9
10
  diff: {
@@ -12,6 +13,8 @@ interface MobileFullDiffProps {
12
13
  staged?: boolean;
13
14
  repo?: string;
14
15
  root?: string;
16
+ /** Present when the two sides come from the agent change journal. */
17
+ journal?: JournalDiffRef;
15
18
  };
16
19
  onClose: () => void;
17
20
  onFileSaved?: () => void;
@@ -77,10 +80,14 @@ export function MobileFullDiff({ diff, onClose, onFileSaved }: MobileFullDiffPro
77
80
  isStaged={isStaged}
78
81
  root={diff.root}
79
82
  repo={diff.repo || '.'}
83
+ journalDiff={diff.journal}
84
+ readOnly={Boolean(diff.journal)}
80
85
  onFileSaved={onFileSaved}
81
86
  // The same id a desktop diff tab uses for this path+staged pair, so a
82
87
  // diff read on the phone and one read on the desktop share an offset.
83
- tabKey={diffTabId(diff.path, isStaged)}
88
+ tabKey={diff.journal
89
+ ? journalDiffTabId(diff.journal.path, diff.journal.from, diff.journal.to)
90
+ : diffTabId(diff.path, isStaged)}
84
91
  />
85
92
  </div>
86
93
  </div>
@@ -12,27 +12,9 @@ import { useKabmoEvent } from '@/client/hooks/ui/window-event';
12
12
  import { useToasts } from '@/client/hooks/ui/toasts';
13
13
  import { useDialogBehaviour } from '@/client/hooks/ui/dialog-behaviour';
14
14
  import { SettingsSidebar, settingsCategoriesFor } from '@/client/components/settings/Sidebar';
15
- import { harnessIdFromCategory } from '@/shared/lib/harness/menu';
16
15
  import { useHarnesses } from '@/client/hooks/models/use-harnesses';
17
- import { AppearanceSettings } from '@/client/components/settings/categories/AppearanceSettings';
18
- import { ChatSettings } from '@/client/components/settings/categories/ChatSettings';
19
- import { KeyboardSettings } from '@/client/components/settings/categories/KeyboardSettings';
20
- import { ProjectSettings } from '@/client/components/settings/categories/ProjectSettings';
21
- import { ProviderSettings } from '@/client/components/settings/categories/ProviderSettings';
22
- import { AgentSettings } from '@/client/components/settings/categories/AgentSettings';
23
- import { BehaviorSettings } from '@/client/components/settings/categories/BehaviorSettings';
24
- import { CommandSettings } from '@/client/components/settings/categories/CommandSettings';
25
- import { McpSettings } from '@/client/components/settings/categories/McpSettings';
26
- import { HarnessSettings } from '@/client/components/settings/categories/HarnessSettings';
27
- import { SkillSettings } from '@/client/components/settings/categories/SkillSettings';
28
- import { PluginSettings } from '@/client/components/settings/categories/PluginSettings';
29
- import { PanelPluginSettings } from '@/client/components/settings/categories/PanelPluginSettings';
30
- import { SkillCatalogSettings, type CatalogTab } from '@/client/components/settings/categories/SkillCatalogSettings';
31
- import { OtherSettings } from '@/client/components/settings/categories/OtherSettings';
32
- import { OmpSettings } from '@/client/components/settings/categories/OmpSettings';
33
- import { TokenUsageSettings } from '@/client/components/settings/categories/TokenUsageSettings';
34
- import { UsageSettings } from '@/client/components/settings/categories/UsageSettings';
35
- import { NotificationSettings } from '@/client/components/settings/categories/NotificationSettings';
16
+ import { CategoryContent } from '@/client/components/settings/category-content';
17
+ import type { CatalogTab } from '@/client/components/settings/categories/SkillCatalogSettings';
36
18
 
37
19
  export interface SettingsModalProps {
38
20
  isOpen: boolean;
@@ -151,69 +133,6 @@ export function SettingsModal({
151
133
  const categories = settingsCategoriesFor(harnesses.map((entry) => entry.id));
152
134
  const currentCategoryDef = categories.find(c => c.id === activeCategory) || categories[0];
153
135
 
154
- const renderCategoryContent = () => {
155
- switch (activeCategory) {
156
- case 'appearance':
157
- return <AppearanceSettings settings={settings} onUpdate={handleUpdateSettings} />;
158
- case 'chats':
159
- return <ChatSettings settings={settings} onUpdate={handleUpdateSettings} />;
160
- case 'keyboard':
161
- return <KeyboardSettings settings={settings} onUpdate={handleUpdateSettings} />;
162
- case 'projects':
163
- return <ProjectSettings />;
164
- case 'providers':
165
- return (
166
- <ProviderSettings
167
- autoOpenAdd={autoOpenAdd}
168
- onAddModalClose={() => setAutoOpenAdd(false)}
169
- />
170
- );
171
- case 'agents':
172
- return <AgentSettings settings={settings} onUpdate={handleUpdateSettings} />;
173
- case 'harness-index':
174
- return <HarnessSettings />;
175
- case 'behavior':
176
- return <BehaviorSettings />;
177
- case 'commands':
178
- return <CommandSettings settings={settings} onUpdate={handleUpdateSettings} />;
179
- case 'mcp':
180
- return <McpSettings settings={settings} onUpdate={handleUpdateSettings} />;
181
- case 'token-usage':
182
- return <TokenUsageSettings settings={settings} onUpdate={handleUpdateSettings} />;
183
- case 'notifications':
184
- return <NotificationSettings settings={settings} onUpdate={handleUpdateSettings} />;
185
- case 'plugins':
186
- return <PluginSettings />;
187
- case 'panel-plugins':
188
- return <PanelPluginSettings />;
189
- case 'skills':
190
- return (
191
- <SkillSettings
192
- settings={settings}
193
- onUpdate={handleUpdateSettings}
194
- onNavigateToCatalog={(tab) => {
195
- setCatalogTab(tab ?? 'browse');
196
- setActiveCategory('skills-catalog');
197
- }}
198
- />
199
- );
200
- case 'skills-catalog':
201
- return <SkillCatalogSettings initialTab={catalogTab} />;
202
- case 'omp':
203
- return <OmpSettings settings={settings} onUpdate={handleUpdateSettings} />;
204
- case 'usage':
205
- return <UsageSettings />;
206
- default: {
207
- // A single harness page: its own card, verbatim — the same component the
208
- // overview draws, because a second renderer for one agent is how the two
209
- // views start disagreeing about what it can do.
210
- const harnessId = harnessIdFromCategory(activeCategory);
211
- if (harnessId) return <HarnessSettings only={harnessId} />;
212
- return <OtherSettings category={activeCategory} />;
213
- }
214
- }
215
- };
216
-
217
136
  return (
218
137
  <div
219
138
  className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center p-0 md:p-6 animate-in fade-in duration-150"
@@ -298,7 +217,18 @@ export function SettingsModal({
298
217
  style={{ paddingBottom: 'env(safe-area-inset-bottom, 0px)' }}
299
218
  >
300
219
  <div className="w-full h-full flex-1 flex flex-col">
301
- {renderCategoryContent()}
220
+ <CategoryContent
221
+ category={activeCategory}
222
+ settings={settings}
223
+ onUpdate={handleUpdateSettings}
224
+ autoOpenAdd={autoOpenAdd}
225
+ onAddModalClose={() => setAutoOpenAdd(false)}
226
+ catalogTab={catalogTab}
227
+ onNavigateToCatalog={(tab) => {
228
+ setCatalogTab(tab ?? 'browse');
229
+ setActiveCategory('skills-catalog');
230
+ }}
231
+ />
302
232
  </div>
303
233
  </div>
304
234
  </div>
@@ -1,5 +1,5 @@
1
1
  import type { LucideIcon } from 'lucide-preact';
2
- import { BarChart3, Bell, BookOpen, Bot, Boxes, Cloud, Coins, Cpu, FolderGit, Keyboard, Library, MessageSquare, Palette, Plug, Power, Puzzle, RefreshCw, Search, Sliders, Terminal, Waypoints, X } from 'lucide-preact';
2
+ import { BarChart3, Bell, BookOpen, Bot, Boxes, Cloud, Coins, Cpu, FolderGit, Keyboard, Library, MessageSquare, Palette, Plug, Power, Puzzle, Radio, RefreshCw, Search, Sliders, Terminal, Waypoints, X } from 'lucide-preact';
3
3
  import { HarnessGlyph } from '@/client/components/common/harness-glyph';
4
4
  import type { SettingsCategoryId } from '@/shared/types';
5
5
  import { SETTINGS_SECTIONS, type SettingsSection } from '@/shared/lib/settings/sections';
@@ -28,6 +28,8 @@ export const SETTINGS_CATEGORIES: CategoryDef[] = [
28
28
  { id: 'usage', label: 'Usage', icon: BarChart3, section: 'KABMO', description: 'Build minutes quota, storage, and general usage.' },
29
29
  { id: 'token-usage', label: 'Token Usage', icon: Coins, section: 'KABMO', description: 'Token telemetry, cache, and cost breakdown.' },
30
30
  { id: 'panel-plugins', label: 'Plugins Kabmo', icon: Puzzle, section: 'KABMO', description: 'Plugins installed into Kabmo: panels, background services, and the MCP servers they register.' },
31
+ // CONNECT
32
+ { id: 'connect', label: 'Connect', icon: Radio, section: 'CONNECT', description: 'Tunnels, addresses, and the devices paired to this server.' },
31
33
  // WORKSPACE
32
34
  { id: 'projects', label: 'Projects', icon: FolderGit, section: 'WORKSPACE', description: 'Workspace directories, roots, and ignored paths.' },
33
35
  // OMP
@@ -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 { CHANGED_FILES_CHANGED_EVENT } from '@/client/hooks/chat/timeline/changed-files-setting';
26
27
  import { EDITOR_FONT_CHANGED_EVENT } from '@/client/hooks/editor/font';
27
28
  import type { SettingsState } from '@/shared/types';
28
29
 
@@ -76,6 +77,16 @@ describe('applySettingsSideEffects', () => {
76
77
  expect(seen).toEqual([]);
77
78
  });
78
79
 
80
+ test('announces the changed-files toggle so the open timeline redraws', () => {
81
+ const win = installDom();
82
+ const seen: unknown[] = [];
83
+ win.addEventListener(CHANGED_FILES_CHANGED_EVENT, (event) => seen.push((event as unknown as CustomEvent).detail));
84
+
85
+ applySettingsSideEffects(state(), state({ showChangedFiles: false }));
86
+
87
+ expect(seen).toEqual([false]);
88
+ });
89
+
79
90
  test('an unrelated edit announces nothing at all', () => {
80
91
  const win = installDom();
81
92
  const events: string[] = [];
@@ -31,6 +31,7 @@ import type { SettingsState } from '@/shared/types';
31
31
  import { applyDocumentTheme } from '@/client/hooks/ui/theme';
32
32
  import { applyChatWidthMode } from '@/client/hooks/chat/timeline/width-mode';
33
33
  import { applyToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
34
+ import { applyShowChangedFiles } from '@/client/hooks/chat/timeline/changed-files-setting';
34
35
  import { applySidebarStyle } from '@/client/hooks/workspace/sidebar-style';
35
36
  import { applyComposerStyle } from '@/client/hooks/chat/composer/style';
36
37
  import { applySurfaceStyle } from '@/client/hooks/ui/surface-style';
@@ -75,6 +76,12 @@ export function applySettingsSideEffects(previous: SettingsState, next: Settings
75
76
  applyToolRenderMode(next.toolRenderStyle);
76
77
  }
77
78
 
79
+ // The changed-files list is a Preact subtree above each run footer, so the
80
+ // open timeline has to hear about the change now.
81
+ if (next.showChangedFiles !== previous.showChangedFiles) {
82
+ applyShowChangedFiles(next.showChangedFiles);
83
+ }
84
+
78
85
  // The sidebar style picks a Preact tree for the whole left column, and the
79
86
  // sidebar is visible BEHIND this modal — so this is the one setting whose
80
87
  // effect the user watches happen.
@@ -94,7 +94,7 @@ describe('ChatSettings master/detail', () => {
94
94
 
95
95
  act(() => groupRow('Transcript').click());
96
96
 
97
- expect(headings()).toEqual(['Tool Calls', 'Follow-up Dispatch']);
97
+ expect(headings()).toEqual(['Tool Calls', 'Changed Files', 'Follow-up Dispatch']);
98
98
  expect(groupRow('Transcript').getAttribute('aria-current')).toBe('true');
99
99
  expect(updates).toBe(0);
100
100
  });
@@ -33,6 +33,7 @@ import {
33
33
  import { ChatLayoutSection } from '@/client/components/settings/categories/chat-settings/LayoutSection';
34
34
  import { ComposerStyleSection } from '@/client/components/settings/categories/chat-settings/ComposerStyleSection';
35
35
  import { ChatToolRenderSection } from '@/client/components/settings/categories/chat-settings/ToolRenderSection';
36
+ import { ChatChangedFilesSection } from '@/client/components/settings/categories/chat-settings/ChangedFilesSection';
36
37
  import { ChatFollowUpSection } from '@/client/components/settings/categories/chat-settings/FollowUpSection';
37
38
  import { ChatTitleSection } from '@/client/components/settings/categories/chat-settings/TitleSection';
38
39
  import { ChatGoalSection } from '@/client/components/settings/categories/chat-settings/GoalSection';
@@ -49,6 +50,7 @@ const SECTIONS: Record<ChatSectionId, (props: SectionProps) => ComponentChildren
49
50
  width: ChatLayoutSection,
50
51
  composer: ComposerStyleSection,
51
52
  'tool-calls': ChatToolRenderSection,
53
+ 'changed-files': ChatChangedFilesSection,
52
54
  'follow-up': ChatFollowUpSection,
53
55
  titles: ChatTitleSection,
54
56
  goal: ChatGoalSection,
@@ -0,0 +1,105 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * Settings → Connect.
8
+ *
9
+ * Three blocks, one page: this server's identity and addresses, the two tunnel
10
+ * providers, and the devices that have been paired. No master-detail, because
11
+ * there is nothing to drill into — the only list is the device table, and it is
12
+ * short by construction (a person pairs a handful of devices, not hundreds).
13
+ *
14
+ * The page's job is to make the route order visible. Tailscale is the preferred
15
+ * route even on the same network: it is a direct WireGuard peer connection, so
16
+ * it costs a fraction of a millisecond over the LAN address, and it is the only
17
+ * one of the two that gives the page a secure origin — which is what keeps
18
+ * dictation, clipboard read and the service worker working. The LAN row is the
19
+ * fallback for a device with no tailnet, and it says so when it cannot answer.
20
+ */
21
+
22
+ import { useCallback, useState } from 'preact/hooks';
23
+ import { useConnectStatus } from '@/client/hooks/connect/use-connect-status';
24
+ import { usePairing } from '@/client/hooks/connect/use-pairing';
25
+ import { ServerCard } from '@/client/components/settings/categories/connect-settings/ServerCard';
26
+ import { TunnelRow } from '@/client/components/settings/categories/connect-settings/TunnelRow';
27
+ import { DeviceTable } from '@/client/components/settings/categories/connect-settings/DeviceTable';
28
+ import { PairDialog } from '@/client/components/settings/categories/connect-settings/PairDialog';
29
+
30
+ export function ConnectSettings() {
31
+ const { status, error, busy, refresh, setTunnel, revoke } = useConnectStatus();
32
+ const pairing = usePairing();
33
+ const [dialogOpen, setDialogOpen] = useState(false);
34
+
35
+ const openDialog = useCallback(() => {
36
+ setDialogOpen(true);
37
+ void pairing.create();
38
+ }, [pairing]);
39
+
40
+ const closeDialog = useCallback(() => {
41
+ setDialogOpen(false);
42
+ pairing.reset();
43
+ // A device that paired while the dialog was open appears on the next read;
44
+ // the dialog has no way to know, so the page asks once it closes.
45
+ void refresh();
46
+ }, [pairing, refresh]);
47
+
48
+ if (!status) {
49
+ return (
50
+ <div className="mx-auto w-full max-w-3xl">
51
+ <p className="text-[11px] text-ink/60">{error ?? 'Reading the connection state…'}</p>
52
+ </div>
53
+ );
54
+ }
55
+
56
+ return (
57
+ <div className="mx-auto w-full max-w-3xl space-y-4">
58
+ <p className="text-[11px] leading-relaxed text-ink/60">
59
+ Reach this server from your phone or another desktop without typing an address or a password.
60
+ </p>
61
+
62
+ {error && (
63
+ <p className="rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70">
64
+ {error}
65
+ </p>
66
+ )}
67
+
68
+ <ServerCard status={status} />
69
+
70
+ <section className="rounded-xl border border-ink/10 bg-paper">
71
+ <header className="border-b border-ink/10 px-4 py-3">
72
+ <h4 className="text-sm font-semibold text-ink">Tunnels</h4>
73
+ </header>
74
+ <div className="divide-y divide-ink/10">
75
+ {status.tunnels.map((tunnel) => (
76
+ <TunnelRow
77
+ key={tunnel.provider}
78
+ tunnel={tunnel}
79
+ busy={busy === `${tunnel.provider}:start` || busy === `${tunnel.provider}:stop`}
80
+ onToggle={(next) => void setTunnel(tunnel.provider, next)}
81
+ />
82
+ ))}
83
+ </div>
84
+ </section>
85
+
86
+ <DeviceTable
87
+ devices={status.devices}
88
+ busy={busy}
89
+ onRevoke={(id) => void revoke(id)}
90
+ onAdd={openDialog}
91
+ />
92
+
93
+ {dialogOpen && (
94
+ <PairDialog
95
+ code={pairing.code}
96
+ error={pairing.error}
97
+ busy={pairing.busy}
98
+ secondsLeft={pairing.secondsLeft}
99
+ onClose={closeDialog}
100
+ onRetry={() => void pairing.create()}
101
+ />
102
+ )}
103
+ </div>
104
+ );
105
+ }
@@ -209,7 +209,7 @@ export function NotificationSettings({ settings, onUpdate }: NotificationSetting
209
209
  <div className="pt-3 border-t border-ink/10 flex items-center justify-between">
210
210
  <span className="text-[11px] text-ink/60 flex items-center gap-1.5">
211
211
  <Sparkles size={13} className="text-ink/60" />
212
- Warm harmonic chime synthesized natively via Web Audio
212
+ Warm two-tone chime — the app's system notification plays it; a browser plays it here
213
213
  </span>
214
214
 
215
215
  <button
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * Settings → Chats → Transcript → Changed files.
8
+ *
9
+ * One switch over the collapsed "N files changed" list above each run footer.
10
+ * The list is read from the session's agent change journal, so turning it off
11
+ * also stops the read — a reader who does not want the summary pays neither the
12
+ * request nor the space.
13
+ */
14
+
15
+ import { FileDiff } from 'lucide-preact';
16
+ import type { SettingsState } from '@/shared/types';
17
+
18
+ interface ChatChangedFilesSectionProps {
19
+ settings: SettingsState;
20
+ onUpdate: (updater: Partial<SettingsState> | ((prev: SettingsState) => SettingsState)) => void;
21
+ }
22
+
23
+ function Switch({ label, enabled, onToggle }: { label: string; enabled: boolean; onToggle: () => void }) {
24
+ return (
25
+ <button
26
+ type="button"
27
+ role="switch"
28
+ aria-checked={enabled}
29
+ aria-label={`${enabled ? 'Disable' : 'Enable'} ${label}`}
30
+ onClick={onToggle}
31
+ className={`relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${
32
+ enabled ? 'bg-ink' : 'bg-ink/20'
33
+ }`}
34
+ >
35
+ <span
36
+ aria-hidden="true"
37
+ className={`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-paper shadow ring-0 transition duration-200 ease-in-out ${
38
+ enabled ? 'translate-x-5' : 'translate-x-0'
39
+ }`}
40
+ />
41
+ </button>
42
+ );
43
+ }
44
+
45
+ export function ChatChangedFilesSection({ settings, onUpdate }: ChatChangedFilesSectionProps) {
46
+ const enabled = settings.showChangedFiles;
47
+
48
+ return (
49
+ <section className="space-y-3">
50
+ <div>
51
+ <h4 className="text-sm font-semibold text-ink">Changed Files</h4>
52
+ <p className="text-[11px] text-ink/60 mt-0.5">
53
+ A collapsed list of the files a run changed, above its footer. Clicking a file opens the
54
+ agent&apos;s own diff — the content it wrote, not the current worktree.
55
+ </p>
56
+ </div>
57
+
58
+ <div className="flex items-start justify-between gap-4 py-3">
59
+ <div className="flex items-start gap-3">
60
+ <div className="w-8 h-8 rounded-md bg-ink/5 border border-ink/10 flex items-center justify-center flex-shrink-0 mt-0.5">
61
+ <FileDiff size={16} className={enabled ? 'text-ink' : 'text-ink/40'} />
62
+ </div>
63
+ <div>
64
+ <div className="text-sm font-semibold text-ink">Show changed files</div>
65
+ <p className="text-ink/65 text-[11px] mt-1 leading-relaxed">
66
+ Read from the session&apos;s change journal. Sessions recorded before omp 18.20.1 have
67
+ no journal, so the list stays empty there.
68
+ </p>
69
+ </div>
70
+ </div>
71
+ <Switch
72
+ label="Show changed files"
73
+ enabled={enabled}
74
+ onToggle={() => onUpdate({ showChangedFiles: !enabled })}
75
+ />
76
+ </div>
77
+ </section>
78
+ );
79
+ }
@@ -23,6 +23,7 @@ export const CHAT_SECTION_IDS = [
23
23
  'width',
24
24
  'composer',
25
25
  'tool-calls',
26
+ 'changed-files',
26
27
  'follow-up',
27
28
  'titles',
28
29
  'goal',
@@ -55,11 +56,11 @@ export const CHAT_SETTING_GROUPS: readonly ChatSettingGroup[] = [
55
56
  {
56
57
  id: 'transcript',
57
58
  label: 'Transcript',
58
- hint: 'Tool calls and follow-up dispatch',
59
+ hint: 'Tool calls, changed files and follow-up dispatch',
59
60
  description:
60
- 'How a tool call is drawn, and what happens to a prompt sent while the agent is still running.',
61
+ 'How a tool call is drawn, whether a run lists the files it changed, and what happens to a prompt sent while the agent is still running.',
61
62
  icon: ListOrdered,
62
- sections: ['tool-calls', 'follow-up'],
63
+ sections: ['tool-calls', 'changed-files', 'follow-up'],
63
64
  },
64
65
  {
65
66
  id: 'sessions',