@kabmo-labs/kabmo 0.32.1 → 0.33.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 (266) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +542 -535
  3. package/dist/client/static/js/{CsvGrid-4gx0jevc.js → CsvGrid-fncjbg6j.js} +2 -2
  4. package/dist/client/static/js/{DocxView-0667nr8h.js → DocxView-c9v2vr3r.js} +2 -2
  5. package/dist/client/static/js/{DrawioView-522v0d0r.js → DrawioView-vxjksm12.js} +2 -2
  6. package/dist/client/static/js/{ImageView-t8xp60hm.js → ImageView-a3g5k226.js} +1 -1
  7. package/dist/client/static/js/LayoutWrapper-hnjfwsjh.js +2 -0
  8. package/dist/client/static/js/Modal-qtftcp2t.js +38 -0
  9. package/dist/client/static/js/{PdfView-3fx172xh.js → PdfView-ksaes53y.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-n3agmf5t.js → SessionsView-30vcr95v.js} +1 -1
  11. package/dist/client/static/js/{SheetView-nmrdb1b8.js → SheetView-vc484scg.js} +6 -6
  12. package/dist/client/static/js/{SvgPreview-0xsc6xam.js → SvgPreview-tph89jet.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-jj31rs62.js → abnfDiagram-O67JEVCF-xbar278c.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-tavtgb8a.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-ay3yr7pf.js → architectureDiagram-NJMV4G6O-s171n2z6.js} +3 -3
  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-gzx6rv9n.js} +2 -2
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-dtb81cgz.js → c4Diagram-YGBWAQC7-7f00skch.js} +2 -2
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-vk5a2n9w.js → classDiagram-v2-NBCMYWYE-j79v95nc.js} +4 -4
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-6rbjbe19.js → cose-bilkent-JH36ORCC-5fkn7ee5.js} +1 -1
  22. package/dist/client/static/js/css-6vj0d308.js +1 -0
  23. package/dist/client/static/js/cynefin-OW5HDTMX-cdh3n2z2.js +1 -0
  24. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-vyjksedr.js → cynefinDiagram-VND7K2PF-cfs1yvrd.js} +2 -2
  25. package/dist/client/static/js/{dagre-6A5THRUB-7hey38z5.js → dagre-6A5THRUB-44bgc48p.js} +2 -2
  26. package/dist/client/static/js/{diagram-22UHCM2B-aes06jde.js → diagram-22UHCM2B-a4g4x83k.js} +14 -14
  27. package/dist/client/static/js/{diagram-3UASUU5V-3cfkgm3x.js → diagram-3UASUU5V-gm4rg5na.js} +1 -1
  28. package/dist/client/static/js/{diagram-ATOU4E4O-z8mfhwpy.js → diagram-ATOU4E4O-a95y41vk.js} +3 -3
  29. package/dist/client/static/js/{diagram-CDSNMT55-t4821ctz.js → diagram-CDSNMT55-t3j93mmc.js} +5 -5
  30. package/dist/client/static/js/{diagram-MLGK6HIB-23yxbfrx.js → diagram-MLGK6HIB-c2wdez02.js} +1 -1
  31. package/dist/client/static/js/{diagram-MPIPVDR6-chhtf7v0.js → diagram-MPIPVDR6-gya9jhs5.js} +2 -2
  32. package/dist/client/static/js/{dockerfile-5b87ghm7.js → dockerfile-a7q6174s.js} +1 -1
  33. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-9jejcvfr.js → ebnfDiagram-ZINNZB2B-jjhkza6t.js} +1 -1
  34. package/dist/client/static/js/{elk-276RUBZZ-xhhtkf58.js → elk-276RUBZZ-f7re45mw.js} +1 -1
  35. package/dist/client/static/js/{erDiagram-OPXOYQCR-mt2apjjb.js → erDiagram-OPXOYQCR-tpm9g5te.js} +6 -6
  36. package/dist/client/static/js/{erlang-6m6tpt72.js → erlang-qt876zrq.js} +1 -1
  37. package/dist/client/static/js/eventmodeling-NTZA5JFV-as97tpyp.js +1 -0
  38. package/dist/client/static/js/flowDiagram-KWPJA3E3-ggm06d12.js +1 -0
  39. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-8cm7a29w.js → ganttDiagram-FUAMR5RP-fz43n12d.js} +3 -3
  40. package/dist/client/static/js/gitGraph-4MIJSDKK-eqz7p9ng.js +1 -0
  41. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-5s0gbnx2.js → gitGraphDiagram-X574FWY7-f61hgbn6.js} +9 -9
  42. package/dist/client/static/js/graphql-n43pd5fs.js +1 -0
  43. package/dist/client/static/js/{index-z5s27s26.js → index-03h3bkcf.js} +1 -1
  44. package/dist/client/static/js/{index-360d7j0d.js → index-0e40xskg.js} +1 -1
  45. package/dist/client/static/js/{index-z4v1xmh1.js → index-0n5wwe60.js} +2 -2
  46. package/dist/client/static/js/{index-pf7syd7t.js → index-0tf0arsp.js} +3 -3
  47. package/dist/client/static/js/{index-fdbfzshx.js → index-14vndmcr.js} +2 -2
  48. package/dist/client/static/js/{index-7n68yx6m.js → index-1a0zkj8h.js} +2 -2
  49. package/dist/client/static/js/{index-p7btwjvj.js → index-1xqs14fr.js} +3 -3
  50. package/dist/client/static/js/{index-brj8qwa6.js → index-1y9r4frb.js} +2 -2
  51. package/dist/client/static/js/{index-6q80csr0.js → index-2svnq5gg.js} +1 -1
  52. package/dist/client/static/js/{index-9sd0vjmh.js → index-2x5f66t6.js} +2 -2
  53. package/dist/client/static/js/{index-dt7e1328.js → index-354mqqra.js} +2 -2
  54. package/dist/client/static/js/{index-5x95n3hx.js → index-3rcjx70v.js} +1 -1
  55. package/dist/client/static/js/{index-532btjmp.js → index-3zc1b0dv.js} +2 -2
  56. package/dist/client/static/js/{index-wzma5n54.js → index-5tgq7aqx.js} +1 -1
  57. package/dist/client/static/js/{index-xya34x4v.js → index-76zb4m0n.js} +2 -2
  58. package/dist/client/static/js/{index-2xj14800.js → index-7y6rpsrp.js} +2 -2
  59. package/dist/client/static/js/{index-h06bcfds.js → index-8239j2v1.js} +1 -1
  60. package/dist/client/static/js/{index-dq1kdt03.js → index-9fjt5anh.js} +1 -1
  61. package/dist/client/static/js/{index-ehcpzk5b.js → index-9y3gjdj7.js} +1 -1
  62. package/dist/client/static/js/{index-sa9cp6km.js → index-ahv9y42z.js} +2 -2
  63. package/dist/client/static/js/{index-vd0e25p0.js → index-ajs3jj6j.js} +1 -1
  64. package/dist/client/static/js/{index-qnwqaczk.js → index-apvkd37e.js} +3 -3
  65. package/dist/client/static/js/index-at6bhjyf.js +1 -0
  66. package/dist/client/static/js/index-bkye8mz4.js +2 -0
  67. package/dist/client/static/js/{index-dnp07j57.js → index-d495kfm0.js} +1 -1
  68. package/dist/client/static/js/{index-gbfg0anm.js → index-dbe6afkf.js} +2 -2
  69. package/dist/client/static/js/{index-g33knza2.js → index-djmg1d7h.js} +1 -1
  70. package/dist/client/static/js/{index-629kfbcb.js → index-e4p4cd3r.js} +2 -2
  71. package/dist/client/static/js/{index-5y7c62sm.js → index-eyzeya95.js} +5 -5
  72. package/dist/client/static/js/{index-3vhznzgr.js → index-gcs49f3p.js} +1 -1
  73. package/dist/client/static/js/{index-59jb53v3.js → index-gs6f0qwa.js} +2 -2
  74. package/dist/client/static/js/{index-7fdp9c7m.js → index-hf52f59k.js} +2 -2
  75. package/dist/client/static/js/{index-qkscve6n.js → index-j0r5hj0j.js} +2 -2
  76. package/dist/client/static/js/{index-ay34b398.js → index-js7t1vb1.js} +17 -17
  77. package/dist/client/static/js/{index-a0bdavdr.js → index-km2zb6wk.js} +2 -2
  78. package/dist/client/static/js/{index-ye3sr7db.js → index-m73za75e.js} +2 -2
  79. package/dist/client/static/js/{index-kpspnztv.js → index-pbe4yed4.js} +2 -2
  80. package/dist/client/static/js/{index-a6k2hqke.js → index-pxv2nw9w.js} +1 -1
  81. package/dist/client/static/js/{index-jz9fpznk.js → index-q2w6s8n7.js} +5 -5
  82. package/dist/client/static/js/{index-h7pn9qw6.js → index-qckv9nte.js} +2 -2
  83. package/dist/client/static/js/{index-a733k69t.js → index-qsm2z36d.js} +2 -2
  84. package/dist/client/static/js/{index-pf5sbesf.js → index-rytaa8ca.js} +2 -2
  85. package/dist/client/static/js/{index-c0x6s6f7.js → index-sdtye3jy.js} +2 -2
  86. package/dist/client/static/js/index-sffjtm5w.js +12 -0
  87. package/dist/client/static/js/{index-ejgd8w3s.js → index-trm9x02n.js} +28 -28
  88. package/dist/client/static/js/{index-c93sp4yh.js → index-vw4brsdx.js} +1 -1
  89. package/dist/client/static/js/{index-hc2jmzpx.js → index-vw5k8csz.js} +46 -46
  90. package/dist/client/static/js/{index-2gfc25tq.js → index-w0fwb80e.js} +1 -1
  91. package/dist/client/static/js/{index-bbggh3f8.js → index-ypx3qmhq.js} +2 -2
  92. package/dist/client/static/js/{index-4s8ttfxj.js → index-zt75xpq0.js} +193 -193
  93. package/dist/client/static/js/{index-jppt5mgc.js → index-zvfvqvn9.js} +2 -2
  94. package/dist/client/static/js/info-A6RAGUB7-4pkzh1qx.js +1 -0
  95. package/dist/client/static/js/{infoDiagram-VRGFBTTK-3w1yz32c.js → infoDiagram-VRGFBTTK-1qj804sn.js} +1 -1
  96. package/dist/client/static/js/ini-j5dyq6gm.js +1 -0
  97. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ckt471dy.js → ishikawaDiagram-OU5B5YK6-4j4qsnzw.js} +3 -3
  98. package/dist/client/static/js/java-g4dgwbfd.js +1 -0
  99. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-kfvn4w7e.js → journeyDiagram-ZHPQQLJL-j0brnfft.js} +4 -4
  100. package/dist/client/static/js/jsx-7t5ecz9s.js +1 -0
  101. package/dist/client/static/js/{julia-0j0gsjvc.js → julia-4ghmfy3e.js} +1 -1
  102. package/dist/client/static/js/{kanban-definition-PNTS6WVX-0q36cm83.js → kanban-definition-PNTS6WVX-qqc22br0.js} +2 -2
  103. package/dist/client/static/js/lua-1g6w30de.js +1 -0
  104. package/dist/client/static/js/markdown-afx21x8c.js +1 -0
  105. package/dist/client/static/js/{mermaid.core-b1ssa824.js → mermaid.core-vv3wbe65.js} +6 -6
  106. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-e2ym5en8.js → mindmap-definition-NLK3R4M7-y5b2z8zp.js} +2 -2
  107. package/dist/client/static/js/one-dark-pro-hm3f56n1.js +1 -0
  108. package/dist/client/static/js/one-light-xrz49rct.js +1 -0
  109. package/dist/client/static/js/packet-AYTQ26CC-yg71sp88.js +1 -0
  110. package/dist/client/static/js/{pegDiagram-GJSIUBJH-t8bbdyhe.js → pegDiagram-GJSIUBJH-0be07mqs.js} +1 -1
  111. package/dist/client/static/js/{perl-7n7e9ncg.js → perl-sd00t4b4.js} +1 -1
  112. package/dist/client/static/js/{php-32vy69vd.js → php-2zfyqa61.js} +1 -1
  113. package/dist/client/static/js/pie-WAS4IAKB-89wd6np0.js +1 -0
  114. package/dist/client/static/js/{pieDiagram-5QR66LMP-envv4brj.js → pieDiagram-5QR66LMP-544w86jk.js} +2 -2
  115. package/dist/client/static/js/properties-thd83wey.js +1 -0
  116. package/dist/client/static/js/python-264ns4xw.js +1 -0
  117. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-72rk137a.js → quadrantDiagram-O4NWA36T-p09e7z5s.js} +4 -4
  118. package/dist/client/static/js/r-qw82kkv9.js +1 -0
  119. package/dist/client/static/js/radar-RG4KPBEZ-avn0b8r9.js +1 -0
  120. package/dist/client/static/js/railroad-74A4TZTK-de27xv5w.js +1 -0
  121. package/dist/client/static/js/railroad-abnf-HS5TGJTU-rg4zzj7x.js +1 -0
  122. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d84fhj8v.js +1 -0
  123. package/dist/client/static/js/railroad-peg-WCYAUIDC-dvf8xrmc.js +1 -0
  124. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-1ej0f5hr.js → railroadDiagram-XR7U4H2S-de830ed2.js} +1 -1
  125. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-rvdaknpd.js → requirementDiagram-PLB6GJNP-b47d74p1.js} +4 -4
  126. package/dist/client/static/js/{ruby-5ty7fys7.js → ruby-v9qaqhby.js} +1 -1
  127. package/dist/client/static/js/{rust-2geezrcs.js → rust-fkt0qyrs.js} +1 -1
  128. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-nxvhtdaw.js → sankeyDiagram-IPEJSGJF-6ezc2fpj.js} +5 -5
  129. package/dist/client/static/js/{sass-mey5150f.js → sass-9bxped7y.js} +1 -1
  130. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-n5cn5qrt.js → sequenceDiagram-PO4LG4MO-by5zqj6w.js} +18 -18
  131. package/dist/client/static/js/{sizeCapture-INFHLROL-r074kj7s.js → sizeCapture-INFHLROL-q85r06j6.js} +1 -1
  132. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-vxghxdb0.js → stateDiagram-v2-GCMORJYK-ep5pyexs.js} +3 -3
  133. package/dist/client/static/js/{svelte-3ewx0hzx.js → svelte-mwtx07d9.js} +1 -1
  134. package/dist/client/static/js/{swimlanes-2SLR337P-qkkv894p.js → swimlanes-2SLR337P-95fcqkh8.js} +1 -1
  135. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xs2en5dv.js +8 -0
  136. package/dist/client/static/js/{timeline-definition-EJHVYXUP-5tbq4ex2.js → timeline-definition-EJHVYXUP-461e615g.js} +2 -2
  137. package/dist/client/static/js/treeView-Q6P3EWNA-mham0bh6.js +1 -0
  138. package/dist/client/static/js/treemap-WGGIJYW6-mxrxax86.js +1 -0
  139. package/dist/client/static/js/tsx-nm94hed6.js +1 -0
  140. package/dist/client/static/js/typescript-0s2t05jj.js +1 -0
  141. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-6p8hf0b7.js → usecaseDiagram-POWQR4AR-ftqfnvhg.js} +37 -37
  142. package/dist/client/static/js/{vennDiagram-UO4OBE2U-7k5jsxf9.js → vennDiagram-UO4OBE2U-7t96h6ez.js} +7 -7
  143. package/dist/client/static/js/{vue-06rdf4wh.js → vue-j8vb9d7r.js} +1 -1
  144. package/dist/client/static/js/wardley-WFR3VGLG-8vrvh9p3.js +1 -0
  145. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-km2x4er8.js → wardleyDiagram-VNRHLVJA-0de8w8c6.js} +4 -4
  146. package/dist/client/static/js/xml-dz51p1m3.js +1 -0
  147. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-kr3sgr4m.js → xychartDiagram-PMCCYNJV-dez9phkf.js} +5 -5
  148. package/dist/client/static/js/yaml-2cfkd30t.js +1 -0
  149. package/package.json +1 -1
  150. package/src/client/components/common/context-usage-button/McpSection.test.tsx +98 -0
  151. package/src/client/components/common/context-usage-button/McpSection.tsx +12 -5
  152. package/src/client/components/common/context-usage-button/SessionStats.tsx +80 -0
  153. package/src/client/components/common/context-usage-button/index.test.tsx +26 -0
  154. package/src/client/components/common/context-usage-button/index.tsx +36 -28
  155. package/src/client/components/common/harness-glyph/brands.ts +8 -0
  156. package/src/client/components/mobile/LayoutWrapper.tsx +12 -3
  157. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
  158. package/src/client/components/settings/apply-side-effects.test.ts +11 -0
  159. package/src/client/components/settings/apply-side-effects.ts +7 -0
  160. package/src/client/components/settings/categories/ChatSettings.test.tsx +1 -1
  161. package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
  162. package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
  163. package/src/client/components/settings/categories/chat-settings/ChangedFilesSection.tsx +79 -0
  164. package/src/client/components/settings/categories/chat-settings/groups.ts +4 -3
  165. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +101 -0
  166. package/src/client/components/workspace/chat-timeline/MessageList.tsx +33 -1
  167. package/src/client/components/workspace/chat-timeline/RunFooter.tsx +21 -1
  168. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +13 -0
  169. package/src/client/components/workspace/chat-timeline/index.tsx +1 -1
  170. package/src/client/components/workspace/diff-panel/Toolbar.tsx +17 -51
  171. package/src/client/components/workspace/diff-panel/index.tsx +23 -4
  172. package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +94 -0
  173. package/src/client/components/workspace/editor/Body.tsx +2 -0
  174. package/src/client/data/settings/omp-schema.json +73 -3
  175. package/src/client/hooks/chat/timeline/changed-files-setting.test.ts +31 -0
  176. package/src/client/hooks/chat/timeline/changed-files-setting.ts +60 -0
  177. package/src/client/hooks/chat/timeline/session-changes.ts +51 -0
  178. package/src/client/hooks/ui/notification-events.test.ts +3 -0
  179. package/src/client/hooks/ui/notification-events.ts +3 -1
  180. package/src/client/hooks/ui/notification-sound.ts +13 -6
  181. package/src/client/hooks/ui/ui-sounds.test.ts +15 -0
  182. package/src/client/hooks/workspace/diff-file.ts +11 -4
  183. package/src/client/hooks/workspace/file-tabs.ts +13 -4
  184. package/src/client/hooks/workspace/journal-diff.ts +97 -0
  185. package/src/client/lib/notifications/native-banner-sound.test.ts +93 -0
  186. package/src/client/lib/notifications/native-banner-sound.ts +46 -0
  187. package/src/client/lib/notifications/os.test.ts +14 -5
  188. package/src/client/lib/notifications/os.ts +8 -0
  189. package/src/server/lib/harness/launch-table.ts +10 -0
  190. package/src/server/lib/omp/session/changes.test.ts +138 -0
  191. package/src/server/lib/omp/session/changes.ts +220 -0
  192. package/src/server/lib/omp/session/session-discovery.test.ts +4 -4
  193. package/src/server/lib/omp/session/sidebar-activity.server.test.ts +6 -2
  194. package/src/server/lib/omp/session/subagent-presence-scan.ts +54 -0
  195. package/src/server/lib/omp/session/subagent-presence-store.test.ts +1 -1
  196. package/src/server/lib/omp/session/subagent-presence.test.ts +115 -0
  197. package/src/server/lib/omp/session/subagent-presence.ts +12 -3
  198. package/src/server/lib/omp/session/telemetry/compute.ts +68 -0
  199. package/src/server/lib/omp/session/telemetry.test.ts +81 -0
  200. package/src/server/routes/sessions/changes.test.ts +90 -0
  201. package/src/server/routes/sessions/changes.ts +55 -0
  202. package/src/server/routes/sessions/index.ts +6 -0
  203. package/src/shared/lib/chat/duration.ts +34 -0
  204. package/src/shared/lib/chat/timeline/changed-files.test.ts +121 -0
  205. package/src/shared/lib/chat/timeline/changed-files.ts +71 -0
  206. package/src/shared/lib/chat/timeline/fork-anchor.test.ts +3 -0
  207. package/src/shared/lib/format/duration.test.ts +31 -0
  208. package/src/shared/lib/format/duration.ts +27 -0
  209. package/src/shared/lib/fs/unified-diff.test.ts +53 -0
  210. package/src/shared/lib/fs/unified-diff.ts +127 -0
  211. package/src/shared/lib/harness/brand-color.ts +3 -0
  212. package/src/shared/lib/harness/catalog.test.ts +13 -0
  213. package/src/shared/lib/harness/catalog.ts +8 -1
  214. package/src/shared/lib/harness/fork.ts +4 -2
  215. package/src/shared/lib/harness/mcp-facts.ts +3 -0
  216. package/src/shared/lib/harness/provider-facts.ts +14 -0
  217. package/src/shared/lib/harness/updates.ts +5 -0
  218. package/src/shared/lib/icons/tint-hues.generated.ts +27 -27
  219. package/src/shared/lib/omp/config/schema.test.ts +4 -2
  220. package/src/shared/lib/settings/defaults.ts +1 -0
  221. package/src/shared/lib/workspace/file-tab-id.ts +9 -0
  222. package/src/shared/types/context.ts +18 -0
  223. package/src/shared/types/fs.ts +21 -0
  224. package/src/shared/types/index.ts +1 -0
  225. package/src/shared/types/omp/session.ts +6 -0
  226. package/src/shared/types/session-changes.ts +58 -0
  227. package/src/shared/types/settings/state.ts +8 -0
  228. package/dist/client/static/js/LayoutWrapper-xjnveecv.js +0 -2
  229. package/dist/client/static/js/Modal-k2jr9hc4.js +0 -38
  230. package/dist/client/static/js/architecture-7GRP2DOG-1y9zvsyt.js +0 -1
  231. package/dist/client/static/js/bash-m0qjsyy0.js +0 -1
  232. package/dist/client/static/js/css-t4ngafan.js +0 -1
  233. package/dist/client/static/js/cynefin-OW5HDTMX-k2188qcq.js +0 -1
  234. package/dist/client/static/js/eventmodeling-NTZA5JFV-pdr0qn0n.js +0 -1
  235. package/dist/client/static/js/flowDiagram-KWPJA3E3-zvz0mxne.js +0 -1
  236. package/dist/client/static/js/gitGraph-4MIJSDKK-wmqf046s.js +0 -1
  237. package/dist/client/static/js/graphql-692h0n2x.js +0 -1
  238. package/dist/client/static/js/index-61tm0v57.js +0 -1
  239. package/dist/client/static/js/index-kg86e3sy.js +0 -12
  240. package/dist/client/static/js/index-nmmxb4va.js +0 -2
  241. package/dist/client/static/js/info-A6RAGUB7-zg3twte6.js +0 -1
  242. package/dist/client/static/js/ini-cg0a5wm3.js +0 -1
  243. package/dist/client/static/js/java-vcck089n.js +0 -1
  244. package/dist/client/static/js/jsx-ht9zyzwa.js +0 -1
  245. package/dist/client/static/js/lua-ke895s2q.js +0 -1
  246. package/dist/client/static/js/markdown-gwmsh53r.js +0 -1
  247. package/dist/client/static/js/one-dark-pro-4geyzhjj.js +0 -1
  248. package/dist/client/static/js/one-light-tqssjm9t.js +0 -1
  249. package/dist/client/static/js/packet-AYTQ26CC-3pav51g0.js +0 -1
  250. package/dist/client/static/js/pie-WAS4IAKB-wqfh7zdk.js +0 -1
  251. package/dist/client/static/js/properties-mzvvbqg5.js +0 -1
  252. package/dist/client/static/js/python-3w64wsyd.js +0 -1
  253. package/dist/client/static/js/r-32re2zwb.js +0 -1
  254. package/dist/client/static/js/radar-RG4KPBEZ-w7qjdr2g.js +0 -1
  255. package/dist/client/static/js/railroad-74A4TZTK-rhr99kkj.js +0 -1
  256. package/dist/client/static/js/railroad-abnf-HS5TGJTU-c4jeea3m.js +0 -1
  257. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-x2ee66ex.js +0 -1
  258. package/dist/client/static/js/railroad-peg-WCYAUIDC-yw8wjfwg.js +0 -1
  259. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y81h9n27.js +0 -8
  260. package/dist/client/static/js/treeView-Q6P3EWNA-ekz05ccs.js +0 -1
  261. package/dist/client/static/js/treemap-WGGIJYW6-aq6qymjr.js +0 -1
  262. package/dist/client/static/js/tsx-0p183w2f.js +0 -1
  263. package/dist/client/static/js/typescript-t9a5jyvv.js +0 -1
  264. package/dist/client/static/js/wardley-WFR3VGLG-z34tj4y3.js +0 -1
  265. package/dist/client/static/js/xml-81hxjjt4.js +0 -1
  266. package/dist/client/static/js/yaml-yssayv8a.js +0 -1
@@ -59,6 +59,7 @@ function telemetryAt(percent: number): SessionContextTelemetry {
59
59
  assistantCount: 3,
60
60
  totalCost: 0.02,
61
61
  costFormatted: '$0.02',
62
+ timing: { llmMs: 5000, toolMs: 1500, ttftAvgMs: 750, lastTps: 50, avgTps: 48.2 },
62
63
  cacheHitAverage: 91.5,
63
64
  lastMessage: { input: 10, output: 4, reasoning: 0, cacheRead: 2, cacheWrite: 0, cacheHitPercent: 16.6 },
64
65
  distribution: { userTokens: 1, userPercent: 25, assistantTokens: 1, assistantPercent: 25, toolTokens: 1, toolPercent: 25, otherTokens: 1, otherPercent: 25 },
@@ -204,6 +205,16 @@ describe('ContextUsageButton', () => {
204
205
  expect(panel?.textContent).toContain('DeepSeek V4-1-Flash');
205
206
  expect(panel?.textContent).toContain('42%');
206
207
  expect(panel?.textContent).toContain('$0.02');
208
+ expect(panel?.textContent).toContain('Turns / steps:');
209
+ expect(panel?.textContent).toContain('1 / 3');
210
+ expect(panel?.textContent).toContain('LLM time:');
211
+ expect(panel?.textContent).toContain('5.0s');
212
+ expect(panel?.textContent).toContain('Tool time:');
213
+ expect(panel?.textContent).toContain('1.5s');
214
+ expect(panel?.textContent).toContain('TTFT avg:');
215
+ expect(panel?.textContent).toContain('0.8s');
216
+ expect(panel?.textContent).toContain('Tok/s:');
217
+ expect(panel?.textContent).toContain('50.0 / 48.2');
207
218
 
208
219
  await act(async () => {
209
220
  document.dispatchEvent(new window.KeyboardEvent('keydown', { key: 'Escape' }));
@@ -211,6 +222,21 @@ describe('ContextUsageButton', () => {
211
222
  expect(dialog()).toBeNull();
212
223
  });
213
224
 
225
+ test('omits timing rows the source never measured', async () => {
226
+ // An ACP chat reports no per-call timing; printing "0s" would state a
227
+ // measurement the source never made.
228
+ await mount({ ...telemetryAt(42), timing: undefined });
229
+ await act(async () => {
230
+ trigger().click();
231
+ });
232
+ const panel = dialog();
233
+ expect(panel?.textContent).toContain('Turns / steps:');
234
+ expect(panel?.textContent).not.toContain('LLM time:');
235
+ expect(panel?.textContent).not.toContain('Tool time:');
236
+ expect(panel?.textContent).not.toContain('TTFT avg:');
237
+ expect(panel?.textContent).not.toContain('Tok/s:');
238
+ });
239
+
214
240
  test('a session with no turn says so instead of printing zeros', async () => {
215
241
  await mount({ ...telemetryAt(0), messagesCount: 0 });
216
242
  expect(trigger().getAttribute('title')).toBe('Context usage: session not started');
@@ -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>
@@ -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,
@@ -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',
@@ -0,0 +1,101 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The collapsed "N files changed" row above a run's footer.
8
+ *
9
+ * The list is the agent's own change journal, bucketed into the run by
10
+ * `bucketChangesByRun`; clicking a file opens a diff tab whose two sides are
11
+ * the journal's before/after snapshots, not the worktree. That is the point:
12
+ * another agent or the user may have edited the file since, and the reader
13
+ * asked what THIS run did.
14
+ */
15
+
16
+ import { useState } from 'preact/hooks';
17
+ import { ChevronDown, ChevronRight } from 'lucide-preact';
18
+ import type { ChangedFile } from '@/shared/types';
19
+
20
+ const STATUS_LABEL: Record<ChangedFile['status'], string> = {
21
+ added: 'A',
22
+ modified: 'M',
23
+ deleted: 'D',
24
+ };
25
+
26
+ const STATUS_CLASS: Record<ChangedFile['status'], string> = {
27
+ added: 'text-success',
28
+ modified: 'text-warning',
29
+ deleted: 'text-error',
30
+ };
31
+
32
+ interface ChangedFilesSummaryProps {
33
+ files: ChangedFile[];
34
+ sessionId: string;
35
+ /** Run window, epoch ms — the range the diff tab reads. */
36
+ from: number;
37
+ to: number;
38
+ }
39
+
40
+ export function ChangedFilesSummary({
41
+ files,
42
+ sessionId,
43
+ from,
44
+ to,
45
+ }: ChangedFilesSummaryProps) {
46
+ const [expanded, setExpanded] = useState(false);
47
+ if (files.length === 0) return null;
48
+ const label = `${files.length} file${files.length === 1 ? '' : 's'} changed`;
49
+
50
+ return (
51
+ <div className="rounded-md border border-ink/10 bg-paper/60">
52
+ <button
53
+ type="button"
54
+ onClick={() => setExpanded((value) => !value)}
55
+ aria-expanded={expanded}
56
+ className="flex w-full items-center gap-1.5 px-2.5 py-1.5 text-left text-[11px] text-ink/70 hover:text-ink transition-colors cursor-pointer"
57
+ >
58
+ {expanded
59
+ ? <ChevronDown size={12} className="shrink-0" />
60
+ : <ChevronRight size={12} className="shrink-0" />}
61
+ <span className="font-medium">{label}</span>
62
+ </button>
63
+ {expanded && (
64
+ <ul className="border-t border-ink/10 py-0.5">
65
+ {files.map((file) => (
66
+ <li key={file.path}>
67
+ <button
68
+ type="button"
69
+ onClick={() => openJournalDiff(file, sessionId, from, to)}
70
+ className="flex w-full items-center gap-2 px-2.5 py-1 text-left text-[11px] hover:bg-ink/[0.04] transition-colors cursor-pointer"
71
+ title={file.path}
72
+ >
73
+ <span className={`w-3 shrink-0 font-mono font-semibold ${STATUS_CLASS[file.status]}`}>
74
+ {STATUS_LABEL[file.status]}
75
+ </span>
76
+ <span className="min-w-0 flex-1 truncate font-mono text-ink/80">{file.displayPath}</span>
77
+ {file.agent !== 'Main' && (
78
+ <span className="shrink-0 text-[10px] text-ink/40">{file.agent}</span>
79
+ )}
80
+ </button>
81
+ </li>
82
+ ))}
83
+ </ul>
84
+ )}
85
+ </div>
86
+ );
87
+ }
88
+
89
+ /** Open the journal diff tab for one file. The desktop and phone layouts both
90
+ * listen for `omp:open-diff`; the journal fields are what make it a journal
91
+ * read rather than a worktree read. */
92
+ function openJournalDiff(file: ChangedFile, sessionId: string, from: number, to: number): void {
93
+ window.dispatchEvent(new CustomEvent('omp:open-diff', {
94
+ detail: {
95
+ file: file.displayPath,
96
+ status: STATUS_LABEL[file.status],
97
+ source: 'journal',
98
+ journal: { sessionId, path: file.path, from, to },
99
+ },
100
+ }));
101
+ }
@@ -8,9 +8,11 @@ import { TurnRail } from '@/client/components/workspace/chat-timeline/TurnRail';
8
8
  import { useToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
9
9
  import { isNoticeRow } from '@/shared/lib/chat/notice-row';
10
10
  import { previousNonNoticeIndex, resolveRunFooters, streamingRowIndex } from '@/shared/lib/chat/timeline/run-footer';
11
+ import { bucketChangesByRun } from '@/shared/lib/chat/timeline/changed-files';
12
+ import { runWindowMs } from '@/shared/lib/chat/duration';
11
13
  import { groupTraceRows } from '@/shared/lib/chat/timeline/trace-groups';
12
14
  import type { TimelineRowWindow } from '@/client/hooks/chat/timeline/row-window';
13
- import type { Attachment, ChatMessageData } from '@/shared/types';
15
+ import type { Attachment, ChatMessageData, SessionChangeRecord } from '@/shared/types';
14
16
  import type { ForkAnchorRole } from '@/shared/lib/chat/timeline/fork-anchor';
15
17
 
16
18
  export interface MessageListProps {
@@ -46,6 +48,10 @@ export interface MessageListProps {
46
48
  * own timeline mounts a window instead.
47
49
  */
48
50
  rowWindow?: TimelineRowWindow;
51
+ /** Session id the journal diff tabs read from. */
52
+ sessionId?: string;
53
+ /** The session's agent change journal, bucketed into runs here. */
54
+ changeRecords?: SessionChangeRecord[];
49
55
  }
50
56
 
51
57
  /**
@@ -78,6 +84,8 @@ export const MessageList = memo(function MessageList({
78
84
  isMobile = false,
79
85
  userActions = true,
80
86
  rowWindow,
87
+ sessionId,
88
+ changeRecords,
81
89
  }: MessageListProps) {
82
90
  const { streamingIdx, footers, prevNonNoticeIdx } = useMemo(() => {
83
91
  return {
@@ -90,6 +98,24 @@ export const MessageList = memo(function MessageList({
90
98
  };
91
99
  }, [messages, isGenerating]);
92
100
 
101
+ // The journal's writes bucketed into runs, and each run's wall-clock window
102
+ // (the range a journal diff tab reads). Both are derived from the same
103
+ // `footers` pass, so a run's list and its diff cannot disagree about which
104
+ // run they describe.
105
+ const changedFilesByOwner = useMemo(
106
+ () => bucketChangesByRun(messages, footers, changeRecords ?? []),
107
+ [messages, footers, changeRecords],
108
+ );
109
+ const runWindows = useMemo(() => {
110
+ const windows = new Map<number, { start: number; end: number }>();
111
+ for (const slot of footers) {
112
+ if (!slot) continue;
113
+ const window = runWindowMs(messages, slot.runStartIndex, slot.ownerIndex);
114
+ if (window) windows.set(slot.ownerIndex, window);
115
+ }
116
+ return windows;
117
+ }, [messages, footers]);
118
+
93
119
  const start = rowWindow ? rowWindow.start : 0;
94
120
  const end = rowWindow ? Math.min(rowWindow.end, messages.length) : messages.length;
95
121
  const visible = start === 0 && end === messages.length ? messages : messages.slice(start, end);
@@ -167,6 +193,9 @@ export const MessageList = memo(function MessageList({
167
193
  onFork={onFork}
168
194
  isMobile={isMobile}
169
195
  showActions={userActions}
196
+ changedFiles={changedFilesByOwner.get(inlineFooter.ownerIndex)}
197
+ sessionId={sessionId}
198
+ runWindow={runWindows.get(inlineFooter.ownerIndex)}
170
199
  />
171
200
  )}
172
201
  </div>
@@ -190,6 +219,9 @@ export const MessageList = memo(function MessageList({
190
219
  onFork={onFork}
191
220
  isMobile={isMobile}
192
221
  showActions={userActions}
222
+ changedFiles={changedFilesByOwner.get(trailingFooter.ownerIndex)}
223
+ sessionId={sessionId}
224
+ runWindow={runWindows.get(trailingFooter.ownerIndex)}
193
225
  />
194
226
  )}
195
227
  </Fragment>
@@ -1,5 +1,6 @@
1
- import type { Attachment, ChatMessageData } from '@/shared/types';
1
+ import type { Attachment, ChangedFile, ChatMessageData } from '@/shared/types';
2
2
  import { AiMessageFooter } from '@/client/components/workspace/chat-timeline/AiMessageFooter';
3
+ import { ChangedFilesSummary } from '@/client/components/workspace/chat-timeline/ChangedFilesSummary';
3
4
  import { messageAnswerText } from '@/shared/lib/chat/notice-row';
4
5
  import { formatMessageStamp } from '@/shared/lib/format/time';
5
6
  import type { ForkAnchorRole } from '@/shared/lib/chat/timeline/fork-anchor';
@@ -46,6 +47,12 @@ interface RunFooterProps {
46
47
  * side answer) turns them off rather than rendering dead buttons.
47
48
  */
48
49
  showActions?: boolean;
50
+ /** Files this run changed, from the session's agent change journal. */
51
+ changedFiles?: ChangedFile[];
52
+ /** Session id the journal diff tabs read from. */
53
+ sessionId?: string;
54
+ /** The run's wall-clock window, epoch ms. */
55
+ runWindow?: { start: number; end: number };
49
56
  }
50
57
 
51
58
  /**
@@ -70,9 +77,22 @@ export function RunFooter({
70
77
  onFork,
71
78
  isMobile = false,
72
79
  showActions = true,
80
+ changedFiles,
81
+ sessionId,
82
+ runWindow,
73
83
  }: RunFooterProps) {
74
84
  return (
75
85
  <div className="mt-2">
86
+ {changedFiles && changedFiles.length > 0 && sessionId && runWindow && (
87
+ <div className="mb-1.5">
88
+ <ChangedFilesSummary
89
+ files={changedFiles}
90
+ sessionId={sessionId}
91
+ from={runWindow.start}
92
+ to={runWindow.end}
93
+ />
94
+ </div>
95
+ )}
76
96
  <AiMessageFooter
77
97
  provider={msg.provider || provider}
78
98
  providerNames={providerNames}