@qwen-code/qwen-code 0.21.13 → 0.21.14-nightly.20260821.9f2342d323

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 (367) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +13 -7
  2. package/bundled/qc-helper/docs/features/channels/dingtalk.md +1 -1
  3. package/bundled/qc-helper/docs/features/code-review.md +24 -2
  4. package/bundled/qc-helper/docs/features/commands.md +120 -8
  5. package/bundled/qc-helper/docs/features/sub-agents.md +2 -2
  6. package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +1 -1
  7. package/bundled/qc-helper/docs/qwen-serve.md +21 -4
  8. package/bundled/review/SKILL.md +111 -61
  9. package/chunks/{MaxSizedBox-UQALOVVT.js → MaxSizedBox-RMLYJGA7.js} +46 -45
  10. package/chunks/{StandaloneSessionPicker-KEGXNUG6.js → StandaloneSessionPicker-TP2BMINQ.js} +67 -66
  11. package/chunks/{acp-startup-profiler-NMDXYGDN.js → acp-startup-profiler-DDVSJKJK.js} +2 -2
  12. package/chunks/{acpAgent-XPES32S7.js → acpAgent-URLACEQ5.js} +1032 -216
  13. package/chunks/{agent-DPTOZFEM.js → agent-4Y422A4P.js} +42 -41
  14. package/chunks/agent-headless-JWTMXLQV.js +88 -0
  15. package/chunks/{anthropicContentGenerator-G7BVXTKN.js → anthropicContentGenerator-CU3G53RX.js} +9 -9
  16. package/chunks/{artifact-tool-GEXTOPVO.js → artifact-tool-LIUSI4XK.js} +3 -3
  17. package/chunks/{askUserQuestion-B33XRSB7.js → askUserQuestion-454X3UIV.js} +3 -3
  18. package/chunks/{bridge-YNQBAA4Z.js → bridge-456ODTCP.js} +48 -46
  19. package/chunks/{ca-4CQ6MYNQ.js → ca-SLZJD6QH.js} +8 -0
  20. package/chunks/{channel-management-service-GWY2GAIC.js → channel-management-service-KHPAWCX7.js} +1 -1
  21. package/chunks/{channel-settings-store-WNWYFHG7.js → channel-settings-store-FRSCHVO2.js} +50 -49
  22. package/chunks/{channel-worker-group-7LXCMZ77.js → channel-worker-group-IN2UPYHP.js} +6 -5
  23. package/chunks/{channel-worker-manager-RYEME4ZZ.js → channel-worker-manager-4CQPHVD4.js} +6 -5
  24. package/chunks/{channel-worker-supervisor-OEVWBHGT.js → channel-worker-supervisor-CPPSL7ZH.js} +4 -3
  25. package/chunks/{chunk-3EZLLVDF.js → chunk-263JC66E.js} +3 -3
  26. package/chunks/{chunk-TIGA2IVL.js → chunk-2GM44E7D.js} +10 -298
  27. package/chunks/{chunk-PQ36L4F5.js → chunk-2UNEPJQK.js} +1 -1
  28. package/chunks/{chunk-X26JYGTD.js → chunk-2VH3QVLW.js} +1 -1
  29. package/chunks/{chunk-YEYY7TEP.js → chunk-2ZNQRS2Q.js} +7 -7
  30. package/chunks/{chunk-WGHHA7ZH.js → chunk-3C55EUJX.js} +1 -1
  31. package/chunks/{chunk-25EYDK42.js → chunk-3EQHT3IC.js} +2 -2
  32. package/chunks/{chunk-BHILXOC3.js → chunk-435GZDTF.js} +3 -3
  33. package/chunks/{chunk-GMIEIY3Y.js → chunk-47VTGCYK.js} +3 -3
  34. package/chunks/{chunk-MA2HEDVP.js → chunk-4CKU5K2R.js} +1 -1
  35. package/chunks/{chunk-EZ5RP345.js → chunk-4FP3IZQD.js} +41 -10
  36. package/chunks/{chunk-IWPYVAO2.js → chunk-4HUYO5AU.js} +3 -3
  37. package/chunks/{chunk-4PKCUT7F.js → chunk-4JORWK55.js} +7 -7
  38. package/chunks/{chunk-MIPFDQAF.js → chunk-4W4BROUS.js} +1 -1
  39. package/chunks/{chunk-A4MFR4C5.js → chunk-55P2ESI6.js} +3 -5
  40. package/chunks/{chunk-CHHABXPE.js → chunk-5AAW6E3C.js} +1 -1
  41. package/chunks/{chunk-KD5BOPLP.js → chunk-5I2U4PDY.js} +107 -13
  42. package/chunks/{chunk-NWNEANAT.js → chunk-5M7YKTYX.js} +6 -6
  43. package/chunks/{chunk-M732YJPW.js → chunk-5MA4E4EG.js} +3 -3
  44. package/chunks/{chunk-TS6625XH.js → chunk-5MK45KZ3.js} +9 -5
  45. package/chunks/{chunk-JUEPY766.js → chunk-5QYE546S.js} +3 -3
  46. package/chunks/{chunk-6ORZ2EDC.js → chunk-5YD2D6G6.js} +3 -3
  47. package/chunks/{chunk-ZYBBISBY.js → chunk-66A2RG5S.js} +21 -18
  48. package/chunks/{chunk-5EYKMUUY.js → chunk-6JLZBBCY.js} +1 -1
  49. package/chunks/{chunk-CPHEPGAO.js → chunk-722JBVVW.js} +1 -1
  50. package/chunks/{chunk-JNDY2MDR.js → chunk-72AVWAUA.js} +1 -1
  51. package/chunks/{chunk-JOOFMXGF.js → chunk-7EYDW732.js} +6 -6
  52. package/chunks/chunk-7NLDU6J2.js +367 -0
  53. package/chunks/{chunk-OVZPVYZB.js → chunk-7S22SX2L.js} +96 -18
  54. package/chunks/{chunk-XUJNK7Y6.js → chunk-7WVB4FMG.js} +1 -1
  55. package/chunks/{chunk-CKSJECTU.js → chunk-A7NBZBGQ.js} +9 -5
  56. package/chunks/{chunk-QNQAPSN2.js → chunk-AQFWV4YF.js} +4 -1
  57. package/chunks/{chunk-P7MPQI75.js → chunk-B5LEKTE7.js} +2 -2
  58. package/chunks/{chunk-4S5337WV.js → chunk-BB3FKSIJ.js} +6230 -3113
  59. package/chunks/{chunk-GGDBMYGZ.js → chunk-CU34U3PZ.js} +5 -5
  60. package/chunks/{chunk-A267JX7H.js → chunk-CWFIQLCV.js} +7 -7
  61. package/chunks/{chunk-MS7GNABG.js → chunk-CXJHQVEK.js} +8 -0
  62. package/chunks/{chunk-4NFY2S7N.js → chunk-E7REAOTN.js} +15 -0
  63. package/chunks/{chunk-DXIBNLBZ.js → chunk-EB27VF5Z.js} +2 -2
  64. package/chunks/{chunk-XHRY7BXD.js → chunk-ELA3DNCT.js} +4 -4
  65. package/chunks/{chunk-PP4FUZNV.js → chunk-EOFGNAK3.js} +2 -2
  66. package/chunks/{chunk-ZZO74WKW.js → chunk-ET5FGCN3.js} +115 -28
  67. package/chunks/{chunk-RVOJ2FBP.js → chunk-EXY6APEA.js} +1540 -10597
  68. package/chunks/{chunk-NM5V5OVW.js → chunk-F47TIWWH.js} +3 -3
  69. package/chunks/{chunk-DGZEMW5R.js → chunk-F5JZDC4O.js} +3 -3
  70. package/chunks/{chunk-6QFDQMQX.js → chunk-F7ZK5VMA.js} +1 -1
  71. package/chunks/{chunk-2B2BF7P7.js → chunk-FAIJ5UIU.js} +3 -3
  72. package/chunks/{chunk-QRCNA3SR.js → chunk-FQRYG6XX.js} +50 -70
  73. package/chunks/{chunk-AXN7UPYQ.js → chunk-FQZBD3PY.js} +2 -2
  74. package/chunks/{chunk-XIT3GURH.js → chunk-FSYI56UV.js} +3 -3
  75. package/chunks/{chunk-UKMR3CKV.js → chunk-FU7KPUCT.js} +22 -7
  76. package/chunks/{chunk-BZ263IKX.js → chunk-G32ESUUC.js} +1 -1
  77. package/chunks/{chunk-Y3YCSWG5.js → chunk-G64PEZZ5.js} +2 -2
  78. package/chunks/{chunk-NEFOOD54.js → chunk-GL5X57U7.js} +3 -3
  79. package/chunks/{chunk-QUGAUQGJ.js → chunk-GX2THELY.js} +1 -0
  80. package/chunks/{chunk-FAAUPSY2.js → chunk-HEMFCAHG.js} +1 -1
  81. package/chunks/{chunk-AZQ3DT76.js → chunk-HGGMEDDY.js} +2 -2
  82. package/chunks/{chunk-BKPPWD33.js → chunk-HHHXD5XY.js} +22 -2
  83. package/chunks/{chunk-SG7ZP5PG.js → chunk-HHNSO2Y4.js} +4 -4
  84. package/chunks/{chunk-6YKYPVDV.js → chunk-HLW3JCZR.js} +4 -4
  85. package/chunks/{chunk-O4D7SPJN.js → chunk-HYLQQAQB.js} +3 -3
  86. package/chunks/{chunk-MRMJCLIY.js → chunk-I5DOIT4L.js} +3 -3
  87. package/chunks/{chunk-TUGSVUJB.js → chunk-IN55HSUI.js} +6 -6
  88. package/chunks/{chunk-N5YPT6PH.js → chunk-IUBZQVZW.js} +20 -8
  89. package/chunks/{chunk-OY5RNSV4.js → chunk-IVELVL56.js} +3 -3
  90. package/chunks/{chunk-LJQAUZMR.js → chunk-IVFPNU4O.js} +1338 -115
  91. package/chunks/{chunk-WFSTRPRO.js → chunk-J2LZ5OCH.js} +3 -3
  92. package/chunks/{chunk-OMLJNPBE.js → chunk-JBSW7JA6.js} +84 -4
  93. package/chunks/{chunk-NTTBXH7U.js → chunk-JS73NNWF.js} +8 -0
  94. package/chunks/{chunk-2M55OBEB.js → chunk-JV443R5X.js} +1 -1
  95. package/chunks/{chunk-V57QC6WW.js → chunk-KCUGOZPL.js} +7 -5
  96. package/chunks/{chunk-GO7STP6N.js → chunk-KK2S7MIH.js} +4 -4
  97. package/chunks/{chunk-IGGGG5CX.js → chunk-KW2JLCIF.js} +14868 -9301
  98. package/chunks/{chunk-KV27IEHM.js → chunk-L5JHSPET.js} +1 -1
  99. package/chunks/{chunk-M6NDLY2T.js → chunk-LD5VIJ7S.js} +1 -1
  100. package/chunks/{chunk-RIAABG2K.js → chunk-LGA4VING.js} +2 -2
  101. package/chunks/chunk-LJZSMWOH.js +18 -0
  102. package/chunks/{chunk-7UXUJ5T3.js → chunk-LMQWI7GK.js} +1 -1
  103. package/chunks/{chunk-IA2K2HJE.js → chunk-M53UJS6H.js} +2 -2
  104. package/chunks/{chunk-KBXKR5R2.js → chunk-M5AIO24H.js} +1 -1
  105. package/chunks/{chunk-ROIYNTHJ.js → chunk-MD7XDTW7.js} +3 -3
  106. package/chunks/chunk-MGEWDLRO.js +9169 -0
  107. package/chunks/{chunk-V26NVGAU.js → chunk-MMUAUHOT.js} +8 -3
  108. package/chunks/{chunk-NNHNLJ2X.js → chunk-NCLV2VQ2.js} +291 -57
  109. package/chunks/{chunk-AW4TRXOC.js → chunk-NCNEK4XO.js} +1 -1
  110. package/chunks/{chunk-YP5KH5Y7.js → chunk-ND7NOI4P.js} +1 -1
  111. package/chunks/{chunk-4W5U2TUT.js → chunk-NGY7B7VF.js} +1 -1
  112. package/chunks/chunk-NPKNGJVM.js +367 -0
  113. package/chunks/{chunk-O565M6A4.js → chunk-NYN4RD3K.js} +260 -16
  114. package/chunks/{chunk-OXCMMLED.js → chunk-O327G3QW.js} +3 -3
  115. package/chunks/chunk-O75QDGQF.js +757 -0
  116. package/chunks/{chunk-6HY6IF3Z.js → chunk-OUYRA764.js} +1 -1
  117. package/chunks/{chunk-QF2NHSPB.js → chunk-PGXIK6O7.js} +252 -203
  118. package/chunks/{chunk-H4A72DE5.js → chunk-PTMVPFCZ.js} +1 -1
  119. package/chunks/{chunk-QFJ5JHQR.js → chunk-PXOIRYE5.js} +1 -1
  120. package/chunks/{chunk-AFSG32D5.js → chunk-Q3ERPVRE.js} +1 -1
  121. package/chunks/{chunk-CU6GJD55.js → chunk-Q6BRKUVQ.js} +1 -1
  122. package/chunks/{chunk-FDGGZIYW.js → chunk-Q6ETBOWF.js} +3 -3
  123. package/chunks/{chunk-3U3VAL47.js → chunk-QIKHRDDI.js} +1 -1
  124. package/chunks/chunk-QJCELOZU.js +3969 -0
  125. package/chunks/{chunk-S5DWMTHO.js → chunk-QQUVPMMZ.js} +2 -0
  126. package/chunks/{chunk-AS5IN4GK.js → chunk-R7M2DT6C.js} +5 -5
  127. package/chunks/{chunk-E23IPNGS.js → chunk-RURBZWWE.js} +13 -4
  128. package/chunks/{chunk-QV5YN5YD.js → chunk-RWVKE7TY.js} +5 -5
  129. package/chunks/{chunk-EL5SXY3T.js → chunk-RZ4PE3ER.js} +512 -24
  130. package/chunks/{chunk-76J3IJ3M.js → chunk-S5UTXHQ2.js} +8 -8
  131. package/chunks/{chunk-DGK6P3BQ.js → chunk-SBTARO34.js} +12 -12
  132. package/chunks/{chunk-ZYYTZUI2.js → chunk-SWBBY37C.js} +3 -3
  133. package/chunks/{chunk-YZHRN3CF.js → chunk-SWOKDPS5.js} +2 -2
  134. package/chunks/{chunk-WSH6GRKG.js → chunk-T2LUUKRI.js} +3 -3
  135. package/chunks/{chunk-U3VNBPUO.js → chunk-T5FEH4Y6.js} +3 -3
  136. package/chunks/{chunk-5CVO7YES.js → chunk-U4GL4WDY.js} +1 -1
  137. package/chunks/{chunk-CZBYX5MY.js → chunk-U53XZHAE.js} +1 -1
  138. package/chunks/{chunk-HIBNSEJE.js → chunk-UDG5EZJI.js} +0 -2
  139. package/chunks/{chunk-HUTNYWBG.js → chunk-US5URWKX.js} +19 -11
  140. package/chunks/{chunk-NHDR76JX.js → chunk-V4UBYT3Y.js} +1 -1
  141. package/chunks/{chunk-BVJS5BSP.js → chunk-V4WAOF4Q.js} +1 -1
  142. package/chunks/{chunk-QIH2HAEN.js → chunk-VCC5DHYW.js} +1 -1
  143. package/chunks/{chunk-PT4I7NBA.js → chunk-VX7TFATF.js} +1 -1
  144. package/chunks/{chunk-AA2BEKV3.js → chunk-W4MLKRZD.js} +3 -3
  145. package/chunks/{chunk-UZPM4XHR.js → chunk-W6WLZPTS.js} +29 -8
  146. package/chunks/{chunk-A4QRWUDE.js → chunk-WAPL2PHU.js} +2 -2
  147. package/chunks/{chunk-MC4TLKEI.js → chunk-WT3Z5SL7.js} +3 -3
  148. package/chunks/{chunk-OD2WU5QY.js → chunk-WXFFCRKG.js} +1 -1
  149. package/chunks/chunk-WZAD4ZNJ.js +59 -0
  150. package/chunks/{chunk-E3DYKPYZ.js → chunk-X7EQHW5L.js} +3 -3
  151. package/chunks/{chunk-BUQDLC2G.js → chunk-XFRYCCVC.js} +3 -3
  152. package/chunks/{chunk-OOQUVWIG.js → chunk-XH6WJMTT.js} +4 -4
  153. package/chunks/{chunk-46UV252V.js → chunk-YHC2EYYG.js} +35 -38
  154. package/chunks/{chunk-SXCOEJO4.js → chunk-YLFFVY3G.js} +1 -1
  155. package/chunks/{chunk-YZOSNW4R.js → chunk-YO7PNVBJ.js} +1 -1
  156. package/chunks/{chunk-MLPXSYXR.js → chunk-ZTZYFBDJ.js} +57 -23
  157. package/chunks/{chunk-RWDNJBWN.js → chunk-ZUISK67X.js} +2 -2
  158. package/chunks/{chunk-XLLKYULU.js → chunk-ZWWU6KNS.js} +2 -2
  159. package/chunks/{computer-use-77C5FHMW.js → computer-use-OVDA2R3V.js} +42 -41
  160. package/chunks/{config-utils-IVHRSXWI.js → config-utils-XJTGZVY3.js} +2 -2
  161. package/chunks/{contextCommand-PJ77GBWL.js → contextCommand-BSQVCK23.js} +44 -43
  162. package/chunks/{core-runtime-7VMIKUTG.js → core-runtime-Y7LAUJAL.js} +47 -45
  163. package/chunks/{create-sub-session-KRQULJE6.js → create-sub-session-TCKWBXEM.js} +6 -4
  164. package/chunks/{create-sub-session-2L5MQRN4.js → create-sub-session-X6I4CJEB.js} +46 -44
  165. package/chunks/{cron-create-H7UEPDSN.js → cron-create-PUCRMWQ6.js} +5 -5
  166. package/chunks/{cron-delete-6SZK7YFM.js → cron-delete-EOQR5CXU.js} +5 -5
  167. package/chunks/{cron-list-H25JIHEZ.js → cron-list-7O22SQBF.js} +5 -5
  168. package/chunks/{daemon-2KTG7ZBN.js → daemon-JE2UIWSY.js} +605 -126
  169. package/chunks/{daemon-git-worktree-guard-DXYIMWFT.js → daemon-git-worktree-guard-7N3WA5AD.js} +44 -43
  170. package/chunks/daemon-status-provider-3EKY2CPY.js +104 -0
  171. package/chunks/daemon-trust-policy-MPGOOA4D.js +100 -0
  172. package/chunks/{daemon-trust-policy-monitor-RYYGCQ3J.js → daemon-trust-policy-monitor-XOYVXZZF.js} +49 -48
  173. package/chunks/{de-UBEBKG6V.js → de-AH4LGCF5.js} +8 -0
  174. package/chunks/{deferred-core-runtime-3SGXFXEQ.js → deferred-core-runtime-ZIC63QJI.js} +42 -41
  175. package/chunks/{discovery-ORA5J7YP.js → discovery-X2NV535U.js} +1 -1
  176. package/chunks/{display-image-ON3EYFRD.js → display-image-6FCICTXS.js} +5 -5
  177. package/chunks/{dist-WJ4BHIEW.js → dist-ESS34DHC.js} +72 -0
  178. package/chunks/{dist-IYYN3RUT.js → dist-IELOWDOT.js} +81 -17
  179. package/chunks/{earlyInputCapture-KJMLFVQV.js → earlyInputCapture-6PKRH7MU.js} +43 -42
  180. package/chunks/{edit-I4LQFAEC.js → edit-5DDFP3AH.js} +46 -44
  181. package/chunks/{en-X6YV7GME.js → en-MD3GP5YL.js} +8 -0
  182. package/chunks/{enter-worktree-YNPOJSRH.js → enter-worktree-HFAXRXK3.js} +42 -41
  183. package/chunks/{enterPlanMode-XCPK62ER.js → enterPlanMode-BVNIJL57.js} +42 -41
  184. package/chunks/{environment-S7CTIHMX.js → environment-OHFZYW6D.js} +45 -44
  185. package/chunks/{errors-7HB2AIDS.js → errors-4TJAIIT4.js} +44 -43
  186. package/chunks/{exit-worktree-AIIY7SR6.js → exit-worktree-FAAYNE2Y.js} +42 -41
  187. package/chunks/exitPlanMode-63V5CETU.js +86 -0
  188. package/chunks/{fast-path-NDJV3ZFJ.js → fast-path-FH4SUXTG.js} +3 -3
  189. package/chunks/{fast-path-settings-LNOFM2YP.js → fast-path-settings-WHX3J3ZI.js} +2 -2
  190. package/chunks/{fr-VENTC2BS.js → fr-ZEML2JWS.js} +8 -0
  191. package/chunks/{gemini-RSUFP5OE.js → gemini-C5HA6K5L.js} +87 -85
  192. package/chunks/{geminiContentGenerator-SQ5XBPZ7.js → geminiContentGenerator-WVTSKFNG.js} +7 -7
  193. package/chunks/{getMachineId-bsd-FG7IUY6U.js → getMachineId-bsd-LSY4WMOF.js} +1 -1
  194. package/chunks/{getMachineId-darwin-GLCJI2RA.js → getMachineId-darwin-JOFR4UIT.js} +1 -1
  195. package/chunks/{getMachineId-linux-O6OPPAKO.js → getMachineId-linux-QEDBS6GI.js} +1 -1
  196. package/chunks/{getMachineId-unsupported-S6CKYVGC.js → getMachineId-unsupported-IPZ3YRKP.js} +1 -1
  197. package/chunks/{getMachineId-win-X5SRNEH7.js → getMachineId-win-TJ2OZ7AA.js} +1 -1
  198. package/chunks/{glob-J4RUJAHX.js → glob-AISOKCVH.js} +42 -41
  199. package/chunks/{goal-tools-VHTNVOKK.js → goal-tools-YIADM4RZ.js} +5 -5
  200. package/chunks/{grep-VJWPLFOT.js → grep-SQ5LKL2Z.js} +42 -41
  201. package/chunks/handleAutoUpdate-5VI7HJSD.js +97 -0
  202. package/chunks/{i18n-RM5YOICI.js → i18n-US3PUOEU.js} +43 -42
  203. package/chunks/{image-gen-EXECB5XM.js → image-gen-NIHZWV2E.js} +11 -11
  204. package/chunks/initializer-IUINTP3J.js +101 -0
  205. package/chunks/installationInfo-YYG4O7ZW.js +95 -0
  206. package/chunks/{ja-QHT4EQTO.js → ja-UM5B2HMD.js} +8 -0
  207. package/chunks/{keychain-token-storage-3XFJ5ZB2.js → keychain-token-storage-7SL4ZWQQ.js} +3 -3
  208. package/chunks/list-5F2IF6XW.js +104 -0
  209. package/chunks/{list-agents-OSVDFI6S.js → list-agents-XO4EONWC.js} +6 -6
  210. package/chunks/loadedSettingsAdapter-Q4EUE7G3.js +98 -0
  211. package/chunks/{loggingContentGenerator-WF4ZOJEZ.js → loggingContentGenerator-J3ZLTYWK.js} +24 -22
  212. package/chunks/{loop-wakeup-WQS6JYAG.js → loop-wakeup-HWSTFUTQ.js} +6 -6
  213. package/chunks/{ls-D3HUFHDP.js → ls-52HUW4B6.js} +5 -5
  214. package/chunks/{lsp-3QDDJTCS.js → lsp-VJESYEC6.js} +3 -3
  215. package/chunks/{managed-npm-update-E7IW6N7V.js → managed-npm-update-VL65AY3F.js} +43 -42
  216. package/chunks/mcp-XNHCJ46S.js +98 -0
  217. package/chunks/{monitor-EE2UYMGE.js → monitor-ZPBRRMEZ.js} +42 -41
  218. package/chunks/nonInteractiveCli-JMQPKOGW.js +166 -0
  219. package/chunks/{notebook-edit-NTDY4QDU.js → notebook-edit-XGJSZF4B.js} +46 -44
  220. package/chunks/{openaiContentGenerator-YNFVJMRJ.js → openaiContentGenerator-I3E4ROO3.js} +27 -27
  221. package/chunks/{pidfile-4XSFLYBZ.js → pidfile-XEAQP2SF.js} +43 -42
  222. package/chunks/{processUtils-WDA2MJFD.js → processUtils-VDWCC2EG.js} +2 -2
  223. package/chunks/prompt-terminal-ledger-65IC2FMD.js +93 -0
  224. package/chunks/{pt-VL3I5RNY.js → pt-5BMJ3XYH.js} +8 -0
  225. package/chunks/{qwenContentGenerator-434M7QKY.js → qwenContentGenerator-KOOZMLSO.js} +47 -46
  226. package/chunks/{qwenOAuth2-GMYZOO6A.js → qwenOAuth2-U4YR6336.js} +10 -10
  227. package/chunks/read-file-OKXMPF26.js +33 -0
  228. package/chunks/{read-mcp-resource-XD54ZQMC.js → read-mcp-resource-6VFF47Z3.js} +3 -3
  229. package/chunks/{record-artifact-SEYFJEJF.js → record-artifact-TJTN2GBV.js} +6 -4
  230. package/chunks/{resumeHistoryUtils-EVG3WYK2.js → resumeHistoryUtils-KZ4WMN4X.js} +48 -47
  231. package/chunks/ripGrep-WNJNHFT2.js +86 -0
  232. package/chunks/{ru-4RCKL4PY.js → ru-6GL66ORV.js} +8 -0
  233. package/chunks/{run-qwen-serve-3QSGRXAN.js → run-qwen-serve-OEJXD7MP.js} +518 -165
  234. package/chunks/{runtime-5MLLZ7DC.js → runtime-GT6OSKRA.js} +52 -51
  235. package/chunks/{scheduler-RPBJ63CH.js → scheduler-RU43AF2U.js} +44 -43
  236. package/chunks/{sdk-exporters-grpc-54L4LS5L.js → sdk-exporters-grpc-P3LA24AV.js} +3 -3
  237. package/chunks/{sdk-exporters-http-XUVP63H6.js → sdk-exporters-http-K3LH2SD7.js} +9 -11
  238. package/chunks/{sdk-impl-YXUEN2Z2.js → sdk-impl-WCUNMLVX.js} +11 -6
  239. package/chunks/{send-message-VZENRWRH.js → send-message-NUK5DTTI.js} +8 -8
  240. package/chunks/{serve-HS3XLPXU.js → serve-MDBHMCPP.js} +49 -50
  241. package/chunks/{server-TC4A7AAZ.js → server-G74J2RX7.js} +2158 -335
  242. package/chunks/{session-UBOFXVMN.js → session-SL5MCQXT.js} +86 -83
  243. package/chunks/{settings-D5644OM5.js → settings-XOM7I3VJ.js} +48 -47
  244. package/chunks/{shell-3PZULQQV.js → shell-HPMWXBSK.js} +42 -41
  245. package/chunks/{skill-PEVVXQ3L.js → skill-VLNJXFWG.js} +20 -18
  246. package/chunks/{skill-settings-J65JKKES.js → skill-settings-6AALKNDB.js} +48 -47
  247. package/chunks/{spawnChannel-IYGXRHSQ.js → spawnChannel-3EGRCUFM.js} +44 -43
  248. package/chunks/{standalone-update-IFM53PE7.js → standalone-update-CFQXGTAC.js} +44 -43
  249. package/chunks/{startInteractiveUI-3AVH7L6H.js → startInteractiveUI-4G2FCU2Q.js} +505 -280
  250. package/chunks/{syntheticOutput-7GWFIDXT.js → syntheticOutput-GZV6O6UL.js} +4 -4
  251. package/chunks/{task-create-FCBDX7UH.js → task-create-BXGKNND4.js} +11 -11
  252. package/chunks/{task-list-YIYIUFUA.js → task-list-4ZMIDYGD.js} +21 -7
  253. package/chunks/{task-stop-X37KYTKB.js → task-stop-WBO7LWTS.js} +3 -3
  254. package/chunks/{task-update-MYPFVOVM.js → task-update-UFO3BI7O.js} +86 -15
  255. package/chunks/{team-create-ZAIA7KAV.js → team-create-MOKIG2MP.js} +43 -43
  256. package/chunks/{team-delete-6UMU4XLS.js → team-delete-OCFJS444.js} +6 -6
  257. package/chunks/{team-plan-approval-UNIUS7OD.js → team-plan-approval-4VRYT5LD.js} +42 -41
  258. package/chunks/{terminal-image-renderer-G343P2RV.js → terminal-image-renderer-76H4ZJ2P.js} +44 -43
  259. package/chunks/theme-manager-6NNEHUB3.js +90 -0
  260. package/chunks/{todoWrite-U2R4NVF4.js → todoWrite-BGM5MCPY.js} +5 -5
  261. package/chunks/{tool-search-5R2OE4C7.js → tool-search-P4OCQE32.js} +19 -18
  262. package/chunks/{total-session-admission-4KBHMQQ2.js → total-session-admission-ERM7PSP6.js} +48 -46
  263. package/chunks/{trustedFolders-LK6T4XC7.js → trustedFolders-OI4N7ID3.js} +43 -42
  264. package/chunks/{update-relaunch-UBKROIC6.js → update-relaunch-GUNL6WGZ.js} +5 -5
  265. package/chunks/{updateCheck-W4Y2GFSD.js → updateCheck-36M7ZFF4.js} +45 -44
  266. package/chunks/{useAutoAcceptIndicator-C7BEICBF.js → useAutoAcceptIndicator-XFGTC3AU.js} +51 -50
  267. package/chunks/{validateNonInterActiveAuth-LTEI2TB6.js → validateNonInterActiveAuth-AMH6WBES.js} +82 -79
  268. package/chunks/{version-G5A5DGVS.js → version-I73SDBBX.js} +1 -1
  269. package/chunks/{web-fetch-RTEQTR5Z.js → web-fetch-AD55GOQZ.js} +21 -19
  270. package/chunks/{web-search-5OXHEZPV.js → web-search-QZNRURMF.js} +10 -10
  271. package/chunks/{workflow-ISQJHPG2.js → workflow-7A5HLL35.js} +350 -89
  272. package/chunks/workspace-providers-status-VHLOCDXW.js +101 -0
  273. package/chunks/{workspace-registration-store-CYNY6IP6.js → workspace-registration-store-SI5QHRR7.js} +1 -1
  274. package/chunks/{workspace-registry-34GTUUHB.js → workspace-registry-FLDTE2KR.js} +48 -46
  275. package/chunks/{workspace-service-XCDQLE2Y.js → workspace-service-SRGB3V7K.js} +54 -53
  276. package/chunks/workspace-skills-status-7EQR65DS.js +101 -0
  277. package/chunks/{workspace-trust-reconciler-AYGXC7A3.js → workspace-trust-reconciler-7IK4VZDK.js} +55 -53
  278. package/chunks/{write-file-EWXKVVXF.js → write-file-XAXPGL5M.js} +42 -41
  279. package/chunks/{zh-TW-SQ4HTSCW.js → zh-TW-LVLBK4KF.js} +8 -0
  280. package/chunks/{zh-LMSTK4WD.js → zh-UBMWS2BJ.js} +8 -0
  281. package/chunks/{zoom-image-4BFYJ3HG.js → zoom-image-GTNDGFB6.js} +20 -18
  282. package/cli.js +13 -13
  283. package/locales/ca.js +13 -0
  284. package/locales/de.js +12 -0
  285. package/locales/en.js +11 -0
  286. package/locales/fr.js +13 -0
  287. package/locales/ja.js +13 -0
  288. package/locales/pt.js +12 -0
  289. package/locales/ru.js +12 -0
  290. package/locales/zh-TW.js +11 -0
  291. package/locales/zh.js +11 -0
  292. package/package.json +3 -3
  293. package/web-shell/assets/{arc-CgOpDKvm.js → arc-CN-xeqBM.js} +1 -1
  294. package/web-shell/assets/{architectureDiagram-3BPJPVTR-0Ag_m34F.js → architectureDiagram-3BPJPVTR-XQJ6hBnv.js} +1 -1
  295. package/web-shell/assets/{blockDiagram-GPEHLZMM-IwTwFau0.js → blockDiagram-GPEHLZMM-n35AKogw.js} +1 -1
  296. package/web-shell/assets/{c4Diagram-AAUBKEIU-DLa5GUv8.js → c4Diagram-AAUBKEIU-DXeDVokb.js} +1 -1
  297. package/web-shell/assets/channel-BdTBh3qf.js +1 -0
  298. package/web-shell/assets/{chunk-2J33WTMH-DcYP-WFG.js → chunk-2J33WTMH-BYcmYjz_.js} +1 -1
  299. package/web-shell/assets/{chunk-4BX2VUAB-C8MVPMiQ.js → chunk-4BX2VUAB-w3UyeGtt.js} +1 -1
  300. package/web-shell/assets/{chunk-55IACEB6-BUi4Yfv3.js → chunk-55IACEB6-Td3JbOH_.js} +1 -1
  301. package/web-shell/assets/{chunk-727SXJPM-Cy3Su2YY.js → chunk-727SXJPM-gC_NR7u6.js} +1 -1
  302. package/web-shell/assets/{chunk-AQP2D5EJ-Dp8Teqv6.js → chunk-AQP2D5EJ-aD7bI3c3.js} +1 -1
  303. package/web-shell/assets/{chunk-FMBD7UC4-BDTDM-4j.js → chunk-FMBD7UC4-sHMhD16X.js} +1 -1
  304. package/web-shell/assets/{chunk-ND2GUHAM-7HfDt0r2.js → chunk-ND2GUHAM-DiV49BLl.js} +1 -1
  305. package/web-shell/assets/{chunk-QZHKN3VN-BIBU0uCF.js → chunk-QZHKN3VN-Dnoagqin.js} +1 -1
  306. package/web-shell/assets/classDiagram-4FO5ZUOK-qVxLMMuK.js +1 -0
  307. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-qVxLMMuK.js +1 -0
  308. package/web-shell/assets/{cose-bilkent-S5V4N54A-DRLdcg9p.js → cose-bilkent-S5V4N54A-K6l_zsrZ.js} +1 -1
  309. package/web-shell/assets/{dagre-BM42HDAG-DCCgDwqW.js → dagre-BM42HDAG-Chh9hQ0a.js} +1 -1
  310. package/web-shell/assets/{diagram-2AECGRRQ-CsBTBmk3.js → diagram-2AECGRRQ-Clrbd8SB.js} +1 -1
  311. package/web-shell/assets/{diagram-5GNKFQAL-C9qjH8Lt.js → diagram-5GNKFQAL-BkNExywD.js} +1 -1
  312. package/web-shell/assets/{diagram-KO2AKTUF-Brjs_lj2.js → diagram-KO2AKTUF-kTX14ngI.js} +1 -1
  313. package/web-shell/assets/{diagram-LMA3HP47-DtiWCl_F.js → diagram-LMA3HP47-Ba1QOCJy.js} +1 -1
  314. package/web-shell/assets/{diagram-OG6HWLK6-DmfKLkBT.js → diagram-OG6HWLK6-CtH5BVYm.js} +1 -1
  315. package/web-shell/assets/{erDiagram-TEJ5UH35-Bve_4deH.js → erDiagram-TEJ5UH35-DCxSIC83.js} +1 -1
  316. package/web-shell/assets/{flowDiagram-I6XJVG4X-C2_kXCcV.js → flowDiagram-I6XJVG4X-C4rNAypQ.js} +1 -1
  317. package/web-shell/assets/{ganttDiagram-6RSMTGT7-BSBIjiTF.js → ganttDiagram-6RSMTGT7-s3P5tBwL.js} +1 -1
  318. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CyebwI55.js → gitGraphDiagram-PVQCEYII-C7Eg-1ok.js} +1 -1
  319. package/web-shell/assets/index-BXoIYIJg.css +5 -0
  320. package/web-shell/assets/{index-d0yfnV1M.js → index-CszoC8cN.js} +1 -1
  321. package/web-shell/assets/index-Dxj7Naa0.js +1788 -0
  322. package/web-shell/assets/{infoDiagram-5YYISTIA-CSDGnWxU.js → infoDiagram-5YYISTIA-BDKsgMt6.js} +1 -1
  323. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-BK4jU13p.js → ishikawaDiagram-YF4QCWOH-CkcSHbvL.js} +1 -1
  324. package/web-shell/assets/{journeyDiagram-JHISSGLW-D_W6j-oF.js → journeyDiagram-JHISSGLW-CDWt-t81.js} +1 -1
  325. package/web-shell/assets/{kanban-definition-UN3LZRKU-C7xf-SdC.js → kanban-definition-UN3LZRKU-FI2owcEa.js} +1 -1
  326. package/web-shell/assets/{linear-DQmzxpxd.js → linear-BQzLqkJi.js} +1 -1
  327. package/web-shell/assets/{mermaid.core-9P7AGOLG.js → mermaid.core-CvV91DP1.js} +5 -5
  328. package/web-shell/assets/{mindmap-definition-RKZ34NQL-DgcgMyPk.js → mindmap-definition-RKZ34NQL-Dx2kLUpN.js} +1 -1
  329. package/web-shell/assets/{pieDiagram-4H26LBE5-3wWGb9eG.js → pieDiagram-4H26LBE5-CMXOmBrj.js} +1 -1
  330. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-BeCXnQw9.js → quadrantDiagram-W4KKPZXB-Bziww7Co.js} +1 -1
  331. package/web-shell/assets/{requirementDiagram-4Y6WPE33-Bi1UOHDz.js → requirementDiagram-4Y6WPE33-DMOXAxzp.js} +1 -1
  332. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-lrLUjjbb.js → sankeyDiagram-5OEKKPKP-B3y1cfVV.js} +1 -1
  333. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-BFuqKz6Q.js → sequenceDiagram-3UESZ5HK-ChrV1jiM.js} +1 -1
  334. package/web-shell/assets/{stateDiagram-AJRCARHV-8DemQLhu.js → stateDiagram-AJRCARHV-CWuLzLFE.js} +1 -1
  335. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DEDPMLgq.js +1 -0
  336. package/web-shell/assets/{timeline-definition-PNZ67QCA-uzEuVQXg.js → timeline-definition-PNZ67QCA-Cl6am_to.js} +1 -1
  337. package/web-shell/assets/{vennDiagram-CIIHVFJN-BQTeZ_-o.js → vennDiagram-CIIHVFJN-OuocxGAu.js} +1 -1
  338. package/web-shell/assets/{wardley-L42UT6IY-B6yM5Im7.js → wardley-L42UT6IY-DLYdvSJW.js} +1 -1
  339. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-ChM8bmgn.js → wardleyDiagram-YWT4CUSO-7a3DreXX.js} +1 -1
  340. package/web-shell/assets/{xychartDiagram-2RQKCTM6-oNG6HyB1.js → xychartDiagram-2RQKCTM6-CgfjUxW_.js} +1 -1
  341. package/web-shell/index.html +2 -2
  342. package/chunks/agent-headless-GJCQMURW.js +0 -87
  343. package/chunks/chunk-K5IDV3PC.js +0 -519
  344. package/chunks/chunk-MPHPFVKK.js +0 -48
  345. package/chunks/chunk-RLKC46YT.js +0 -3582
  346. package/chunks/chunk-UPDOZBWO.js +0 -358
  347. package/chunks/daemon-status-provider-ZDOYJCU6.js +0 -102
  348. package/chunks/daemon-trust-policy-E67OYUK2.js +0 -99
  349. package/chunks/exitPlanMode-R4JY7V2O.js +0 -85
  350. package/chunks/handleAutoUpdate-POCX2MNB.js +0 -94
  351. package/chunks/initializer-Z2AFGBNR.js +0 -100
  352. package/chunks/installationInfo-4I5FXNMH.js +0 -92
  353. package/chunks/list-ZMBFIGZA.js +0 -103
  354. package/chunks/loadedSettingsAdapter-T6TV4YJ7.js +0 -97
  355. package/chunks/mcp-6UNYX4HG.js +0 -97
  356. package/chunks/nonInteractiveCli-WAY237O4.js +0 -163
  357. package/chunks/read-file-TAFBKMNI.js +0 -32
  358. package/chunks/ripGrep-WOEK2PXS.js +0 -85
  359. package/chunks/theme-manager-Z3RIT7DB.js +0 -89
  360. package/chunks/workspace-providers-status-2ZPZPUPZ.js +0 -100
  361. package/chunks/workspace-skills-status-RS4O7AIJ.js +0 -100
  362. package/web-shell/assets/channel-BrGVBa2L.js +0 -1
  363. package/web-shell/assets/classDiagram-4FO5ZUOK-B5TUzJzI.js +0 -1
  364. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B5TUzJzI.js +0 -1
  365. package/web-shell/assets/index-CIDsgxTe.js +0 -1792
  366. package/web-shell/assets/index-DiQnWi_E.css +0 -5
  367. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DhM5ixYd.js +0 -1
@@ -1,5 +1,8 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ import {
4
+ useAutoAcceptIndicator
5
+ } from "./chunk-I5DOIT4L.js";
3
6
  import {
4
7
  classifyApiError,
5
8
  fireSessionDeleteHook
@@ -10,7 +13,7 @@ import {
10
13
  import {
11
14
  TUI_CHAT_RECORDING_FAILURE_MESSAGE,
12
15
  reportChatRecordingFailureToAdapter
13
- } from "./chunk-RIAABG2K.js";
16
+ } from "./chunk-LGA4VING.js";
14
17
  import {
15
18
  MAX_SUGGESTIONS_TO_SHOW,
16
19
  SESSION_MENTION_PREFIX,
@@ -22,23 +25,26 @@ import {
22
25
  matchMcpServerPrefix,
23
26
  resolveAtCommandQuery,
24
27
  sanitizeDisplayText
25
- } from "./chunk-76J3IJ3M.js";
28
+ } from "./chunk-S5UTXHQ2.js";
26
29
  import {
27
30
  StreamJsonOutputAdapter
28
- } from "./chunk-UZPM4XHR.js";
31
+ } from "./chunk-W6WLZPTS.js";
29
32
  import {
30
33
  BuiltinCommandLoader,
31
34
  BundledSkillLoader,
35
+ CONTEXT_FILES_ANNOUNCEMENT_PREFIX,
32
36
  CommandService,
33
37
  DISPLAY_HOOK_EVENTS,
34
38
  FileCommandLoader,
35
39
  MAX_STACKED_SKILLS,
36
40
  McpPromptLoader,
41
+ SLASH_COMMANDS_SKIP_RECORDING,
37
42
  SavedWorkflowLoader,
38
43
  SkillCommandLoader,
39
44
  addConfigToMatcherGroup,
40
45
  appendUserPromptExpansionAdditionalContext,
41
46
  buildBackgroundWorkBlockedMessage,
47
+ consumesContextAnnouncementLatch,
42
48
  copyToClipboard,
43
49
  createEmptyHookEventInfo,
44
50
  dayKey,
@@ -55,6 +61,7 @@ import {
55
61
  hasSlashCommandPathSeparator,
56
62
  isAtCommand,
57
63
  isBtwCommand,
64
+ isContextFilesAnnouncement,
58
65
  isMidInputCompletableCommand,
59
66
  isPickerOnlyModelInvocation,
60
67
  isSlashCommand,
@@ -69,18 +76,18 @@ import {
69
76
  resetBackgroundStateForSessionSwitch,
70
77
  serializeUserPromptExpansionPrompt,
71
78
  supportsMatchers
72
- } from "./chunk-NNHNLJ2X.js";
73
- import "./chunk-N5YPT6PH.js";
79
+ } from "./chunk-NCLV2VQ2.js";
80
+ import "./chunk-IUBZQVZW.js";
74
81
  import {
75
82
  startPostRenderPrefetches
76
- } from "./chunk-DGK6P3BQ.js";
83
+ } from "./chunk-SBTARO34.js";
77
84
  import {
78
85
  EXTENSION_RELOAD_FAILED_REASON,
79
86
  ExtensionRefreshState,
80
87
  appEvents,
81
88
  cleanupReviewWorktreeLeases,
82
89
  loadHierarchicalGeminiMemory
83
- } from "./chunk-IGGGG5CX.js";
90
+ } from "./chunk-KW2JLCIF.js";
84
91
  import {
85
92
  AboutBox,
86
93
  BaseSelectionList,
@@ -158,21 +165,40 @@ import {
158
165
  useUIActions,
159
166
  useUIState,
160
167
  useVirtualViewport
161
- } from "./chunk-QF2NHSPB.js";
168
+ } from "./chunk-PGXIK6O7.js";
169
+ import {
170
+ KeypressProvider,
171
+ useFocus,
172
+ useKeypress,
173
+ useKeypressContext
174
+ } from "./chunk-5MA4E4EG.js";
162
175
  import {
163
176
  getCommandDisplayName,
164
177
  getCommandSourceBadge
165
- } from "./chunk-AFSG32D5.js";
178
+ } from "./chunk-Q3ERPVRE.js";
166
179
  import {
167
180
  computeSessionStats,
168
181
  levelLabel
169
- } from "./chunk-O4D7SPJN.js";
182
+ } from "./chunk-HYLQQAQB.js";
183
+ import {
184
+ BEL,
185
+ OSC_PREFIX,
186
+ cleanupOldClipboardImages,
187
+ clipboardHasImage,
188
+ detectTerminal,
189
+ generateKittyId,
190
+ oscGhosttyNotify,
191
+ oscITerm2Notify,
192
+ oscKittyNotify,
193
+ saveClipboardImage,
194
+ writeOsc52
195
+ } from "./chunk-EB27VF5Z.js";
170
196
  import "./chunk-4WGODMVR.js";
171
197
  import {
172
198
  MaxSizedBox,
173
199
  OverflowProvider,
174
200
  useOverflowState
175
- } from "./chunk-BHILXOC3.js";
201
+ } from "./chunk-435GZDTF.js";
176
202
  import {
177
203
  GeminiRespondingSpinner,
178
204
  GeminiSpinner,
@@ -189,7 +215,7 @@ import {
189
215
  useStreamingContext,
190
216
  waitForGoalRuntime,
191
217
  wrapAnsi
192
- } from "./chunk-ZYBBISBY.js";
218
+ } from "./chunk-66A2RG5S.js";
193
219
  import {
194
220
  formatDuration,
195
221
  formatRelativeTime,
@@ -197,38 +223,7 @@ import {
197
223
  } from "./chunk-3SH53ANB.js";
198
224
  import {
199
225
  theme
200
- } from "./chunk-6QFDQMQX.js";
201
- import {
202
- stopAndGetCapturedInput
203
- } from "./chunk-YZOSNW4R.js";
204
- import {
205
- disableKittyProtocol,
206
- isKittyProtocolEnabled,
207
- isKittyProtocolSupported,
208
- pushKittyProtocolFlags
209
- } from "./chunk-NYX53SV4.js";
210
- import {
211
- useAutoAcceptIndicator
212
- } from "./chunk-MRMJCLIY.js";
213
- import {
214
- KeypressProvider,
215
- useFocus,
216
- useKeypress,
217
- useKeypressContext
218
- } from "./chunk-M732YJPW.js";
219
- import {
220
- BEL,
221
- OSC_PREFIX,
222
- cleanupOldClipboardImages,
223
- clipboardHasImage,
224
- detectTerminal,
225
- generateKittyId,
226
- oscGhosttyNotify,
227
- oscITerm2Notify,
228
- oscKittyNotify,
229
- saveClipboardImage,
230
- writeOsc52
231
- } from "./chunk-DXIBNLBZ.js";
226
+ } from "./chunk-F7ZK5VMA.js";
232
227
  import {
233
228
  require_jsx_runtime
234
229
  } from "./chunk-SV5PQVQE.js";
@@ -246,47 +241,56 @@ import {
246
241
  use_stdin_default,
247
242
  use_stdout_default
248
243
  } from "./chunk-2IIJTXYF.js";
244
+ import {
245
+ stopAndGetCapturedInput
246
+ } from "./chunk-YO7PNVBJ.js";
247
+ import {
248
+ disableKittyProtocol,
249
+ isKittyProtocolEnabled,
250
+ isKittyProtocolSupported,
251
+ pushKittyProtocolFlags
252
+ } from "./chunk-NYX53SV4.js";
253
+ import "./chunk-M53UJS6H.js";
254
+ import {
255
+ MAX_INLINE_IMAGES_PER_ITEM,
256
+ collectInlineImages,
257
+ getInlineImageData
258
+ } from "./chunk-YLFFVY3G.js";
249
259
  import {
250
260
  relaunchApp
251
- } from "./chunk-PQ36L4F5.js";
261
+ } from "./chunk-2UNEPJQK.js";
252
262
  import {
253
263
  setUpdateHandler
254
- } from "./chunk-UKMR3CKV.js";
264
+ } from "./chunk-FU7KPUCT.js";
255
265
  import {
256
266
  isHistoryItemVisibleAfterRestore
257
267
  } from "./chunk-EKTCKZV5.js";
258
- import "./chunk-AS5IN4GK.js";
268
+ import "./chunk-R7M2DT6C.js";
259
269
  import {
260
270
  AUTO_THEME_NAME,
261
271
  DEFAULT_THEME,
262
272
  themeManager
263
- } from "./chunk-2M55OBEB.js";
273
+ } from "./chunk-JV443R5X.js";
264
274
  import "./chunk-KW7NOTN6.js";
265
275
  import {
266
276
  require_react
267
277
  } from "./chunk-5QWWOFGG.js";
268
- import "./chunk-GO7STP6N.js";
278
+ import "./chunk-KK2S7MIH.js";
269
279
  import {
270
280
  getErrorMessage as getErrorMessage2
271
- } from "./chunk-JUEPY766.js";
272
- import "./chunk-U3VNBPUO.js";
273
- import "./chunk-NEFOOD54.js";
281
+ } from "./chunk-5QYE546S.js";
282
+ import "./chunk-T5FEH4Y6.js";
283
+ import "./chunk-GL5X57U7.js";
274
284
  import "./chunk-YAF2MQZ6.js";
275
- import "./chunk-IA2K2HJE.js";
276
- import {
277
- MAX_INLINE_IMAGES_PER_ITEM,
278
- collectInlineImages,
279
- getInlineImageData
280
- } from "./chunk-SXCOEJO4.js";
281
- import "./chunk-QRCNA3SR.js";
285
+ import "./chunk-FQRYG6XX.js";
282
286
  import "./chunk-6H67XLET.js";
283
287
  import {
284
288
  openQwenAsrRealtimeStream,
285
289
  openVoiceStream,
286
290
  openVoiceStreamWithRetry
287
- } from "./chunk-AXN7UPYQ.js";
288
- import "./chunk-RLKC46YT.js";
289
- import "./chunk-BZ263IKX.js";
291
+ } from "./chunk-FQZBD3PY.js";
292
+ import "./chunk-QJCELOZU.js";
293
+ import "./chunk-G32ESUUC.js";
290
294
  import {
291
295
  cpLen,
292
296
  cpSlice,
@@ -298,8 +302,8 @@ import {
298
302
  sanitizeTerminalText,
299
303
  stripUnsafeCharacters,
300
304
  toCodePoints
301
- } from "./chunk-4NFY2S7N.js";
302
- import "./chunk-3U3VAL47.js";
305
+ } from "./chunk-E7REAOTN.js";
306
+ import "./chunk-QIKHRDDI.js";
303
307
  import {
304
308
  stringWidth
305
309
  } from "./chunk-2MIN6GRR.js";
@@ -315,55 +319,56 @@ import {
315
319
  isStreamingVoiceModel,
316
320
  resolveVoiceStreamConfig,
317
321
  transcribeVoiceAudio
318
- } from "./chunk-6ORZ2EDC.js";
322
+ } from "./chunk-5YD2D6G6.js";
319
323
  import {
320
324
  formatUnsupportedVoiceModelMessage,
321
325
  isSelectableVoiceModel
322
- } from "./chunk-QIH2HAEN.js";
323
- import "./chunk-WGHHA7ZH.js";
326
+ } from "./chunk-VCC5DHYW.js";
327
+ import "./chunk-3C55EUJX.js";
324
328
  import {
325
329
  getExtendedSystemInfo
326
- } from "./chunk-XHRY7BXD.js";
330
+ } from "./chunk-ELA3DNCT.js";
327
331
  import "./chunk-7U5G6JXI.js";
328
332
  import "./chunk-WCCLLK7X.js";
329
333
  import {
330
334
  isInlineModelOverrideAllowed
331
- } from "./chunk-ZYYTZUI2.js";
335
+ } from "./chunk-SWBBY37C.js";
332
336
  import {
333
337
  computeWorkspaceSkillListUpdates,
334
338
  resolveSkillSettings,
335
339
  skillSettingStrings
336
340
  } from "./chunk-Z4X5MTRT.js";
337
- import "./chunk-TUGSVUJB.js";
341
+ import "./chunk-IN55HSUI.js";
338
342
  import {
339
343
  requestConsentInteractive,
340
344
  requestConsentOrFail
341
- } from "./chunk-QV5YN5YD.js";
345
+ } from "./chunk-RWVKE7TY.js";
342
346
  import "./chunk-57OAHC2Y.js";
343
- import "./chunk-OD2WU5QY.js";
347
+ import "./chunk-WXFFCRKG.js";
344
348
  import "./chunk-45NQKMYB.js";
345
- import "./chunk-A4QRWUDE.js";
349
+ import "./chunk-WAPL2PHU.js";
346
350
  import "./chunk-V6WHFGST.js";
347
351
  import {
348
352
  createLoadedSettingsAdapter
349
- } from "./chunk-BVJS5BSP.js";
353
+ } from "./chunk-V4WAOF4Q.js";
350
354
  import "./chunk-ZLCT4C5A.js";
351
355
  import "./chunk-2AUM35J5.js";
352
- import "./chunk-BKPPWD33.js";
356
+ import "./chunk-HHHXD5XY.js";
357
+ import "./chunk-QQUVPMMZ.js";
353
358
  import "./chunk-6PLDPT2C.js";
354
359
  import "./chunk-FYJ7W2PI.js";
355
- import "./chunk-YP5KH5Y7.js";
360
+ import "./chunk-ND7NOI4P.js";
356
361
  import "./chunk-A6NRNRKE.js";
357
362
  import "./chunk-ALMR3E6Q.js";
358
- import "./chunk-HIBNSEJE.js";
363
+ import "./chunk-UDG5EZJI.js";
359
364
  import "./chunk-M5GB774H.js";
360
365
  import "./chunk-3VUENPWF.js";
361
366
  import "./chunk-AW27A43Y.js";
362
367
  import "./chunk-IW6RQPQB.js";
363
- import "./chunk-H4A72DE5.js";
368
+ import "./chunk-PTMVPFCZ.js";
364
369
  import {
365
370
  loadMcpApprovals
366
- } from "./chunk-JOOFMXGF.js";
371
+ } from "./chunk-7EYDW732.js";
367
372
  import {
368
373
  CORRUPTED_SUFFIX,
369
374
  SettingScope,
@@ -385,11 +390,11 @@ import {
385
390
  settingExistsInScope,
386
391
  validateSettingValue,
387
392
  writeOutputLanguageAndRegisterPath
388
- } from "./chunk-A267JX7H.js";
393
+ } from "./chunk-CWFIQLCV.js";
389
394
  import "./chunk-RKUWKYED.js";
390
395
  import {
391
396
  TOGGLE_TYPES
392
- } from "./chunk-E23IPNGS.js";
397
+ } from "./chunk-RURBZWWE.js";
393
398
  import "./chunk-GOXKNSDZ.js";
394
399
  import "./chunk-IDS7MSUP.js";
395
400
  import {
@@ -397,24 +402,25 @@ import {
397
402
  localizeToolDisplayName,
398
403
  t,
399
404
  ta
400
- } from "./chunk-HUTNYWBG.js";
405
+ } from "./chunk-US5URWKX.js";
401
406
  import "./chunk-5EJZE3FP.js";
402
- import "./chunk-MC4TLKEI.js";
403
- import "./chunk-MS7GNABG.js";
407
+ import "./chunk-WT3Z5SL7.js";
408
+ import "./chunk-CXJHQVEK.js";
404
409
  import "./chunk-NF5J2WFA.js";
405
410
  import {
406
411
  getCliVersion
407
- } from "./chunk-CU6GJD55.js";
412
+ } from "./chunk-Q6BRKUVQ.js";
408
413
  import "./chunk-WZMH7II3.js";
409
414
  import {
410
415
  isWorkspaceTrusted,
411
416
  loadTrustedFolders
412
- } from "./chunk-IWPYVAO2.js";
417
+ } from "./chunk-4HUYO5AU.js";
413
418
  import {
414
419
  require_strip_json_comments
415
420
  } from "./chunk-NPQ5ZKRP.js";
416
421
  import "./chunk-MR3PXB6E.js";
417
422
  import "./chunk-XFSFZCM5.js";
423
+ import "./chunk-LJZSMWOH.js";
418
424
  import {
419
425
  ALIBABA_PROVIDERS,
420
426
  AsyncFzf,
@@ -474,6 +480,7 @@ import {
474
480
  generatePromptSuggestion,
475
481
  generateSessionRecap,
476
482
  generateToolUseSummary,
483
+ getCachedToolCallFingerprint,
477
484
  getDefaultBaseUrlForProtocol,
478
485
  getDefaultModelIds,
479
486
  getExtensionDisplayName,
@@ -485,9 +492,11 @@ import {
485
492
  glob,
486
493
  ideContextStore,
487
494
  isActiveWorkflowStatus,
495
+ isClearedMediaPlaceholder,
488
496
  isEditorAvailable,
489
497
  isExtensionCommittedWithWarningsError,
490
498
  isGatedMcpScope,
499
+ isReplayOfHandledToolCall,
491
500
  isSessionRuntimeActive,
492
501
  isSettledStatus,
493
502
  isSignalTermination,
@@ -505,8 +514,10 @@ import {
505
514
  parseVisionModelSetting,
506
515
  readWorktreeSession,
507
516
  readWorktreeSessionMarker,
517
+ recordHandledToolCall,
508
518
  refreshMemoryAfterManagedWrite,
509
519
  refreshMemoryInstruction,
520
+ registerSession,
510
521
  resolveBaseUrl,
511
522
  resolveBranchName,
512
523
  resolveMetadataKey,
@@ -520,25 +531,25 @@ import {
520
531
  validateWorkflowName,
521
532
  watchRepoBranch,
522
533
  writeRuntimeStatus
523
- } from "./chunk-4S5337WV.js";
534
+ } from "./chunk-BB3FKSIJ.js";
524
535
  import "./chunk-GOFAQQZA.js";
525
536
  import "./chunk-5M6IDOMF.js";
526
537
  import {
527
538
  stripAnsi
528
539
  } from "./chunk-TWPJO254.js";
529
540
  import "./chunk-CQ35AJ4Z.js";
530
- import "./chunk-DGZEMW5R.js";
531
- import "./chunk-WSH6GRKG.js";
532
- import "./chunk-CKSJECTU.js";
533
- import "./chunk-OVZPVYZB.js";
541
+ import "./chunk-F5JZDC4O.js";
542
+ import "./chunk-T2LUUKRI.js";
543
+ import "./chunk-A7NBZBGQ.js";
544
+ import "./chunk-7S22SX2L.js";
534
545
  import "./chunk-6PVPNMXU.js";
535
546
  import {
536
547
  resolveModelId
537
- } from "./chunk-5EYKMUUY.js";
548
+ } from "./chunk-6JLZBBCY.js";
538
549
  import "./chunk-IRH27ZC2.js";
539
550
  import "./chunk-QHWCP53L.js";
540
- import "./chunk-Y3YCSWG5.js";
541
- import "./chunk-UPDOZBWO.js";
551
+ import "./chunk-G64PEZZ5.js";
552
+ import "./chunk-O75QDGQF.js";
542
553
  import {
543
554
  promptIdContext
544
555
  } from "./chunk-O6GEWCJA.js";
@@ -547,61 +558,58 @@ import "./chunk-ZPJWUGCS.js";
547
558
  import "./chunk-CPBF7KYF.js";
548
559
  import {
549
560
  APPROVAL_MODES
550
- } from "./chunk-RWDNJBWN.js";
551
- import "./chunk-25EYDK42.js";
561
+ } from "./chunk-ZUISK67X.js";
562
+ import "./chunk-3EQHT3IC.js";
552
563
  import {
553
564
  HOOKS_CONFIG_FIELDS
554
- } from "./chunk-MIPFDQAF.js";
565
+ } from "./chunk-4W4BROUS.js";
555
566
  import "./chunk-MLXTMF7H.js";
556
- import "./chunk-KV27IEHM.js";
557
- import "./chunk-E3DYKPYZ.js";
567
+ import "./chunk-L5JHSPET.js";
568
+ import "./chunk-X7EQHW5L.js";
558
569
  import {
559
570
  elapsedActiveTime,
560
571
  goalRequiresExactPermit
561
- } from "./chunk-OMLJNPBE.js";
562
- import "./chunk-OXCMMLED.js";
563
- import "./chunk-TIGA2IVL.js";
572
+ } from "./chunk-JBSW7JA6.js";
573
+ import "./chunk-O327G3QW.js";
574
+ import "./chunk-2GM44E7D.js";
564
575
  import "./chunk-SAH4BD2J.js";
565
- import "./chunk-XLLKYULU.js";
576
+ import "./chunk-ZWWU6KNS.js";
566
577
  import {
567
578
  runOutsideAgentContext
568
- } from "./chunk-PT4I7NBA.js";
579
+ } from "./chunk-VX7TFATF.js";
569
580
  import "./chunk-S6LOFUVP.js";
570
581
  import "./chunk-2J3OJGTL.js";
571
582
  import {
572
583
  getStartupContextLength,
573
584
  isSystemReminderContent
574
- } from "./chunk-SG7ZP5PG.js";
585
+ } from "./chunk-HHNSO2Y4.js";
575
586
  import "./chunk-K623ENWT.js";
576
587
  import "./chunk-AQ37AY7B.js";
577
588
  import {
578
589
  isPathWithinRoot
579
- } from "./chunk-KBXKR5R2.js";
590
+ } from "./chunk-M5AIO24H.js";
580
591
  import {
581
592
  osc8Hyperlink,
582
593
  qwenOAuth2Events,
583
594
  sanitizeForOsc,
584
595
  supportsHyperlinks,
585
596
  wrapForMultiplexer
586
- } from "./chunk-GMIEIY3Y.js";
597
+ } from "./chunk-47VTGCYK.js";
587
598
  import "./chunk-NAVJD2PQ.js";
588
- import "./chunk-ROIYNTHJ.js";
589
- import "./chunk-2B2BF7P7.js";
599
+ import "./chunk-MD7XDTW7.js";
600
+ import "./chunk-FAIJ5UIU.js";
590
601
  import "./chunk-P3QQPMQA.js";
591
- import "./chunk-YZHRN3CF.js";
592
- import "./chunk-FAAUPSY2.js";
602
+ import "./chunk-SWOKDPS5.js";
603
+ import "./chunk-HEMFCAHG.js";
593
604
  import {
594
605
  REASONING_EFFORT_TIERS,
595
606
  applyReasoningEffort
596
607
  } from "./chunk-KM73TBQ4.js";
597
- import {
598
- getUnsupportedImageFormatWarning,
599
- isSupportedImageMimeType
600
- } from "./chunk-MPHPFVKK.js";
601
608
  import "./chunk-AXMWHKXA.js";
602
609
  import "./chunk-GLCZKT5V.js";
603
610
  import "./chunk-DJ2GSRLV.js";
604
- import "./chunk-QFJ5JHQR.js";
611
+ import "./chunk-PXOIRYE5.js";
612
+ import "./chunk-7NLDU6J2.js";
605
613
  import {
606
614
  ApiCancelEvent,
607
615
  AuthEvent,
@@ -617,7 +625,6 @@ import {
617
625
  addMCPStatusChangeListener,
618
626
  formatFullTurnVisionNotice,
619
627
  formatVisionBridgeNotice,
620
- getAllGeminiMdFilenames,
621
628
  getAllMCPServerStatuses,
622
629
  getFullTurnVisionModelSelector,
623
630
  getMCPServerStatus,
@@ -641,45 +648,51 @@ import {
641
648
  runVisionBridge,
642
649
  shouldRunVisionBridge,
643
650
  splitImageParts
644
- } from "./chunk-RVOJ2FBP.js";
651
+ } from "./chunk-EXY6APEA.js";
645
652
  import "./chunk-YRLW2MSX.js";
646
653
  import "./chunk-VGC4I5JJ.js";
654
+ import {
655
+ getAllGeminiMdFilenames
656
+ } from "./chunk-MGEWDLRO.js";
647
657
  import {
648
658
  AUTO_MEMORY_INDEX_FILENAME,
649
659
  getAutoMemoryProjectStateDir,
650
660
  getAutoMemoryRoot,
651
661
  getUserAutoMemoryRoot,
652
662
  isAnyAutoMemPath
653
- } from "./chunk-CHHABXPE.js";
663
+ } from "./chunk-5AAW6E3C.js";
654
664
  import {
655
665
  runSideQuery
656
- } from "./chunk-MA2HEDVP.js";
657
- import "./chunk-XUJNK7Y6.js";
666
+ } from "./chunk-4CKU5K2R.js";
667
+ import "./chunk-7WVB4FMG.js";
658
668
  import {
659
669
  ToolNames,
660
670
  isShellProgressData
661
- } from "./chunk-6HY6IF3Z.js";
662
- import "./chunk-4PKCUT7F.js";
671
+ } from "./chunk-OUYRA764.js";
672
+ import "./chunk-4JORWK55.js";
663
673
  import {
664
674
  MAINLINE_CODER_MODEL
665
675
  } from "./chunk-F6WFNA7U.js";
666
- import "./chunk-46UV252V.js";
676
+ import "./chunk-WZAD4ZNJ.js";
667
677
  import {
668
678
  DEFAULT_TOKEN_LIMIT
669
679
  } from "./chunk-FPGTNKCP.js";
670
- import "./chunk-CPHEPGAO.js";
671
- import "./chunk-P7MPQI75.js";
680
+ import {
681
+ getUnsupportedImageFormatWarning,
682
+ isSupportedImageMimeType
683
+ } from "./chunk-YHC2EYYG.js";
684
+ import "./chunk-722JBVVW.js";
685
+ import "./chunk-B5LEKTE7.js";
672
686
  import {
673
687
  atomicWriteFileSync
674
- } from "./chunk-FDGGZIYW.js";
688
+ } from "./chunk-Q6ETBOWF.js";
689
+ import "./chunk-HHJLM3WQ.js";
675
690
  import {
676
691
  endInteractionSpan,
677
692
  getActiveInteractionSpan,
678
693
  isBinary,
679
694
  redactUrlCredentials
680
- } from "./chunk-EL5SXY3T.js";
681
- import "./chunk-HHJLM3WQ.js";
682
- import "./chunk-K5IDV3PC.js";
695
+ } from "./chunk-RZ4PE3ER.js";
683
696
  import {
684
697
  Storage,
685
698
  UnauthorizedError,
@@ -691,13 +704,13 @@ import {
691
704
  isNodeError,
692
705
  shortenPath,
693
706
  tildeifyPath
694
- } from "./chunk-BUQDLC2G.js";
707
+ } from "./chunk-XFRYCCVC.js";
695
708
  import "./chunk-VOQXFAY5.js";
696
- import "./chunk-AW4TRXOC.js";
709
+ import "./chunk-NCNEK4XO.js";
697
710
  import {
698
711
  registerCleanup,
699
712
  runExitCleanup
700
- } from "./chunk-X26JYGTD.js";
713
+ } from "./chunk-2VH3QVLW.js";
701
714
  import {
702
715
  finalizeStartupProfile,
703
716
  profileCheckpoint
@@ -718,7 +731,7 @@ import {
718
731
  import "./chunk-TYAMGABM.js";
719
732
  import "./chunk-FCMNKVXT.js";
720
733
  import "./chunk-AMDSOFFV.js";
721
- import "./chunk-QUGAUQGJ.js";
734
+ import "./chunk-GX2THELY.js";
722
735
  import {
723
736
  init_esbuild_shims
724
737
  } from "./chunk-5O2XNYP6.js";
@@ -2376,6 +2389,7 @@ function isSyntheticHistoryItem(item) {
2376
2389
  case "gemini_content":
2377
2390
  case "tool_group":
2378
2391
  case "btw":
2392
+ case "advisor":
2379
2393
  case "memory_saved":
2380
2394
  case "about":
2381
2395
  case "help":
@@ -4011,14 +4025,38 @@ var MainContent = /* @__PURE__ */ __name(({ footerRef }) => {
4011
4025
  return () => clearImmediate(handle);
4012
4026
  }, [useVirtualScroll, replayCount, visibleHistory.length]);
4013
4027
  const visibleHistoryItemsWithSourceCopyOffsets = historyItemsWithSourceCopyOffsets.length - replayCount <= PROGRESSIVE_REPLAY_CHUNK_SIZE ? historyItemsWithSourceCopyOffsets : historyItemsWithSourceCopyOffsets.slice(0, replayCount);
4014
- const allVirtualItems = (0, import_react14.useMemo)(
4015
- () => [
4028
+ const allVirtualItems = (0, import_react14.useMemo)(() => {
4029
+ const combined = [
4016
4030
  VP_BANNER_ITEM,
4017
4031
  ...visibleHistory,
4018
4032
  ...pendingHistoryItems.map((item, i) => ({ ...item, id: -(i + 1) }))
4019
- ],
4020
- [visibleHistory, pendingHistoryItems]
4021
- );
4033
+ ];
4034
+ const livePendingBatchIds = /* @__PURE__ */ new Set();
4035
+ for (const item of pendingHistoryItems) {
4036
+ if (item.type === "tool_group" && item.batchId !== void 0) {
4037
+ livePendingBatchIds.add(item.batchId);
4038
+ }
4039
+ }
4040
+ if (livePendingBatchIds.size === 0) return combined;
4041
+ const dropped = /* @__PURE__ */ new Set();
4042
+ const committedByBatchId = /* @__PURE__ */ new Map();
4043
+ const keptPendingByBatchId = /* @__PURE__ */ new Map();
4044
+ for (const item of combined) {
4045
+ if (item.type !== "tool_group" || item.batchId === void 0 || !livePendingBatchIds.has(item.batchId)) {
4046
+ continue;
4047
+ }
4048
+ if (item.id > 0) {
4049
+ committedByBatchId.set(item.batchId, item);
4050
+ } else {
4051
+ const kept = keptPendingByBatchId.get(item.batchId);
4052
+ if (kept) dropped.add(kept);
4053
+ keptPendingByBatchId.set(item.batchId, item);
4054
+ }
4055
+ }
4056
+ for (const item of committedByBatchId.values()) dropped.add(item);
4057
+ if (dropped.size === 0) return combined;
4058
+ return combined.filter((item) => !dropped.has(item));
4059
+ }, [visibleHistory, pendingHistoryItems]);
4022
4060
  const sourceCopyOffsetsByHistoryItem = (0, import_react14.useMemo)(() => {
4023
4061
  const map = /* @__PURE__ */ new Map();
4024
4062
  for (const {
@@ -21242,12 +21280,14 @@ function isUserTextContent(content) {
21242
21280
  );
21243
21281
  if (hasFunctionResponse) return false;
21244
21282
  if (isSystemReminderContent(content)) return false;
21245
- return content.parts.some((part) => "text" in part && part.text);
21283
+ return content.parts.some(
21284
+ (part) => "text" in part && !!part.text && !isClearedMediaPlaceholder(part.text)
21285
+ );
21246
21286
  }
21247
21287
  __name(isUserTextContent, "isUserTextContent");
21248
21288
  function findLastSuccessfulCompressionIndex(history) {
21249
21289
  return history.findLastIndex(
21250
- (item) => item.type === "compression" && item.compression.compressionStatus === 1 /* COMPRESSED */
21290
+ (item) => item.type === "compression" && item.compression.compressionStatus === 1 /* COMPRESSED */ && item.compression.compressionKind !== "fast"
21251
21291
  );
21252
21292
  }
21253
21293
  __name(findLastSuccessfulCompressionIndex, "findLastSuccessfulCompressionIndex");
@@ -21269,6 +21309,9 @@ function computeApiTruncationIndex(uiHistory, targetUserItemId, apiHistory) {
21269
21309
  includeCompressed: true
21270
21310
  });
21271
21311
  if (uiUserTurnCount === 0) {
21312
+ if (compressionIndex === -1 && startIndex > getStartupContextLength(apiHistory)) {
21313
+ return -1;
21314
+ }
21272
21315
  return startIndex;
21273
21316
  }
21274
21317
  let realUserPromptCount = 0;
@@ -27867,6 +27910,7 @@ function AgentViewProvider({
27867
27910
  const switchToAgent = (0, import_react94.useCallback)(
27868
27911
  (agentId) => {
27869
27912
  if (agents.has(agentId)) {
27913
+ setAgentShellFocused(false);
27870
27914
  setActiveView(agentId);
27871
27915
  }
27872
27916
  },
@@ -27876,14 +27920,24 @@ function AgentViewProvider({
27876
27920
  const ids = ["main", ...agents.keys()];
27877
27921
  const currentIndex = ids.indexOf(activeView);
27878
27922
  const nextIndex = (currentIndex + 1) % ids.length;
27923
+ setAgentShellFocused(false);
27879
27924
  setActiveView(ids[nextIndex]);
27880
27925
  }, [agents, activeView]);
27881
27926
  const switchToPrevious = (0, import_react94.useCallback)(() => {
27882
27927
  const ids = ["main", ...agents.keys()];
27883
27928
  const currentIndex = ids.indexOf(activeView);
27884
27929
  const prevIndex = (currentIndex - 1 + ids.length) % ids.length;
27930
+ setAgentShellFocused(false);
27885
27931
  setActiveView(ids[prevIndex]);
27886
27932
  }, [agents, activeView]);
27933
+ const initialViewRef = (0, import_react94.useRef)(true);
27934
+ (0, import_react94.useEffect)(() => {
27935
+ if (initialViewRef.current) {
27936
+ initialViewRef.current = false;
27937
+ return;
27938
+ }
27939
+ setAgentShellFocused(false);
27940
+ }, [activeView]);
27887
27941
  const registerAgent = (0, import_react94.useCallback)(
27888
27942
  (agentId, interactiveAgent, modelId, color, modelName) => {
27889
27943
  setAgents((prev) => {
@@ -33015,22 +33069,54 @@ var AgentChatMissing = /* @__PURE__ */ __name(({ label }) => /* @__PURE__ */ (0,
33015
33069
 
33016
33070
  // packages/cli/src/ui/components/agent-view/AgentChatView.tsx
33017
33071
  var import_jsx_runtime126 = __toESM(require_jsx_runtime(), 1);
33072
+ var debugLogger31 = createDebugLogger("AGENT_TAB_RENDER");
33018
33073
  var AgentChatView = /* @__PURE__ */ __name(({ agentId }) => {
33019
33074
  const { agents } = useAgentViewState();
33075
+ const { setAgentShellFocused } = useAgentViewActions();
33020
33076
  const agent = agents.get(agentId);
33021
33077
  const interactiveAgent = agent?.interactiveAgent;
33022
33078
  const core = interactiveAgent?.getCore();
33023
33079
  if (!agent || !interactiveAgent || !core) {
33024
33080
  return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(AgentChatMissing, { label: `Agent "${agentId}" not found.` });
33025
33081
  }
33026
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
33027
- AgentChatContent,
33028
- {
33029
- core,
33030
- interactiveAgent,
33031
- instanceKey: agentId,
33032
- modelName: agent.modelName
33033
- }
33082
+ return (
33083
+ // Non-fatal per-tab containment (#9290): the app-level boundary is
33084
+ // FATAL — a render error that reaches it logs [FATAL_RENDER_ERROR]
33085
+ // and exits the whole session. An errored or incomplete teammate
33086
+ // whose transcript throws during render must degrade THIS tab only,
33087
+ // keeping the session and the other tabs alive. Keyed by agentId so
33088
+ // switching tabs starts from fresh boundary state: one crashed tab
33089
+ // must not strand every later tab in its fallback.
33090
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
33091
+ ErrorBoundary,
33092
+ {
33093
+ fallback: (error) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(Box_default, { flexDirection: "column", paddingX: 1, children: [
33094
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Text, { color: theme.status.error, bold: true, children: "Something went wrong while rendering this agent tab." }),
33095
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Text, { color: theme.text.secondary, children: sanitizeTerminalText(error.message) }),
33096
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Text, { color: theme.text.secondary, dimColor: true, children: "The session is still running; other tabs are unaffected." }),
33097
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Text, { color: theme.text.secondary, dimColor: true, children: "Switch to another tab and back to retry rendering this tab." }),
33098
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Text, { color: theme.text.secondary, dimColor: true, children: "Set QWEN_DEBUG_LOG_FILE=1 and reproduce for a full log." })
33099
+ ] }),
33100
+ onError: (error, info) => {
33101
+ setAgentShellFocused(false);
33102
+ debugLogger31.error(
33103
+ `[AGENT_TAB_RENDER_ERROR] agentId=${agentId} ${error.message}
33104
+ ${info.componentStack ?? ""}
33105
+ ${error.stack ?? ""}`
33106
+ );
33107
+ },
33108
+ children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
33109
+ AgentChatContent,
33110
+ {
33111
+ core,
33112
+ interactiveAgent,
33113
+ instanceKey: agentId,
33114
+ modelName: agent.modelName
33115
+ }
33116
+ )
33117
+ },
33118
+ agentId
33119
+ )
33034
33120
  );
33035
33121
  }, "AgentChatView");
33036
33122
 
@@ -33857,7 +33943,7 @@ function installTerminalRedrawOptimizer(stdout) {
33857
33943
  __name(installTerminalRedrawOptimizer, "installTerminalRedrawOptimizer");
33858
33944
 
33859
33945
  // packages/cli/src/ui/utils/terminal-resize-reflow.ts
33860
- var debugLogger31 = createDebugLogger("RESIZE_REFLOW");
33946
+ var debugLogger32 = createDebugLogger("RESIZE_REFLOW");
33861
33947
  var CLEAR_VIEWPORT = base_exports.clearViewport;
33862
33948
  var ESC2 = "\x1B[";
33863
33949
  var CLEAR_TERMINAL = base_exports.clearTerminal;
@@ -33935,7 +34021,7 @@ function installTerminalResizeReflow(stdout, options = {}) {
33935
34021
  let barePrintableCount = 0;
33936
34022
  let handoffUntil = 0;
33937
34023
  let clearUntil = 0;
33938
- debugLogger31.debug("installed", { width: lastWidth, isVP });
34024
+ debugLogger32.debug("installed", { width: lastWidth, isVP });
33939
34025
  const modelFrame = /* @__PURE__ */ __name((content, bypassMin = false) => {
33940
34026
  if (!bypassMin && content.split("\n").length < MIN_FRAME_LINES) return;
33941
34027
  model.content = content;
@@ -33944,7 +34030,7 @@ function installTerminalResizeReflow(stdout, options = {}) {
33944
34030
  }, "modelFrame");
33945
34031
  const onResize = /* @__PURE__ */ __name(() => {
33946
34032
  const width = stdout.columns ?? lastWidth;
33947
- debugLogger31.debug("resize-event", {
34033
+ debugLogger32.debug("resize-event", {
33948
34034
  width,
33949
34035
  lastWidth,
33950
34036
  modeled: model.content.length > 0
@@ -33955,7 +34041,7 @@ function installTerminalResizeReflow(stdout, options = {}) {
33955
34041
  } else {
33956
34042
  pendingAmplify = reflowModel(model, width);
33957
34043
  }
33958
- debugLogger31.debug("shrink", {
34044
+ debugLogger32.debug("shrink", {
33959
34045
  from: lastWidth,
33960
34046
  to: width,
33961
34047
  pendingAmplify,
@@ -33983,9 +34069,9 @@ function installTerminalResizeReflow(stdout, options = {}) {
33983
34069
  barePrintableCount = 0;
33984
34070
  handoffUntil = Date.now() + HANDOFF_WINDOW_MS;
33985
34071
  }
33986
- debugLogger31.debug("match", { printable });
34072
+ debugLogger32.debug("match", { printable });
33987
34073
  if (isVP && Date.now() < clearUntil) {
33988
- debugLogger31.debug("clear-viewport");
34074
+ debugLogger32.debug("clear-viewport");
33989
34075
  chunk = chunk.slice(0, match.index) + CLEAR_VIEWPORT + chunk.slice(match.index + match[0].length);
33990
34076
  } else if (pendingAmplify > 0) {
33991
34077
  const count = countOccurrences(match[0], ERASE_LINE);
@@ -33997,7 +34083,7 @@ function installTerminalResizeReflow(stdout, options = {}) {
33997
34083
  CURSOR_DOWN_PATTERN,
33998
34084
  (_m, n) => `${ESC2}${Number(n) + delta}B`
33999
34085
  );
34000
- debugLogger31.debug("amplify", { original: count, target });
34086
+ debugLogger32.debug("amplify", { original: count, target });
34001
34087
  chunk = prefix + base_exports.eraseLines(target) + chunk.slice(match.index + match[0].length);
34002
34088
  }
34003
34089
  }
@@ -34050,7 +34136,7 @@ var import_react117 = __toESM(require_react(), 1);
34050
34136
  import process12 from "node:process";
34051
34137
  import os4 from "node:os";
34052
34138
  import v8 from "v8";
34053
- var debugLogger32 = createDebugLogger("MEMORY_MONITOR");
34139
+ var debugLogger33 = createDebugLogger("MEMORY_MONITOR");
34054
34140
  var MEMORY_WARNING_THRESHOLD = Math.min(
34055
34141
  7 * 1024 * 1024 * 1024,
34056
34142
  Math.floor(os4.totalmem() * 0.85)
@@ -34072,23 +34158,23 @@ var useMemoryMonitor = /* @__PURE__ */ __name(({
34072
34158
  const rss = memUsage.rss / 1024 / 1024;
34073
34159
  const external = memUsage.external / 1024 / 1024;
34074
34160
  const arrayBuffers = memUsage.arrayBuffers / 1024 / 1024;
34075
- if (debugLogger32.isEnabled()) {
34076
- debugLogger32.debug(
34161
+ if (debugLogger33.isEnabled()) {
34162
+ debugLogger33.debug(
34077
34163
  `[MEMORY_USAGE] heapUsed=${heapUsed.toFixed(1)}MB, heapTotal=${heapTotal.toFixed(1)}MB, rss=${rss.toFixed(1)}MB, external=${external.toFixed(1)}MB, arrayBuffers=${arrayBuffers.toFixed(1)}MB, heapUtilization=${(heapUsed / heapTotal * 100).toFixed(1)}%`
34078
34164
  );
34079
34165
  }
34080
34166
  const now = Date.now();
34081
34167
  if (compactOldItems && memUsage.heapUsed > MEMORY_UI_COMPACT_THRESHOLD() && now - lastCompactRef.current > UI_COMPACT_COOLDOWN_MS) {
34082
34168
  lastCompactRef.current = now;
34083
- if (debugLogger32.isEnabled()) {
34084
- debugLogger32.debug(
34169
+ if (debugLogger33.isEnabled()) {
34170
+ debugLogger33.debug(
34085
34171
  `[UI_COMPACT] heapUsed=${heapUsed.toFixed(1)}MB exceeds ${(MEMORY_UI_COMPACT_THRESHOLD() / 1024 / 1024).toFixed(0)}MB threshold, compacting UI history`
34086
34172
  );
34087
34173
  }
34088
34174
  try {
34089
34175
  compactOldItems();
34090
34176
  } catch (err) {
34091
- debugLogger32.error(
34177
+ debugLogger33.error(
34092
34178
  `[UI_COMPACT] compactOldItems failed: ${err instanceof Error ? err.message : String(err)}`
34093
34179
  );
34094
34180
  }
@@ -34097,7 +34183,7 @@ var useMemoryMonitor = /* @__PURE__ */ __name(({
34097
34183
  const warningIntervalId = setInterval(() => {
34098
34184
  const usage = process12.memoryUsage();
34099
34185
  if (usage.rss > MEMORY_WARNING_THRESHOLD) {
34100
- debugLogger32.warn(
34186
+ debugLogger33.warn(
34101
34187
  `[MEMORY_WARNING] High memory usage detected: ${(usage.rss / (1024 * 1024 * 1024)).toFixed(2)} GB`
34102
34188
  );
34103
34189
  addItem(
@@ -34250,7 +34336,7 @@ var FEEDBACK_SHOW_PROBABILITY = 0.25;
34250
34336
  var MIN_TOOL_CALLS = 10;
34251
34337
  var MIN_USER_MESSAGES = 5;
34252
34338
  var FEEDBACK_COOLDOWN_HOURS = 24;
34253
- var debugLogger33 = createDebugLogger("FEEDBACK_DIALOG");
34339
+ var debugLogger34 = createDebugLogger("FEEDBACK_DIALOG");
34254
34340
  var lastMessageIsAIResponse = /* @__PURE__ */ __name((history) => history.length > 0 && history[history.length - 1].type === "gemini" /* GEMINI */, "lastMessageIsAIResponse");
34255
34341
  var getFeedbackLastShownTimestampFromFile = /* @__PURE__ */ __name(() => {
34256
34342
  try {
@@ -34262,7 +34348,7 @@ var getFeedbackLastShownTimestampFromFile = /* @__PURE__ */ __name(() => {
34262
34348
  }
34263
34349
  } catch (error) {
34264
34350
  if (isNodeError(error) && error.code !== "ENOENT") {
34265
- debugLogger33.warn(
34351
+ debugLogger34.warn(
34266
34352
  "Failed to read feedbackLastShownTimestamp from settings file:",
34267
34353
  error
34268
34354
  );
@@ -34770,12 +34856,14 @@ function useResumeCommand(options) {
34770
34856
  config,
34771
34857
  settings,
34772
34858
  historyManager,
34859
+ loadHistory: loadHistoryOverride,
34773
34860
  startNewSession,
34774
34861
  clearPendingState,
34775
34862
  setSessionName,
34776
34863
  remount
34777
34864
  } = options;
34778
- const { addItem, clearItems, loadHistory } = historyManager;
34865
+ const { addItem, clearItems } = historyManager;
34866
+ const loadHistory = loadHistoryOverride ?? historyManager.loadHistory;
34779
34867
  const handleResume = (0, import_react127.useCallback)(
34780
34868
  async (sessionId) => {
34781
34869
  if (!config) {
@@ -35111,7 +35199,7 @@ __name(useDeleteCommand, "useDeleteCommand");
35111
35199
  init_esbuild_shims();
35112
35200
  var import_react129 = __toESM(require_react(), 1);
35113
35201
  import process15 from "node:process";
35114
- var debugLogger34 = createDebugLogger("SLASH_COMMAND_PROCESSOR");
35202
+ var debugLogger35 = createDebugLogger("SLASH_COMMAND_PROCESSOR");
35115
35203
  function hasUserPromptExpansionHooks(config) {
35116
35204
  return !!config && !config.getDisableAllHooks?.() && (config.hasHooksForEvent?.("UserPromptExpansion") ?? false);
35117
35205
  }
@@ -35124,18 +35212,6 @@ function serializeHistoryItemForRecording(item) {
35124
35212
  return clone;
35125
35213
  }
35126
35214
  __name(serializeHistoryItemForRecording, "serializeHistoryItemForRecording");
35127
- var SLASH_COMMANDS_SKIP_RECORDING = /* @__PURE__ */ new Set([
35128
- "quit",
35129
- "exit",
35130
- "clear",
35131
- "reset",
35132
- "new",
35133
- "resume",
35134
- "delete",
35135
- "branch",
35136
- "btw",
35137
- "history"
35138
- ]);
35139
35215
  var SLASH_COMMAND_ROOTS_HIDE_INVOCATION = /* @__PURE__ */ new Set([
35140
35216
  "auth",
35141
35217
  "diff",
@@ -35694,7 +35770,7 @@ var useSlashCommandProcessor = /* @__PURE__ */ __name((config, settings, history
35694
35770
  }
35695
35771
  setCommands(commandService.getCommandsForMode("interactive"));
35696
35772
  } catch (error) {
35697
- debugLogger34.error("Failed to load slash commands:", error);
35773
+ debugLogger35.error("Failed to load slash commands:", error);
35698
35774
  } finally {
35699
35775
  if (!controller.signal.aborted) {
35700
35776
  resolveCommandReloads(reloadTrigger);
@@ -36126,7 +36202,7 @@ var useSlashCommandProcessor = /* @__PURE__ */ __name((config, settings, history
36126
36202
  }
36127
36203
  invocationSentToModel = true;
36128
36204
  if (invocationItemId !== void 0) {
36129
- debugLogger34.debug(
36205
+ debugLogger35.debug(
36130
36206
  `Marked slash command invocation as model-sent: /${resolvedCommandPath.join(
36131
36207
  " "
36132
36208
  )}`
@@ -36258,7 +36334,8 @@ ${commandToExecute.subCommands.map((sc) => ` - ${sc.name}: ${sc.description ||
36258
36334
  if (config?.getChatRecordingService) {
36259
36335
  const chatRecorder = config.getChatRecordingService();
36260
36336
  const primaryCommand = resolvedCommandPath[0] || trimmed.replace(/^[/?]/, "").split(/\s+/u)[0] || trimmed;
36261
- const shouldRecord = !delegatedToRecursiveInvocation && !SLASH_COMMANDS_SKIP_RECORDING.has(primaryCommand);
36337
+ const isBuiltInAdvisor = primaryCommand === "advisor" && commandToExecute?.kind === "built-in" /* BUILT_IN */;
36338
+ const shouldRecord = !delegatedToRecursiveInvocation && !isBuiltInAdvisor && !SLASH_COMMANDS_SKIP_RECORDING.has(primaryCommand);
36262
36339
  try {
36263
36340
  if (shouldRecord) {
36264
36341
  chatRecorder?.recordSlashCommand({
@@ -36275,7 +36352,7 @@ ${commandToExecute.subCommands.map((sc) => ` - ${sc.name}: ${sc.description ||
36275
36352
  });
36276
36353
  }
36277
36354
  } catch (recordError) {
36278
- debugLogger34.error(
36355
+ debugLogger35.error(
36279
36356
  "[slashCommand] Failed to record slash command:",
36280
36357
  recordError
36281
36358
  );
@@ -36452,7 +36529,7 @@ import os5 from "node:os";
36452
36529
  import fs16 from "node:fs";
36453
36530
  var OUTPUT_UPDATE_INTERVAL_MS = 1e3;
36454
36531
  var MAX_OUTPUT_LENGTH = 1e4;
36455
- var debugLogger35 = createDebugLogger("SHELL_COMMAND_PROCESSOR");
36532
+ var debugLogger36 = createDebugLogger("SHELL_COMMAND_PROCESSOR");
36456
36533
  function copyString(value) {
36457
36534
  return value.split("").join("");
36458
36535
  }
@@ -36603,7 +36680,7 @@ var useShellCommandProcessor = /* @__PURE__ */ __name((addItemToHistory, setPend
36603
36680
  config.getShouldUseNodePtyShell(),
36604
36681
  shellExecutionConfig
36605
36682
  );
36606
- debugLogger35.debug(terminalHeight, terminalWidth);
36683
+ debugLogger36.debug(terminalHeight, terminalWidth);
36607
36684
  executionPid = pid;
36608
36685
  if (pid) {
36609
36686
  setActiveShellPtyId(pid);
@@ -36757,7 +36834,7 @@ var useStateAndRef = /* @__PURE__ */ __name((initialValue) => {
36757
36834
  init_esbuild_shims();
36758
36835
  var import_react134 = __toESM(require_react(), 1);
36759
36836
  import * as path11 from "node:path";
36760
- var debugLogger36 = createDebugLogger("REACT_TOOL_SCHEDULER");
36837
+ var debugLogger37 = createDebugLogger("REACT_TOOL_SCHEDULER");
36761
36838
  function useReactToolScheduler(onComplete, config, getPreferredEditor, onEditorClose, onToolResultFullTurnModel) {
36762
36839
  const [toolCallsForDisplay, setToolCallsForDisplay] = (0, import_react134.useState)([]);
36763
36840
  const outputUpdateHandler = (0, import_react134.useCallback)(
@@ -36836,7 +36913,7 @@ function useReactToolScheduler(onComplete, config, getPreferredEditor, onEditorC
36836
36913
  if (!modelOverride?.endsWith("\0")) {
36837
36914
  void scheduler.schedule(request, signal).catch((error) => {
36838
36915
  if (signal.aborted) return;
36839
- debugLogger36.error(
36916
+ debugLogger37.error(
36840
36917
  `Tool scheduling failed: ${error instanceof Error ? error.message : String(error)}`
36841
36918
  );
36842
36919
  });
@@ -36849,7 +36926,7 @@ function useReactToolScheduler(onComplete, config, getPreferredEditor, onEditorC
36849
36926
  });
36850
36927
  await scheduler.schedule(request, signal, runtimeView);
36851
36928
  } catch (error) {
36852
- debugLogger36.error(
36929
+ debugLogger37.error(
36853
36930
  `Full-turn tool scheduling failed: ${error instanceof Error ? error.message : String(error)}`
36854
36931
  );
36855
36932
  const message = "Full-turn tool scheduling failed. The tool was not executed.";
@@ -36917,7 +36994,7 @@ function mapCoreStatusToDisplayStatus(coreStatus) {
36917
36994
  return "Pending" /* Pending */;
36918
36995
  default: {
36919
36996
  const exhaustiveCheck = coreStatus;
36920
- debugLogger36.warn(`Unknown core status encountered: ${exhaustiveCheck}`);
36997
+ debugLogger37.warn(`Unknown core status encountered: ${exhaustiveCheck}`);
36921
36998
  return "Error" /* Error */;
36922
36999
  }
36923
37000
  }
@@ -37265,11 +37342,11 @@ function useMessageQueue() {
37265
37342
  __name(useMessageQueue, "useMessageQueue");
37266
37343
 
37267
37344
  // packages/cli/src/ui/hooks/useGeminiStream.ts
37268
- var debugLogger37 = createDebugLogger("GEMINI_STREAM");
37345
+ var debugLogger38 = createDebugLogger("GEMINI_STREAM");
37269
37346
  function applyModelOverride(modelOverrideRef, inlineActiveRef, value, isInline) {
37270
37347
  modelOverrideRef.current = value;
37271
37348
  inlineActiveRef.current = isInline;
37272
- debugLogger37.debug(
37349
+ debugLogger38.debug(
37273
37350
  `model override ${value === void 0 ? "cleared" : `set to ${value}`} (inline=${isInline})`
37274
37351
  );
37275
37352
  }
@@ -37478,20 +37555,20 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
37478
37555
  expectedRevision: binding.permit.revision
37479
37556
  });
37480
37557
  } catch (error) {
37481
- debugLogger37.warn("Failed to pause invalid Goal tool batch", error);
37558
+ debugLogger38.warn("Failed to pause invalid Goal tool batch", error);
37482
37559
  }
37483
37560
  }
37484
37561
  try {
37485
37562
  await config.getChatRecordingService()?.flush();
37486
37563
  } catch (error) {
37487
- debugLogger37.warn("Failed to flush invalid Goal tool batch", error);
37564
+ debugLogger38.warn("Failed to flush invalid Goal tool batch", error);
37488
37565
  }
37489
37566
  const currentPermit = runtime.permitForTurn(binding.turnKey);
37490
37567
  if (currentPermit && sameGoalPermit(currentPermit, binding.permit)) {
37491
37568
  await runtime.finishTurn(binding.permit);
37492
37569
  }
37493
37570
  } catch (error) {
37494
- debugLogger37.warn("Failed to close invalid Goal tool batch", error);
37571
+ debugLogger38.warn("Failed to close invalid Goal tool batch", error);
37495
37572
  } finally {
37496
37573
  releaseGoalTurn(binding);
37497
37574
  }
@@ -37505,7 +37582,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
37505
37582
  const runtime = await config.getGoalRuntimeReady();
37506
37583
  await runtime.releaseTurn(turnKey);
37507
37584
  } catch (error) {
37508
- debugLogger37.warn(
37585
+ debugLogger38.warn(
37509
37586
  `Failed to release undelivered Goal turn ${turnKey}`,
37510
37587
  error
37511
37588
  );
@@ -37653,7 +37730,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
37653
37730
  const current = modelOverrideRef.current;
37654
37731
  return !inlineModelOverrideActiveRef.current && (!current?.endsWith("\0") || current === model);
37655
37732
  }, []);
37656
- const handledProviderToolCallIdsRef = (0, import_react136.useRef)(/* @__PURE__ */ new Set());
37733
+ const handledToolCallFingerprintsRef = (0, import_react136.useRef)(/* @__PURE__ */ new Map());
37657
37734
  const duplicateProviderToolCallResponseIdsRef = (0, import_react136.useRef)(
37658
37735
  /* @__PURE__ */ new Set()
37659
37736
  );
@@ -37679,22 +37756,48 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
37679
37756
  stats: sessionStates
37680
37757
  } = useSessionStats();
37681
37758
  const storage = config.storage;
37759
+ const toolBatchIdByCallIdRef = (0, import_react136.useRef)(/* @__PURE__ */ new Map());
37760
+ const toolBatchCounterRef = (0, import_react136.useRef)(0);
37761
+ const toolBatchNonceRef = (0, import_react136.useRef)(Math.random().toString(36).slice(2));
37762
+ const registerToolBatch = (0, import_react136.useCallback)(
37763
+ (requests) => {
37764
+ const batchNumber = ++toolBatchCounterRef.current;
37765
+ const batchId = `tool-batch-${toolBatchNonceRef.current}-${batchNumber}`;
37766
+ for (const request of Array.isArray(requests) ? requests : [requests]) {
37767
+ toolBatchIdByCallIdRef.current.set(request.callId, batchId);
37768
+ }
37769
+ },
37770
+ []
37771
+ );
37772
+ const getToolBatchId = (0, import_react136.useCallback)(
37773
+ (callId) => toolBatchIdByCallIdRef.current.get(callId),
37774
+ []
37775
+ );
37682
37776
  const [toolCalls, scheduleToolCalls, markToolsAsSubmitted] = useReactToolScheduler(
37683
37777
  async (completedToolCallsFromScheduler) => {
37684
37778
  if (completedToolCallsFromScheduler.length > 0) {
37685
37779
  const releaseToolCompletionActivity = isSubmittingQueryRef.current ? retainSubmissionActivity(submissionLeaseGenerationRef.current) : void 0;
37780
+ const batchId = getToolBatchId(
37781
+ completedToolCallsFromScheduler[0].request.callId
37782
+ );
37686
37783
  try {
37687
37784
  const projectRoot = config.getProjectRoot();
37688
37785
  const toolGroupDisplay = mapToDisplay(
37689
37786
  completedToolCallsFromScheduler,
37690
37787
  projectRoot
37691
37788
  );
37789
+ toolGroupDisplay.batchId = batchId;
37692
37790
  addItem(toolGroupDisplay, Date.now());
37693
37791
  await handleCompletedTools(
37694
37792
  completedToolCallsFromScheduler
37695
37793
  );
37696
37794
  } finally {
37697
37795
  releaseToolCompletionActivity?.();
37796
+ for (const tc of completedToolCallsFromScheduler) {
37797
+ if (toolBatchIdByCallIdRef.current.get(tc.request.callId) === batchId) {
37798
+ toolBatchIdByCallIdRef.current.delete(tc.request.callId);
37799
+ }
37800
+ }
37698
37801
  }
37699
37802
  }
37700
37803
  },
@@ -37703,10 +37806,15 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
37703
37806
  onEditorClose,
37704
37807
  canUseToolResultFullTurnModel
37705
37808
  );
37706
- const pendingToolCallGroupDisplay = (0, import_react136.useMemo)(
37707
- () => toolCalls.length ? mapToDisplay(toolCalls, config.getProjectRoot()) : void 0,
37708
- [toolCalls, config]
37709
- );
37809
+ const pendingToolCallGroupDisplay = (0, import_react136.useMemo)(() => {
37810
+ if (!toolCalls.length) return void 0;
37811
+ const group = mapToDisplay(
37812
+ toolCalls,
37813
+ config.getProjectRoot()
37814
+ );
37815
+ group.batchId = getToolBatchId(toolCalls[0].request.callId);
37816
+ return group;
37817
+ }, [toolCalls, config, getToolBatchId]);
37710
37818
  const activeToolPtyId = (0, import_react136.useMemo)(() => {
37711
37819
  const executingShellTool = toolCalls?.find(
37712
37820
  (tc) => tc.status === "executing" && tc.request.name === "run_shell_command"
@@ -37944,7 +38052,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
37944
38052
  if (signal.aborted) {
37945
38053
  return { parts: null, shouldProceed: false };
37946
38054
  }
37947
- debugLogger37.debug("vision bridge: gate matched, running conversion");
38055
+ debugLogger38.debug("vision bridge: gate matched, running conversion");
37948
38056
  const fullTurnModel = config.getDefaultVisionBridgeModel();
37949
38057
  if (fullTurnModel?.agentCapable) {
37950
38058
  const fullTurnParts = (Array.isArray(parts) ? parts : [parts]).map(
@@ -37969,7 +38077,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
37969
38077
  return { parts: fullTurnParts, shouldProceed: true };
37970
38078
  }
37971
38079
  const bridgeResult = await runVisionBridge({ config, parts, signal });
37972
- debugLogger37.debug(
38080
+ debugLogger38.debug(
37973
38081
  `vision bridge: status=${bridgeResult.status} applied=${bridgeResult.applied} model=${bridgeResult.modelId ?? "(none)"}`
37974
38082
  );
37975
38083
  if (bridgeResult.status !== "skipped" || bridgeResult.egressOccurred) {
@@ -38033,6 +38141,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
38033
38141
  isClientInitiated: true,
38034
38142
  prompt_id
38035
38143
  };
38144
+ registerToolBatch(toolCallRequest);
38036
38145
  scheduleToolCalls([toolCallRequest], abortSignal);
38037
38146
  return {
38038
38147
  queryToSend: null,
@@ -38058,7 +38167,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
38058
38167
  true
38059
38168
  );
38060
38169
  } else {
38061
- debugLogger37.warn(
38170
+ debugLogger38.warn(
38062
38171
  `ignoring model override '${slashCommandResult.modelOverride}': not a model on the active provider`
38063
38172
  );
38064
38173
  }
@@ -38152,6 +38261,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
38152
38261
  handleSlashCommand,
38153
38262
  logger,
38154
38263
  shellModeActive,
38264
+ registerToolBatch,
38155
38265
  scheduleToolCalls,
38156
38266
  applyVisionBridgeIfNeeded
38157
38267
  ]
@@ -38295,8 +38405,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
38295
38405
  setThought((prev) => {
38296
38406
  const incomingDescription = incoming.description ? clampLoadingThoughtDescription(incoming.description) : incoming.description;
38297
38407
  if (!prev) {
38298
- if (debugLogger37.isEnabled()) {
38299
- debugLogger37.debug(
38408
+ if (debugLogger38.isEnabled()) {
38409
+ debugLogger38.debug(
38300
38410
  `[THOUGHT_MERGE] New thought: subjectLength=${incoming.subject?.length ?? 0}, description length=${incomingDescription?.length ?? 0}`
38301
38411
  );
38302
38412
  }
@@ -38309,8 +38419,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
38309
38419
  const description = clampLoadingThoughtDescription(
38310
38420
  `${prev.description ?? ""}${incomingDescription ?? ""}`
38311
38421
  );
38312
- if (debugLogger37.isEnabled()) {
38313
- debugLogger37.debug(
38422
+ if (debugLogger38.isEnabled()) {
38423
+ debugLogger38.debug(
38314
38424
  `[THOUGHT_MERGE] Accumulating thought: prev length=${prev.description?.length ?? 0}, incoming length=${incomingDescription?.length ?? 0}, total length=${description.length}`
38315
38425
  );
38316
38426
  }
@@ -38471,7 +38581,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
38471
38581
  eventValue.error.message,
38472
38582
  formattedErrorText
38473
38583
  ).catch((err) => {
38474
- debugLogger37.warn(`StopFailure hook failed: ${err}`);
38584
+ debugLogger38.warn(`StopFailure hook failed: ${err}`);
38475
38585
  });
38476
38586
  },
38477
38587
  [
@@ -39065,19 +39175,34 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39065
39175
  const executableToolCallRequests = [];
39066
39176
  const duplicateResponses = [];
39067
39177
  let duplicatePromptId;
39068
- const historyCallIdsWithResponse = geminiClient ? geminiClient.getHistoryFunctionResponseIds() : /* @__PURE__ */ new Set();
39069
- const handledProviderIds = /* @__PURE__ */ new Set([
39070
- ...handledProviderToolCallIdsRef.current,
39071
- ...historyCallIdsWithResponse
39072
- ]);
39178
+ const handledToolCallFingerprints = new Map(
39179
+ geminiClient ? geminiClient.getHistoryToolCallFingerprints() : []
39180
+ );
39181
+ for (const [
39182
+ providerCallId,
39183
+ fingerprint
39184
+ ] of handledToolCallFingerprintsRef.current) {
39185
+ if (!handledToolCallFingerprints.has(providerCallId)) {
39186
+ handledToolCallFingerprints.set(providerCallId, fingerprint);
39187
+ }
39188
+ }
39189
+ const isReplayOfHandledRequest = /* @__PURE__ */ __name((request) => request.providerCallId ? isReplayOfHandledToolCall(
39190
+ handledToolCallFingerprints,
39191
+ request.providerCallId,
39192
+ getCachedToolCallFingerprint(
39193
+ request,
39194
+ request.name,
39195
+ request.args
39196
+ )
39197
+ ) : false, "isReplayOfHandledRequest");
39073
39198
  const repeatedDuplicateRequest = findRepeatedDuplicateProviderToolCall(
39074
39199
  toolCallRequests,
39075
39200
  (request) => request.providerCallId,
39076
- handledProviderIds,
39201
+ isReplayOfHandledRequest,
39077
39202
  duplicateProviderToolCallResponseIdsRef.current
39078
39203
  );
39079
39204
  if (repeatedDuplicateRequest?.providerCallId) {
39080
- debugLogger37.debug(
39205
+ debugLogger38.debug(
39081
39206
  `[processGeminiStreamEvents] Dropping batch after repeated duplicate provider tool-call id: ${repeatedDuplicateRequest.providerCallId} (tool: ${repeatedDuplicateRequest.name})`
39082
39207
  );
39083
39208
  loopDetectedRef.current = true;
@@ -39092,13 +39217,13 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39092
39217
  executableToolCallRequests.push(request);
39093
39218
  continue;
39094
39219
  }
39095
- if (handledProviderToolCallIdsRef.current.has(providerCallId) || historyCallIdsWithResponse.has(providerCallId)) {
39220
+ if (isReplayOfHandledRequest(request)) {
39096
39221
  markDuplicateProviderToolCallResponseSent(
39097
39222
  providerCallId,
39098
39223
  duplicateProviderToolCallResponseIdsRef.current
39099
39224
  );
39100
39225
  const response = createDuplicateProviderToolCallResponse(request);
39101
- debugLogger37.debug(
39226
+ debugLogger38.debug(
39102
39227
  `[processGeminiStreamEvents] Suppressing duplicate provider tool-call id: ${providerCallId} (tool: ${request.name})`
39103
39228
  );
39104
39229
  dualOutput?.emitToolResult(request, response);
@@ -39106,7 +39231,21 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39106
39231
  duplicatePromptId ??= request.prompt_id;
39107
39232
  continue;
39108
39233
  }
39109
- handledProviderToolCallIdsRef.current.add(providerCallId);
39234
+ const requestFingerprint = getCachedToolCallFingerprint(
39235
+ request,
39236
+ request.name,
39237
+ request.args
39238
+ );
39239
+ recordHandledToolCall(
39240
+ handledToolCallFingerprints,
39241
+ providerCallId,
39242
+ requestFingerprint
39243
+ );
39244
+ recordHandledToolCall(
39245
+ handledToolCallFingerprintsRef.current,
39246
+ providerCallId,
39247
+ requestFingerprint
39248
+ );
39110
39249
  executableToolCallRequests.push(request);
39111
39250
  }
39112
39251
  if (duplicateResponses.length > 0) {
@@ -39144,6 +39283,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39144
39283
  }
39145
39284
  }
39146
39285
  scheduledToolContinuation = true;
39286
+ registerToolBatch(executableToolCallRequests);
39147
39287
  scheduleToolCalls(
39148
39288
  executableToolCallRequests,
39149
39289
  signal,
@@ -39161,6 +39301,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39161
39301
  handleThoughtEvent,
39162
39302
  handleUserCancelledEvent,
39163
39303
  handleErrorEvent,
39304
+ registerToolBatch,
39164
39305
  scheduleToolCalls,
39165
39306
  geminiClient,
39166
39307
  handleChatCompressionEvent,
@@ -39436,7 +39577,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39436
39577
  lastTurnUserItemRef.current = null;
39437
39578
  canUndoLastLoggedUserMessageRef.current = false;
39438
39579
  turnSawContentEventRef.current = false;
39439
- handledProviderToolCallIdsRef.current.clear();
39580
+ handledToolCallFingerprintsRef.current.clear();
39440
39581
  duplicateProviderToolCallResponseIdsRef.current.clear();
39441
39582
  pendingDuplicateToolResponsesRef.current = [];
39442
39583
  immediateDuplicateToolResponsesRef.current = null;
@@ -39738,8 +39879,17 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39738
39879
  callId: request.callId,
39739
39880
  toolName: request.name,
39740
39881
  responseParts: response.responseParts,
39741
- persistedOutputFiles: response.persistedOutputFiles
39882
+ persistedOutputFiles: response.persistedOutputFiles,
39883
+ artifacts: response.artifacts
39742
39884
  })
39885
+ ),
39886
+ new Map(
39887
+ immediateDuplicateToolResponses.responses.flatMap(
39888
+ ({ request }) => {
39889
+ const promptId = request.prompt_id ?? immediateDuplicateToolResponses.promptId;
39890
+ return promptId ? [[request.callId, promptId]] : [];
39891
+ }
39892
+ )
39743
39893
  )
39744
39894
  );
39745
39895
  const responseParts = finalized.flatMap(
@@ -39754,6 +39904,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39754
39904
  callId: request.callId,
39755
39905
  status: response.error ? "error" : "success",
39756
39906
  resultDisplay: response.resultDisplay,
39907
+ persistedOutputFiles: finalized[index].persistedOutputFiles,
39908
+ artifacts: finalized[index].artifacts,
39757
39909
  error: response.error,
39758
39910
  errorType: response.errorType,
39759
39911
  executionStatus: response.executionStatus
@@ -39795,7 +39947,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39795
39947
  if (onComplete) {
39796
39948
  submitPromptOnCompleteRef.current = null;
39797
39949
  void onComplete().catch((err) => {
39798
- debugLogger37.error("onComplete callback failed:", err);
39950
+ debugLogger38.error("onComplete callback failed:", err);
39799
39951
  });
39800
39952
  }
39801
39953
  if (geminiClient) {
@@ -39982,7 +40134,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
39982
40134
  "proceed_once" /* ProceedOnce */
39983
40135
  );
39984
40136
  } catch (error) {
39985
- debugLogger37.error(
40137
+ debugLogger38.error(
39986
40138
  `Failed to auto-approve tool call ${call.request.callId}:`,
39987
40139
  error
39988
40140
  );
@@ -40011,7 +40163,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
40011
40163
  );
40012
40164
  const dedupedCallIds = dedupedTools.map((tc) => tc.request.callId);
40013
40165
  if (dedupedCallIds.length > 0) {
40014
- debugLogger37.warn(
40166
+ debugLogger38.warn(
40015
40167
  `[REPAIR] Dropping ${dedupedCallIds.length} late tool result(s) whose callId already has a functionResponse in history: ${dedupedCallIds.join(", ")}`
40016
40168
  );
40017
40169
  for (const tc of dedupedTools) {
@@ -40289,11 +40441,11 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
40289
40441
  memoryWriteCandidates,
40290
40442
  config.getProjectRoot()
40291
40443
  );
40292
- debugLogger37.debug(
40444
+ debugLogger38.debug(
40293
40445
  `Checked marked context-file memory tool batch; matched=${matchedContextFileWrite}`
40294
40446
  );
40295
40447
  if (matchedContextFileWrite) {
40296
- debugLogger37.debug(
40448
+ debugLogger38.debug(
40297
40449
  "Refreshing memory after context-file memory write"
40298
40450
  );
40299
40451
  await refreshMemoryInstruction(config, {
@@ -40304,7 +40456,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
40304
40456
  if (newSuccessfulMemorySaves.length > 0) {
40305
40457
  if (!didRefreshManagedMemory) {
40306
40458
  void performMemoryRefresh().catch((err) => {
40307
- debugLogger37.warn(`save_memory refresh failed: ${err}`);
40459
+ debugLogger38.warn(`save_memory refresh failed: ${err}`);
40308
40460
  });
40309
40461
  }
40310
40462
  newSuccessfulMemorySaves.forEach(
@@ -40413,8 +40565,14 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
40413
40565
  callId: request.callId,
40414
40566
  toolName: request.name,
40415
40567
  responseParts: response.responseParts,
40416
- persistedOutputFiles: response.persistedOutputFiles
40417
- }))
40568
+ persistedOutputFiles: response.persistedOutputFiles,
40569
+ artifacts: response.artifacts
40570
+ })),
40571
+ new Map(
40572
+ orderedResponses.flatMap(
40573
+ ({ request }) => request.prompt_id ? [[request.callId, request.prompt_id]] : []
40574
+ )
40575
+ )
40418
40576
  );
40419
40577
  const responsesToSend = finalizedResponses.flatMap(
40420
40578
  (entry) => entry.responseParts
@@ -40427,6 +40585,8 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
40427
40585
  callId: request.callId,
40428
40586
  status,
40429
40587
  resultDisplay: response.resultDisplay,
40588
+ persistedOutputFiles: finalizedResponses[index].persistedOutputFiles,
40589
+ artifacts: finalizedResponses[index].artifacts,
40430
40590
  error: response.error,
40431
40591
  errorType: response.errorType,
40432
40592
  executionStatus: response.executionStatus
@@ -40480,7 +40640,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
40480
40640
  for (const toolCall of geminiTools) {
40481
40641
  if ("modelOverride" in toolCall.response) {
40482
40642
  if (inlineModelOverrideActiveRef.current || modelOverrideRef.current?.endsWith("\0")) {
40483
- debugLogger37.debug(
40643
+ debugLogger38.debug(
40484
40644
  `skill-tool model override (${String(
40485
40645
  toolCall.response.modelOverride
40486
40646
  )}) blocked: ${inlineModelOverrideActiveRef.current ? "inline override active" : "full-turn override active"}`
@@ -40853,7 +41013,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
40853
41013
  try {
40854
41014
  await scheduler.enableDurable(cronSessionIdRef.current);
40855
41015
  } catch (err) {
40856
- debugLogger37.warn(
41016
+ debugLogger38.warn(
40857
41017
  `Durable cron init failed \u2014 persistent tasks will not fire in this session: ${err}`
40858
41018
  );
40859
41019
  }
@@ -41004,7 +41164,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
41004
41164
  setNotificationTrigger((n) => n + 1);
41005
41165
  }, "onGoalClaimDeferred")
41006
41166
  }).catch((error) => {
41007
- debugLogger37.warn("Failed to admit cron notification", error);
41167
+ debugLogger38.warn("Failed to admit cron notification", error);
41008
41168
  });
41009
41169
  return;
41010
41170
  }
@@ -41037,7 +41197,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
41037
41197
  setNotificationTrigger((n) => n + 1);
41038
41198
  }, "onGoalClaimDeferred")
41039
41199
  }).catch((error) => {
41040
- debugLogger37.warn("Failed to admit background notification", error);
41200
+ debugLogger38.warn("Failed to admit background notification", error);
41041
41201
  });
41042
41202
  });
41043
41203
  }
@@ -41110,7 +41270,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
41110
41270
  setTeammateTrigger((n) => n + 1);
41111
41271
  }, "onGoalClaimDeferred")
41112
41272
  }).catch((error) => {
41113
- debugLogger37.warn("Failed to admit teammate notification", error);
41273
+ debugLogger38.warn("Failed to admit teammate notification", error);
41114
41274
  });
41115
41275
  });
41116
41276
  }
@@ -41149,7 +41309,7 @@ var DIGIT_MULTIPLIER = 10;
41149
41309
  var DEFAULT_COUNT = 1;
41150
41310
  var MAX_COUNT = 9999;
41151
41311
  var DIGIT_1_TO_9 = /^[1-9]$/;
41152
- var debugLogger38 = createDebugLogger("VIM_MODE");
41312
+ var debugLogger39 = createDebugLogger("VIM_MODE");
41153
41313
  var CMD_TYPES = {
41154
41314
  DELETE_WORD_FORWARD: "dw",
41155
41315
  DELETE_WORD_BACKWARD: "db",
@@ -41292,7 +41452,7 @@ function readClipboard() {
41292
41452
  }
41293
41453
  return "";
41294
41454
  } catch (e) {
41295
- debugLogger38.warn("readClipboard failed:", e);
41455
+ debugLogger39.warn("readClipboard failed:", e);
41296
41456
  return "";
41297
41457
  }
41298
41458
  }
@@ -41338,7 +41498,7 @@ function writeClipboard(text) {
41338
41498
  const [bin, ...args] = linuxWriteCmd;
41339
41499
  const child = execFile7(bin, args, { timeout: 500 }, (err) => {
41340
41500
  if (err && !writeOsc52(text)) {
41341
- debugLogger38.warn(
41501
+ debugLogger39.warn(
41342
41502
  "writeClipboard: cached tool and OSC 52 both failed"
41343
41503
  );
41344
41504
  }
@@ -41347,11 +41507,11 @@ function writeClipboard(text) {
41347
41507
  child.unref();
41348
41508
  } else {
41349
41509
  if (!writeOsc52(text)) {
41350
- debugLogger38.warn("OSC 52 clipboard write failed - no TTY available");
41510
+ debugLogger39.warn("OSC 52 clipboard write failed - no TTY available");
41351
41511
  }
41352
41512
  }
41353
41513
  } catch (e) {
41354
- debugLogger38.warn("writeClipboard failed:", e);
41514
+ debugLogger39.warn("writeClipboard failed:", e);
41355
41515
  }
41356
41516
  }
41357
41517
  __name(writeClipboard, "writeClipboard");
@@ -42066,7 +42226,7 @@ function useVim(buffer, onSubmit) {
42066
42226
  try {
42067
42227
  normalizedKey = normalizeKey(key);
42068
42228
  } catch (error) {
42069
- debugLogger38.warn("Malformed key input in vim mode:", key, error);
42229
+ debugLogger39.warn("Malformed key input in vim mode:", key, error);
42070
42230
  return false;
42071
42231
  }
42072
42232
  const s = stateRef.current;
@@ -43399,7 +43559,7 @@ __name(useCommandMigration, "useCommandMigration");
43399
43559
 
43400
43560
  // packages/cli/src/services/notificationService.ts
43401
43561
  init_esbuild_shims();
43402
- var debugLogger39 = createDebugLogger("NOTIFICATION_SERVICE");
43562
+ var debugLogger40 = createDebugLogger("NOTIFICATION_SERVICE");
43403
43563
  var DEFAULT_TITLE = "Qwen Code";
43404
43564
  function sendNotification(opts, terminal, enabled) {
43405
43565
  if (!enabled) {
@@ -43427,7 +43587,7 @@ function sendNotification(opts, terminal, enabled) {
43427
43587
  return "terminal_bell";
43428
43588
  }
43429
43589
  } catch (error) {
43430
- debugLogger39.warn("Failed to send notification:", error);
43590
+ debugLogger40.warn("Failed to send notification:", error);
43431
43591
  return "error";
43432
43592
  }
43433
43593
  }
@@ -44379,7 +44539,7 @@ var import_jsx_runtime132 = __toESM(require_jsx_runtime(), 1);
44379
44539
  var MCP_BATCH_FLUSH_MS = 16;
44380
44540
  var STARTUP_PROFILE_FINALIZE_CAP_MS = 35e3;
44381
44541
  var CTRL_EXIT_PROMPT_DURATION_MS = 1e3;
44382
- var debugLogger40 = createDebugLogger("APP_CONTAINER");
44542
+ var debugLogger41 = createDebugLogger("APP_CONTAINER");
44383
44543
  function isRenderModeToggleKey(key) {
44384
44544
  return keyMatchers["toggleRenderMode" /* TOGGLE_RENDER_MODE */](key) || key.name === "m" && key.meta && !key.ctrl && !key.paste;
44385
44545
  }
@@ -44531,7 +44691,7 @@ function useQueuedSubmissionDrain({
44531
44691
  }
44532
44692
  );
44533
44693
  void Promise.resolve(request).catch((error) => {
44534
- debugLogger40.warn("Queued submission failed during admission", error);
44694
+ debugLogger41.warn("Queued submission failed during admission", error);
44535
44695
  }).finally(() => {
44536
44696
  queueDrainingRef.current = false;
44537
44697
  if (!admissionFailed) {
@@ -44754,6 +44914,20 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
44754
44914
  const [showWorktreeExitDialog, setShowWorktreeExitDialog] = (0, import_react162.useState)(false);
44755
44915
  const [workflowKeywordActive, setWorkflowKeywordActive] = (0, import_react162.useState)(false);
44756
44916
  const pendingWorktreeNoticeRef = (0, import_react162.useRef)(null);
44917
+ const contextFilesAnnouncedRef = (0, import_react162.useRef)(false);
44918
+ (0, import_react162.useEffect)(() => {
44919
+ contextFilesAnnouncedRef.current = false;
44920
+ }, [sessionStats.sessionId]);
44921
+ const { loadHistory: rawLoadHistory } = historyManager;
44922
+ const loadHistoryWithLatchReconciliation = (0, import_react162.useCallback)(
44923
+ (newHistory) => {
44924
+ rawLoadHistory(newHistory);
44925
+ contextFilesAnnouncedRef.current = newHistory.some(
44926
+ isContextFilesAnnouncement
44927
+ );
44928
+ },
44929
+ [rawLoadHistory]
44930
+ );
44757
44931
  const activeWorktree = (0, import_react162.useMemo)(
44758
44932
  () => worktreeSession ? {
44759
44933
  slug: worktreeSession.slug,
@@ -44773,7 +44947,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
44773
44947
  const staticExtraHeight = 3;
44774
44948
  (0, import_react162.useEffect)(() => {
44775
44949
  void loadLowlight().catch((err) => {
44776
- debugLogger40.warn(
44950
+ debugLogger41.warn(
44777
44951
  `Failed to load lowlight chunk; code blocks will render as plain text: ${err instanceof Error ? err.message : String(err)}`
44778
44952
  );
44779
44953
  });
@@ -44807,7 +44981,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
44807
44981
  collapseOnResume,
44808
44982
  collapsePreviewCount
44809
44983
  );
44810
- historyManager.loadHistory(historyItems);
44984
+ loadHistoryWithLatchReconciliation(historyItems);
44811
44985
  const userTurnCount = resumedSessionData.conversation.messages.filter(
44812
44986
  (m) => m.type === "user" && m.subtype !== "mid_turn_user_message" && m.subtype !== "realtime_message"
44813
44987
  ).length;
@@ -44855,9 +45029,9 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
44855
45029
  registerCleanup(async () => {
44856
45030
  try {
44857
45031
  await config.getHookSystem()?.fireSessionEndEvent("prompt_input_exit" /* PromptInputExit */);
44858
- debugLogger40.debug("SessionEnd event completed successfully!!!");
45032
+ debugLogger41.debug("SessionEnd event completed successfully!!!");
44859
45033
  } catch (err) {
44860
- debugLogger40.error(`SessionEnd hook failed: ${err}`);
45034
+ debugLogger41.error(`SessionEnd hook failed: ${err}`);
44861
45035
  }
44862
45036
  });
44863
45037
  registerCleanup(async () => {
@@ -44883,7 +45057,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
44883
45057
  flushTimer = null;
44884
45058
  }
44885
45059
  return geminiClient2.setTools().catch((err) => {
44886
- debugLogger40.error(
45060
+ debugLogger41.error(
44887
45061
  `setTools() batch-flush failed: ${err instanceof Error ? err.message : String(err)}`
44888
45062
  );
44889
45063
  });
@@ -44901,7 +45075,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
44901
45075
  failureSurfaced = true;
44902
45076
  const failedNames = typeof config.getFailedMcpServerNames === "function" ? config.getFailedMcpServerNames() : [];
44903
45077
  if (failedNames.length > 0) {
44904
- debugLogger40.warn(
45078
+ debugLogger41.warn(
44905
45079
  `MCP server(s) failed to start: ${failedNames.join(", ")}. Continuing with built-in tools and any servers that did connect.`
44906
45080
  );
44907
45081
  }
@@ -45209,6 +45383,10 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45209
45383
  config,
45210
45384
  settings,
45211
45385
  historyManager,
45386
+ // Route the interactive /resume through the latch-reconciling wrapper
45387
+ // so same-id resume (no sessionId change → no effect re-arm) still
45388
+ // re-arms the latch when the rebuilt history has no announcement.
45389
+ loadHistory: loadHistoryWithLatchReconciliation,
45212
45390
  startNewSession,
45213
45391
  clearPendingState: clearPendingStateFromRef,
45214
45392
  setSessionName,
@@ -45359,7 +45537,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45359
45537
  try {
45360
45538
  cancelOngoingRequestRef.current();
45361
45539
  } catch (error) {
45362
- debugLogger40.debug("Failed to cancel request while quitting:", error);
45540
+ debugLogger41.debug("Failed to cancel request while quitting:", error);
45363
45541
  }
45364
45542
  setQuittingMessages(messages);
45365
45543
  config.getGeminiClient()?.requestShutdown();
@@ -45437,7 +45615,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45437
45615
  historyManager.history,
45438
45616
  historyManager.addItem,
45439
45617
  historyManager.clearItems,
45440
- historyManager.loadHistory,
45618
+ loadHistoryWithLatchReconciliation,
45441
45619
  refreshStatic,
45442
45620
  toggleVimEnabled,
45443
45621
  isProcessing,
@@ -45527,6 +45705,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45527
45705
  if (config.isSafeMode()) {
45528
45706
  config.setUserMemory("");
45529
45707
  config.setGeminiMdFileCount(0);
45708
+ config.setContextFilePaths([]);
45530
45709
  config.setConditionalRulesRegistry(
45531
45710
  new ConditionalRulesRegistry([], config.getWorkingDir())
45532
45711
  );
@@ -45548,8 +45727,14 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45548
45727
  Date.now()
45549
45728
  );
45550
45729
  try {
45551
- const { memoryContent, fileCount, conditionalRules, projectRoot } = await loadHierarchicalGeminiMemory(
45552
- process18.cwd(),
45730
+ const {
45731
+ memoryContent,
45732
+ fileCount,
45733
+ contextFilePaths,
45734
+ conditionalRules,
45735
+ projectRoot
45736
+ } = await loadHierarchicalGeminiMemory(
45737
+ config.getWorkingDir(),
45553
45738
  settings.merged.context?.loadFromIncludeDirectories ? config.getWorkspaceContext().getDirectories() : [],
45554
45739
  config.getFileService(),
45555
45740
  config.getExtensionContextFilePaths(),
@@ -45566,6 +45751,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45566
45751
  );
45567
45752
  config.setUserMemory(memoryContent);
45568
45753
  config.setGeminiMdFileCount(fileCount);
45754
+ config.setContextFilePaths(contextFilePaths);
45569
45755
  config.setConditionalRulesRegistry(
45570
45756
  new ConditionalRulesRegistry(conditionalRules, projectRoot)
45571
45757
  );
@@ -45577,7 +45763,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45577
45763
  },
45578
45764
  Date.now()
45579
45765
  );
45580
- debugLogger40.debug(
45766
+ debugLogger41.debug(
45581
45767
  `[DEBUG] Refreshed memory content in config: ${memoryContent.substring(
45582
45768
  0,
45583
45769
  200
@@ -45592,7 +45778,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45592
45778
  },
45593
45779
  Date.now()
45594
45780
  );
45595
- debugLogger40.error("Error refreshing memory:", error);
45781
+ debugLogger41.error("Error refreshing memory:", error);
45596
45782
  }
45597
45783
  }, [config, historyManager, settings.merged]);
45598
45784
  const cancelHandlerRef = (0, import_react162.useRef)(() => {
@@ -45762,7 +45948,7 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45762
45948
  );
45763
45949
  });
45764
45950
  goalReservationSettlementRef.current = settlement.catch((error) => {
45765
- debugLogger40.warn(
45951
+ debugLogger41.warn(
45766
45952
  `Failed to release queued Goal turns: ${getErrorMessage(error)}`
45767
45953
  );
45768
45954
  });
@@ -45913,6 +46099,23 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
45913
46099
  void handleSlashCommand("/quit");
45914
46100
  return;
45915
46101
  }
46102
+ const trimmedPrompt = userPromptText.trim();
46103
+ if (!contextFilesAnnouncedRef.current && consumesContextAnnouncementLatch(trimmedPrompt, {
46104
+ shellModeActive,
46105
+ slashCommands
46106
+ })) {
46107
+ const contextFilePaths = config.getContextFilePaths();
46108
+ if (contextFilePaths.length > 0) {
46109
+ contextFilesAnnouncedRef.current = true;
46110
+ historyManager.addItem(
46111
+ {
46112
+ type: "info" /* INFO */,
46113
+ text: `${CONTEXT_FILES_ANNOUNCEMENT_PREFIX} ${contextFilePaths.join(", ")}`
46114
+ },
46115
+ Date.now()
46116
+ );
46117
+ }
46118
+ }
45916
46119
  const recoveredAgentsNotice = !isSlashCommand(userPromptText) && !isBtwCommand(userPromptText) ? config.consumePendingRecoveredAgentsNotice() : null;
45917
46120
  if (recoveredAgentsNotice) {
45918
46121
  submittedValue = `<system-reminder>
@@ -45960,7 +46163,7 @@ ${buildWorkflowSteeringNotice()}
45960
46163
  }, "onAdmissionFailed")
45961
46164
  })
45962
46165
  ).catch((error) => {
45963
- debugLogger40.warn("Failed to admit /btw submission", error);
46166
+ debugLogger41.warn("Failed to admit /btw submission", error);
45964
46167
  });
45965
46168
  return;
45966
46169
  }
@@ -46054,7 +46257,7 @@ ${buildWorkflowSteeringNotice()}
46054
46257
  submittedPrompt === void 0 ? void 0 : { submittedPrompt }
46055
46258
  )
46056
46259
  ).catch((error) => {
46057
- debugLogger40.warn("Failed to admit slash command", error);
46260
+ debugLogger41.warn("Failed to admit slash command", error);
46058
46261
  });
46059
46262
  return;
46060
46263
  }
@@ -46073,6 +46276,7 @@ ${buildWorkflowSteeringNotice()}
46073
46276
  historyManager,
46074
46277
  settings.merged.ui?.disableWorkflowKeywordTrigger,
46075
46278
  setBufferText,
46279
+ shellModeActive,
46076
46280
  vimEnabled
46077
46281
  ]
46078
46282
  );
@@ -46131,18 +46335,18 @@ ${currentText}` : popped.modelText
46131
46335
  geminiClient?.stripOrphanedUserEntriesFromHistory?.();
46132
46336
  }
46133
46337
  if (!draftWasEmpty) {
46134
- debugLogger40.debug("auto-restore bail: buffer was non-empty");
46338
+ debugLogger41.debug("auto-restore bail: buffer was non-empty");
46135
46339
  return;
46136
46340
  }
46137
46341
  if (popped !== null) {
46138
- debugLogger40.debug(
46342
+ debugLogger41.debug(
46139
46343
  "auto-restore bail: queue had items (drained to buffer)"
46140
46344
  );
46141
46345
  return;
46142
46346
  }
46143
46347
  const cancelledTurnUserItem = info?.lastTurnUserItem;
46144
46348
  if (cancelledTurnUserItem == null) {
46145
- debugLogger40.debug(
46349
+ debugLogger41.debug(
46146
46350
  "auto-restore bail: cancelled turn did not add a user history item"
46147
46351
  );
46148
46352
  return;
@@ -46156,20 +46360,20 @@ ${currentText}` : popped.modelText
46156
46360
  buffer.setText(cancelledTurnUserItem.text);
46157
46361
  }, "restoreCancelledPrompt");
46158
46362
  if (pendingHistoryItems2.some((item) => item.type === "tool_group")) {
46159
- debugLogger40.debug(
46363
+ debugLogger41.debug(
46160
46364
  "auto-restore bail: tool execution is pending or committed"
46161
46365
  );
46162
46366
  return;
46163
46367
  }
46164
46368
  if (info?.turnProducedMeaningfulContent) {
46165
- debugLogger40.debug(
46369
+ debugLogger41.debug(
46166
46370
  "auto-restore: preserving streamed output and restoring prompt text"
46167
46371
  );
46168
46372
  restoreCancelledPrompt();
46169
46373
  return;
46170
46374
  }
46171
46375
  if (pendingHistoryItems2.some((item) => !isSyntheticHistoryItem(item))) {
46172
- debugLogger40.debug(
46376
+ debugLogger41.debug(
46173
46377
  "auto-restore bail: pending stream item has meaningful content"
46174
46378
  );
46175
46379
  return;
@@ -46177,11 +46381,11 @@ ${currentText}` : popped.modelText
46177
46381
  const history = historyRef.current;
46178
46382
  const lastUserIdx = findLastUserItemIndex(history);
46179
46383
  if (lastUserIdx === -1) {
46180
- debugLogger40.debug("auto-restore bail: no user item in history");
46384
+ debugLogger41.debug("auto-restore bail: no user item in history");
46181
46385
  return;
46182
46386
  }
46183
46387
  if (!itemsAfterAreOnlySynthetic(history, lastUserIdx)) {
46184
- debugLogger40.debug(
46388
+ debugLogger41.debug(
46185
46389
  "auto-restore: preserving committed output and restoring prompt text"
46186
46390
  );
46187
46391
  restoreCancelledPrompt();
@@ -46189,18 +46393,18 @@ ${currentText}` : popped.modelText
46189
46393
  }
46190
46394
  const lastUserItem = history[lastUserIdx];
46191
46395
  if (lastUserItem.type !== "user") {
46192
- debugLogger40.debug(
46396
+ debugLogger41.debug(
46193
46397
  "auto-restore bail: lastUserItem type narrowing failed (unexpected)"
46194
46398
  );
46195
46399
  return;
46196
46400
  }
46197
46401
  if (lastUserItem.id !== cancelledTurnUserItem.id || lastUserItem.text !== cancelledTurnUserItem.text) {
46198
- debugLogger40.debug(
46402
+ debugLogger41.debug(
46199
46403
  "auto-restore bail: lastUserItem identity does not match cancelled-turn user item"
46200
46404
  );
46201
46405
  return;
46202
46406
  }
46203
- debugLogger40.debug(
46407
+ debugLogger41.debug(
46204
46408
  "auto-restore: rewinding cancelled turn and restoring prompt"
46205
46409
  );
46206
46410
  historyManager.truncateToItem(lastUserItem.id);
@@ -46209,7 +46413,7 @@ ${currentText}` : popped.modelText
46209
46413
  geminiClient?.stripOrphanedUserEntriesFromHistory?.();
46210
46414
  if (info?.canUndoLastLoggedUserMessage) {
46211
46415
  void logger?.removeLastUserMessage().catch((err) => {
46212
- debugLogger40.debug("Failed to undo cancelled prompt from log:", err);
46416
+ debugLogger41.debug("Failed to undo cancelled prompt from log:", err);
46213
46417
  });
46214
46418
  }
46215
46419
  },
@@ -46228,6 +46432,7 @@ ${currentText}` : popped.modelText
46228
46432
  );
46229
46433
  const handleClearScreen = (0, import_react162.useCallback)(() => {
46230
46434
  clearPendingStateRef.current();
46435
+ contextFilesAnnouncedRef.current = false;
46231
46436
  historyManager.clearItems();
46232
46437
  clearScreen();
46233
46438
  remountStaticHistory();
@@ -46300,7 +46505,13 @@ ${currentText}` : popped.modelText
46300
46505
  suggestionAbortRef.current = ac;
46301
46506
  const conversationHistory = geminiClient.getHistoryTail(40, true);
46302
46507
  generatePromptSuggestion(config, conversationHistory, ac.signal, {
46303
- enableCacheSharing: settings.merged.ui?.enableCacheSharing === true
46508
+ // On by default: the schema declares `default: true`, but
46509
+ // `mergeSettings` doesn't apply schema defaults, so an unset value is
46510
+ // `undefined` and a `=== true` gate left the cache-aware fork as dead
46511
+ // code unless the flag was explicitly set (#9230). Same treatment as
46512
+ // `enableFollowupSuggestions` above — only an explicit `false` opts
46513
+ // out.
46514
+ enableCacheSharing: settings.merged.ui?.enableCacheSharing !== false
46304
46515
  }).then((result) => {
46305
46516
  if (ac.signal.aborted) return;
46306
46517
  if (result.suggestion) {
@@ -46646,7 +46857,7 @@ ${currentText}` : popped.modelText
46646
46857
  originalHistory.filter((h) => h.id < userItem.id)
46647
46858
  );
46648
46859
  clearPendingStateRef.current();
46649
- historyManager.loadHistory(truncatedUi);
46860
+ loadHistoryWithLatchReconciliation(truncatedUi);
46650
46861
  refreshStatic();
46651
46862
  if (userItem.type === "user" && userItem.text) {
46652
46863
  restoredSubmissionRef.current = null;
@@ -46705,7 +46916,13 @@ ${currentText}` : popped.modelText
46705
46916
  setIsRewindSelectorOpen(false);
46706
46917
  }
46707
46918
  },
46708
- [config, historyManager, refreshStatic, buffer]
46919
+ [
46920
+ config,
46921
+ historyManager,
46922
+ loadHistoryWithLatchReconciliation,
46923
+ refreshStatic,
46924
+ buffer
46925
+ ]
46709
46926
  );
46710
46927
  const handleDoubleEscRewind = useDoublePress(
46711
46928
  openRewindSelector,
@@ -46925,7 +47142,7 @@ ${migrationResult.failedFiles.map((f) => ` \u2022 ${f.file}: ${f.error}`).join(
46925
47142
  const handleGlobalKeypress = (0, import_react162.useCallback)(
46926
47143
  (key) => {
46927
47144
  if (settings.merged.general?.debugKeystrokeLogging) {
46928
- debugLogger40.debug("[DEBUG] Keystroke:", JSON.stringify(key));
47145
+ debugLogger41.debug("[DEBUG] Keystroke:", JSON.stringify(key));
46929
47146
  }
46930
47147
  if (keyMatchers["toggleThinkingExpanded" /* TOGGLE_THINKING_EXPANDED */](key)) {
46931
47148
  setThoughtExpanded((prev) => !prev);
@@ -47043,7 +47260,7 @@ ${migrationResult.failedFiles.map((f) => ` \u2022 ${f.file}: ${f.error}`).join(
47043
47260
  );
47044
47261
  if (promotableShells.length === 1) {
47045
47262
  const executingShell = promotableShells[0];
47046
- debugLogger40.debug(
47263
+ debugLogger41.debug(
47047
47264
  `Ctrl+B promote: matched executing shell tool call ${executingShell.request.callId}`
47048
47265
  );
47049
47266
  executingShell.promoteAbortController.abort({
@@ -47051,7 +47268,7 @@ ${migrationResult.failedFiles.map((f) => ` \u2022 ${f.file}: ${f.error}`).join(
47051
47268
  });
47052
47269
  return;
47053
47270
  }
47054
- debugLogger40.debug(
47271
+ debugLogger41.debug(
47055
47272
  `Ctrl+B promote: expected exactly one executing shell tool call; falling through (streamingState=${streamingState}, pendingToolCalls=${pendingToolCallsRef.current.length}, promotableShells=${promotableShells.length})`
47056
47273
  );
47057
47274
  }
@@ -47742,7 +47959,7 @@ __name(installSynchronizedOutput, "installSynchronizedOutput");
47742
47959
 
47743
47960
  // packages/cli/src/ui/startInteractiveUI.tsx
47744
47961
  var import_jsx_runtime133 = __toESM(require_jsx_runtime(), 1);
47745
- var debugLogger41 = createDebugLogger("STARTUP");
47962
+ var debugLogger42 = createDebugLogger("STARTUP");
47746
47963
  var PRESSURE_CHECK_INTERVAL_MS = 3e4;
47747
47964
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), initializationResult, options = {}) {
47748
47965
  const version = await getCliVersion();
@@ -47780,7 +47997,7 @@ async function startInteractiveUI(config, settings, startupWarnings, workspaceRo
47780
47997
  );
47781
47998
  }
47782
47999
  } catch (err) {
47783
- debugLogger41.error("Failed to initialize dual output bridge:", err);
48000
+ debugLogger42.error("Failed to initialize dual output bridge:", err);
47784
48001
  writeStderrLine(
47785
48002
  `Warning: dual output disabled \u2014 ${err instanceof Error ? err.message : String(err)}`
47786
48003
  );
@@ -47791,7 +48008,7 @@ async function startInteractiveUI(config, settings, startupWarnings, workspaceRo
47791
48008
  try {
47792
48009
  remoteInputWatcher = new RemoteInputWatcher(inputFile);
47793
48010
  } catch (err) {
47794
- debugLogger41.error("Failed to initialize remote input watcher:", err);
48011
+ debugLogger42.error("Failed to initialize remote input watcher:", err);
47795
48012
  writeStderrLine(
47796
48013
  `Warning: remote input disabled \u2014 ${err instanceof Error ? err.message : String(err)}`
47797
48014
  );
@@ -47842,7 +48059,7 @@ async function startInteractiveUI(config, settings, startupWarnings, workspaceRo
47842
48059
  {
47843
48060
  recordForExitEcho: true,
47844
48061
  onError: (error, info) => {
47845
- debugLogger41.error(
48062
+ debugLogger42.error(
47846
48063
  `[FATAL_RENDER_ERROR] ${error.message}
47847
48064
  ${info.componentStack ?? ""}
47848
48065
  ${error.stack ?? ""}`
@@ -47920,6 +48137,14 @@ qwen --resume ${sessionId}`
47920
48137
  } catch {
47921
48138
  }
47922
48139
  });
48140
+ config.trackSessionRegistration(
48141
+ registerSession({
48142
+ sessionId: config.getSessionId(),
48143
+ cwd: config.getTargetDir(),
48144
+ qwenVersion: version
48145
+ })
48146
+ );
48147
+ registerCleanup(() => config.unregisterSessionRegistry());
47923
48148
  }
47924
48149
  __name(startInteractiveUI, "startInteractiveUI");
47925
48150
  function setWindowTitle(settings, folderName) {