@organizaone/o1-code 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/configuration/auth.md +3 -1
- package/bundled/qc-helper/docs/configuration/model-providers.md +9 -0
- package/bundled/qc-helper/docs/features/approval-mode.md +4 -0
- package/bundled/qc-helper/docs/features/auto-mode.md +3 -0
- package/bundled/qc-helper/docs/features/sub-agents.md +7 -8
- package/chunks/{MaxSizedBox-GF25YEIN.js → MaxSizedBox-UYZO6Q53.js} +41 -40
- package/chunks/{StandaloneSessionPicker-YBS47NTB.js → StandaloneSessionPicker-22TBAOIZ.js} +54 -53
- package/chunks/{acp-subagent-executor-OCP4NXXX.js → acp-subagent-executor-24M4LCIR.js} +44 -43
- package/chunks/{acpAgent-WMX43ZDF.js → acpAgent-BLHUPR3S.js} +427 -369
- package/chunks/{agent-NMLVWIU3.js → agent-RKK4ZSNT.js} +27 -26
- package/chunks/{agent-headless-5AKJIKG2.js → agent-headless-NGG6JV6W.js} +27 -26
- package/chunks/{anthropicContentGenerator-5OH4LNCZ.js → anthropicContentGenerator-NFE6SNOW.js} +44 -15
- package/chunks/{bridge-DTVVZPYE.js → bridge-IESNMEQ4.js} +44 -43
- package/chunks/{bwrap-execution-EZJNABHL.js → bwrap-execution-QFG5RQSP.js} +5 -5
- package/chunks/{chunk-OPNBX4BU.js → chunk-26RB5MCN.js} +1 -1
- package/chunks/{chunk-WZKJPAWS.js → chunk-27N4PS4A.js} +2 -2
- package/chunks/{chunk-5ST67IZT.js → chunk-2I5ETR2G.js} +8 -5
- package/chunks/{chunk-MVE72SO7.js → chunk-2RYXWLLJ.js} +1 -1
- package/chunks/{chunk-EXWAECKM.js → chunk-35RKSP4A.js} +2 -2
- package/chunks/{chunk-IVAO4HY7.js → chunk-3ILV7TTQ.js} +3 -3
- package/chunks/{chunk-G4NGNKM6.js → chunk-3QFZFTMB.js} +7 -6
- package/chunks/{chunk-XF7WMIX5.js → chunk-3ZBJ5U4C.js} +5 -5
- package/chunks/{chunk-NHKFCD4F.js → chunk-4ZA2DNDT.js} +1 -1
- package/chunks/{chunk-TLWUCRTO.js → chunk-6AVPXLAG.js} +3 -3
- package/chunks/{chunk-CCNABFR3.js → chunk-6MRRD2YD.js} +3 -3
- package/chunks/{chunk-5BGVEQ5T.js → chunk-6NRPL624.js} +6 -6
- package/chunks/{chunk-JYM2UKSC.js → chunk-6QGQ2AFR.js} +38 -3
- package/chunks/{chunk-W3HT3Y67.js → chunk-6TUERSTS.js} +4 -4
- package/chunks/{chunk-KXN7Q6SB.js → chunk-6TWJYLJE.js} +1 -1
- package/chunks/{chunk-V6XI7HKD.js → chunk-6WB3VFOC.js} +1 -1
- package/chunks/{chunk-XPYWEOXT.js → chunk-7J3GH7GE.js} +4 -4
- package/chunks/{chunk-DBD424KY.js → chunk-7MPB362V.js} +2 -2
- package/chunks/{chunk-AE25P7KP.js → chunk-7QHVLAP5.js} +5 -5
- package/chunks/{chunk-C6U74Q6C.js → chunk-7YT5K5ST.js} +3 -3
- package/chunks/{chunk-FWXUI7DZ.js → chunk-AI2PV62X.js} +59 -23
- package/chunks/{chunk-NYKKDVZN.js → chunk-AY6SVAQZ.js} +1 -1
- package/chunks/{chunk-JDUBQ632.js → chunk-BBVCA2GZ.js} +1 -1
- package/chunks/{chunk-Y6NXDVBG.js → chunk-BDCHAXXY.js} +2 -2
- package/chunks/{chunk-5ITAMZY3.js → chunk-BDWRHIER.js} +8 -8
- package/chunks/{chunk-ERJWPEY7.js → chunk-BLEJR2GA.js} +3 -3
- package/chunks/{chunk-FJKGFWXG.js → chunk-BWAJPJLA.js} +3 -3
- package/chunks/{chunk-QUMGEZV4.js → chunk-CG2QM2MI.js} +2 -2
- package/chunks/{chunk-HEXJ5CP4.js → chunk-CKLLDG5Z.js} +7 -7
- package/chunks/{chunk-S2LBLNBW.js → chunk-CMZHL55Y.js} +2193 -151
- package/chunks/{chunk-JR2IXLNE.js → chunk-D7MURDDC.js} +4 -4
- package/chunks/{chunk-2X5ECQ5K.js → chunk-DH6IQO44.js} +6 -6
- package/chunks/{chunk-YNJSBU2B.js → chunk-DZPGLX7M.js} +1 -1
- package/chunks/{chunk-LQY5SDPR.js → chunk-EG7FZ4GT.js} +2 -2
- package/chunks/{chunk-WXWA7OOJ.js → chunk-ELVKWFRK.js} +1 -1
- package/chunks/{chunk-JEX5DADO.js → chunk-EMOLKALJ.js} +1 -1
- package/chunks/{chunk-IFBW6FYH.js → chunk-EWJD7EIC.js} +1 -1
- package/chunks/{chunk-D4RCT4J4.js → chunk-F5TEGYB2.js} +2 -2
- package/chunks/{chunk-YV5ECLPM.js → chunk-FCTP7NAC.js} +39 -37
- package/chunks/{chunk-P7UNPKJM.js → chunk-FQO3QDB5.js} +1 -1
- package/chunks/{chunk-JBMSEZDI.js → chunk-FVYOYI7Y.js} +7 -7
- package/chunks/{chunk-RYKMFNWC.js → chunk-FXPZKL6H.js} +2 -2
- package/chunks/{chunk-TKHMBUSK.js → chunk-FZUEC7ES.js} +3 -3
- package/chunks/{chunk-L3LXMQJJ.js → chunk-G2I75T4C.js} +1 -1
- package/chunks/{chunk-3XCL57IX.js → chunk-GMR3LAWE.js} +19 -4
- package/chunks/{chunk-NNVR5V2I.js → chunk-GNEHVPRR.js} +6 -6
- package/chunks/{chunk-SJ7DMBBS.js → chunk-GNSGESJK.js} +3 -3
- package/chunks/{chunk-VKFY6KJC.js → chunk-GQ7GDOJ3.js} +4 -4
- package/chunks/{chunk-Z7APSZZK.js → chunk-GTXPWUF4.js} +4 -4
- package/chunks/{chunk-E4BNWSC7.js → chunk-H5L5E5NI.js} +1 -1
- package/chunks/{chunk-LVFKSBH3.js → chunk-HOVKZNOX.js} +10 -5
- package/chunks/{chunk-DB5UA5RL.js → chunk-HVELN6DV.js} +5 -5
- package/chunks/{chunk-EGZKXA6V.js → chunk-HZMPE4UL.js} +1 -1
- package/chunks/{chunk-4NV74I76.js → chunk-I2XHQTBX.js} +201 -160
- package/chunks/{chunk-SXPTY2NJ.js → chunk-IAQGBZNZ.js} +1 -1
- package/chunks/{chunk-UUNTJ2TR.js → chunk-IZHKBFYA.js} +1 -1
- package/chunks/{chunk-JHODAWQZ.js → chunk-J7SHLTAH.js} +10 -10
- package/chunks/{chunk-B6W2OL2D.js → chunk-JXBIVAJQ.js} +39 -36
- package/chunks/{chunk-QSF42LP4.js → chunk-K2JYJWEF.js} +10 -10
- package/chunks/{chunk-UKS76REW.js → chunk-KFJXCZWZ.js} +3 -3
- package/chunks/{chunk-MPSJQSNY.js → chunk-KICFGUH5.js} +3 -3
- package/chunks/{chunk-BDKFE7EF.js → chunk-KRCRVCN5.js} +1 -1
- package/chunks/{chunk-4JQ6AGCG.js → chunk-L37WUEXT.js} +1 -1
- package/chunks/{chunk-REAEIHLD.js → chunk-LERXWKRT.js} +1 -1
- package/chunks/{chunk-KIQ7D4YK.js → chunk-LW4NWM6L.js} +15 -15
- package/chunks/{chunk-YIEC5SIW.js → chunk-M2EBVYXC.js} +1 -1
- package/chunks/{chunk-C6LFEUFU.js → chunk-MG64NR57.js} +1 -1
- package/chunks/{chunk-JQFQB2BI.js → chunk-MIWMCUU5.js} +1 -1
- package/chunks/{chunk-2S34HMND.js → chunk-MNGG2WBY.js} +1 -1
- package/chunks/{chunk-SS2JMVDW.js → chunk-N3YINO2H.js} +1 -1
- package/chunks/{chunk-L425LZSD.js → chunk-N4ANLNQG.js} +3 -3
- package/chunks/{chunk-I7XXUDXZ.js → chunk-NGPEFWU4.js} +1 -1
- package/chunks/{chunk-MTJQKPTJ.js → chunk-NP2P2IJA.js} +1 -1
- package/chunks/{chunk-YCZXGP63.js → chunk-NVNIFGY3.js} +72 -1
- package/chunks/{chunk-ERV4L76G.js → chunk-OBGYVJZ6.js} +14 -14
- package/chunks/{chunk-AQVYFR7E.js → chunk-OMJU4YIQ.js} +1 -1
- package/chunks/{chunk-7OHUVM2P.js → chunk-PH4SO4P2.js} +4 -4
- package/chunks/{chunk-UNRHVAPY.js → chunk-QDZTSZTF.js} +1 -1
- package/chunks/{chunk-AG2ELNEP.js → chunk-QFGGMNXV.js} +13 -11
- package/chunks/{chunk-QPGBAI7B.js → chunk-QGVUKQPI.js} +1 -1
- package/chunks/{chunk-7J3ZEJUN.js → chunk-RBQQCGVG.js} +7 -42
- package/chunks/{chunk-J7G3OJOX.js → chunk-RMDWSEWQ.js} +13 -10
- package/chunks/{chunk-KTH2NXBH.js → chunk-RPOVX6MQ.js} +1 -1
- package/chunks/{chunk-TNQJ66S4.js → chunk-S7EZBSGP.js} +3603 -5405
- package/chunks/{chunk-SGW7DY4F.js → chunk-SFHAMYFI.js} +2 -2
- package/chunks/{chunk-QFQQICSQ.js → chunk-TCME6IG6.js} +1 -1
- package/chunks/{chunk-GFZWLC66.js → chunk-TVGM3GPZ.js} +2 -2
- package/chunks/{chunk-GZNQS5UB.js → chunk-UP6Q42H2.js} +22 -4
- package/chunks/{chunk-QS7N2YMJ.js → chunk-UQ34TBDD.js} +1 -1
- package/chunks/{chunk-VNMKY2V3.js → chunk-UT656E5I.js} +3 -3
- package/chunks/{chunk-623SEN5Q.js → chunk-UZLXX76B.js} +1 -1
- package/chunks/{chunk-J5BDFZYA.js → chunk-V23Q4GBY.js} +1 -1
- package/chunks/{chunk-L3YLV3RI.js → chunk-V4XETRAG.js} +24 -9
- package/chunks/{chunk-PPR5SHEF.js → chunk-V75J4GJ2.js} +1 -1
- package/chunks/{chunk-UXN7KJEI.js → chunk-VA7BGQ2G.js} +5 -5
- package/chunks/{chunk-QQQRGEHT.js → chunk-VIXCJWEM.js} +3 -3
- package/chunks/{chunk-CTIEFYP7.js → chunk-VZIZZYZ2.js} +2 -2
- package/chunks/chunk-WCRZJ5HN.js +27 -0
- package/chunks/{chunk-JE64TPWB.js → chunk-WGHVI55A.js} +4 -4
- package/chunks/{chunk-WGXPBRMN.js → chunk-WOO572MR.js} +1 -1
- package/chunks/{chunk-3YCUO772.js → chunk-WOZVQEFV.js} +1 -1
- package/chunks/{chunk-4OCNSFYL.js → chunk-WUKHAI4J.js} +13 -0
- package/chunks/{chunk-ZNNZZ4BW.js → chunk-X6T6YORO.js} +1 -1
- package/chunks/{chunk-BDKGHKN5.js → chunk-XCLRPKMH.js} +1 -1
- package/chunks/{chunk-GUMLL5KC.js → chunk-XKOGHPWS.js} +1 -1
- package/chunks/{chunk-ELIXZXZC.js → chunk-Y3KJFSGP.js} +4 -4
- package/chunks/{chunk-I3G7XU6U.js → chunk-ZATS5TUZ.js} +4 -4
- package/chunks/{chunk-3CO4GKLV.js → chunk-ZHYAWJRF.js} +1 -1
- package/chunks/{chunk-M2WG4ESD.js → chunk-ZQBNP2ZQ.js} +4 -2
- package/chunks/{chunk-HKGC5GVY.js → chunk-ZUCL2KQE.js} +1 -1
- package/chunks/{chunk-RHYRXRHW.js → chunk-ZZG3Z2XX.js} +1 -1
- package/chunks/{codex-subagent-executor-QGB72XUZ.js → codex-subagent-executor-KXD2IV5N.js} +44 -43
- package/chunks/{contextCommand-OIZKYRYR.js → contextCommand-RDEMVBKQ.js} +42 -41
- package/chunks/{core-runtime-ZFOKJ32O.js → core-runtime-BH3QRW7L.js} +41 -40
- package/chunks/{create-sub-session-Y6QAGHZ6.js → create-sub-session-2EEIM347.js} +42 -41
- package/chunks/{daemon-git-worktree-guard-M73ZL5UO.js → daemon-git-worktree-guard-GOHP6Z3Z.js} +41 -40
- package/chunks/{daemon-status-provider-6YNQ74OV.js → daemon-status-provider-JBGBRCQ3.js} +49 -48
- package/chunks/{daemon-trust-policy-URDFVFCF.js → daemon-trust-policy-VE2G2RR3.js} +46 -45
- package/chunks/{daemon-trust-policy-monitor-FKHP5BIE.js → daemon-trust-policy-monitor-EQIKISSG.js} +46 -45
- package/chunks/{deferred-core-runtime-3Q5WFRWL.js → deferred-core-runtime-T5ZBIEH5.js} +41 -40
- package/chunks/{display-image-K4EKCY4Y.js → display-image-U6HZKF3G.js} +1 -1
- package/chunks/{edit-BA7F4PT6.js → edit-SSW6ROAY.js} +29 -28
- package/chunks/{enter-worktree-7AEF4YHW.js → enter-worktree-53CUMISV.js} +6 -5
- package/chunks/{enterPlanMode-EFBL4BF7.js → enterPlanMode-AQDABVZ7.js} +27 -26
- package/chunks/{environment-WPNDLJO7.js → environment-CRS6FJUB.js} +47 -44
- package/chunks/{errors-7ETRPMNN.js → errors-LEKWARZU.js} +43 -42
- package/chunks/{execution-sandbox-config-ODVPW3HT.js → execution-sandbox-config-7UDTKDKF.js} +6 -6
- package/chunks/{execution-tool-CAWRJH4J.js → execution-tool-RDK54VX4.js} +30 -29
- package/chunks/{execution-worker-HLC7A4TJ.js → execution-worker-GLD3Y36P.js} +34 -33
- package/chunks/{exit-worktree-7LRFLHHT.js → exit-worktree-CZUYCPZ3.js} +6 -5
- package/chunks/{exitPlanMode-S23F45GN.js → exitPlanMode-DF32PZWX.js} +27 -26
- package/chunks/{fast-path-3I3VLXLK.js → fast-path-INED4OHU.js} +2 -2
- package/chunks/{glob-QTRRGB3D.js → glob-7WHFZZ7M.js} +27 -26
- package/chunks/{goal-tools-NUONFKIG.js → goal-tools-W27UVE2Z.js} +27 -26
- package/chunks/{grep-TA3S572F.js → grep-ENZEP6KL.js} +2 -2
- package/chunks/{handleAutoUpdate-QVESGET2.js → handleAutoUpdate-J6Z2XB5Q.js} +43 -42
- package/chunks/{i18n-ZSSY3WKU.js → i18n-OO4UHAXL.js} +41 -40
- package/chunks/{image-gen-5BYQKJXP.js → image-gen-GJRWPVTR.js} +4 -4
- package/chunks/{initializer-T5M3ALQB.js → initializer-JQHJYCF5.js} +46 -45
- package/chunks/{installationInfo-P5YK242M.js → installationInfo-AXAY2SH2.js} +41 -40
- package/chunks/{list-MJY6Y5CU.js → list-SADQT2AG.js} +48 -47
- package/chunks/{llm-W5ENEUT6.js → llm-SZWXZP3B.js} +97 -74
- package/chunks/{llm-content-generator-TXCK3B4L.js → llm-content-generator-G5JRRUQG.js} +3 -3
- package/chunks/{loadedSettingsAdapter-JLZC4ZBX.js → loadedSettingsAdapter-KHPR57FZ.js} +46 -45
- package/chunks/{local-execution-environment-YZMNKOAL.js → local-execution-environment-UIXT5MYW.js} +34 -33
- package/chunks/{loggingContentGenerator-N47XAAOQ.js → loggingContentGenerator-S7Z3KA5G.js} +29 -28
- package/chunks/{managed-npm-update-4ROJTOPU.js → managed-npm-update-2F2CWUN5.js} +58 -51
- package/chunks/{mcp-RKXPYCS7.js → mcp-HIXXYJCE.js} +46 -45
- package/chunks/{model-call-collection-OJVM2GWV.js → model-call-collection-KSMSHS7L.js} +1 -1
- package/chunks/{model-configuration-GYGU23MY.js → model-configuration-ESRJKAHN.js} +47 -46
- package/chunks/{modelConfigUtils-6MZXMJI7.js → modelConfigUtils-NDQ2FXQH.js} +43 -42
- package/chunks/{monitor-PY4ONOQZ.js → monitor-YVVVGAR3.js} +42 -37
- package/chunks/{nonInteractiveCli-BEOCLPL7.js → nonInteractiveCli-KM3SLXEM.js} +72 -71
- package/chunks/{nonInteractiveToolExecutor-TWHMKTHV.js → nonInteractiveToolExecutor-JUANVJTX.js} +28 -27
- package/chunks/{notebook-edit-735U37BJ.js → notebook-edit-4DUMKNFK.js} +28 -27
- package/chunks/{omni-TSSGKDWK.js → omni-47LNNZAF.js} +12 -11
- package/chunks/{openaiContentGenerator-66O4ID6K.js → openaiContentGenerator-A6QCMGW4.js} +17 -15
- package/chunks/{openaiResponsesContentGenerator-AI4VCUZW.js → openaiResponsesContentGenerator-BUWQNFGJ.js} +3 -3
- package/chunks/{processUtils-KX55UCVT.js → processUtils-2NQUOJFV.js} +2 -2
- package/chunks/{prompt-terminal-ledger-TMEWRMRM.js → prompt-terminal-ledger-2PPXLWXQ.js} +42 -41
- package/chunks/{reactive-degrade-W6RK63HX.js → reactive-degrade-L7HLGJAK.js} +8 -7
- package/chunks/{read-file-EY55LILP.js → read-file-UZ2R53V3.js} +4 -4
- package/chunks/{record-artifact-LO3TFJF4.js → record-artifact-PL2T5AJY.js} +3 -3
- package/chunks/{record-source-U2PL3PZS.js → record-source-PHBQTGL4.js} +4 -4
- package/chunks/{report-findings-XQQ23B4H.js → report-findings-RFO53756.js} +4 -4
- package/chunks/{request-shutdown-HUO3DW4O.js → request-shutdown-OMWHNC3R.js} +3 -3
- package/chunks/{resumeHistoryUtils-64X6P4RL.js → resumeHistoryUtils-7HRODIKY.js} +42 -41
- package/chunks/{ripGrep-EJBNAHG7.js → ripGrep-ACBTAONG.js} +7 -7
- package/chunks/{run-o1-code-serve-XZD4J7UT.js → run-o1-code-serve-MDMLRTRO.js} +32 -32
- package/chunks/{runtime-shell-policy-7E34X54Z.js → runtime-shell-policy-QXWSET5W.js} +1 -1
- package/chunks/{sandboxConfig-Q5T2KDWX.js → sandboxConfig-LMA3DPDG.js} +41 -40
- package/chunks/{scheduled-tasks-VFTJISRZ.js → scheduled-tasks-3PMJVK6Y.js} +47 -46
- package/chunks/{scheduler-LFPINJ3O.js → scheduler-O5OYPI63.js} +43 -42
- package/chunks/{send-message-X55LV3NW.js → send-message-NATKTKQZ.js} +3 -3
- package/chunks/{serve-KFLQFW4S.js → serve-GV3N45V5.js} +46 -45
- package/chunks/{server-5VX5EJJN.js → server-7E4EI7UC.js} +121 -112
- package/chunks/{session-FN3DK22S.js → session-ADHGVFFK.js} +73 -72
- package/chunks/{session-attachments-root-2KL64FGA.js → session-attachments-root-XELVOIWA.js} +41 -40
- package/chunks/{session-pr-refresh-RHCGWRST.js → session-pr-refresh-4Z5THFBF.js} +46 -45
- package/chunks/{settings-JNRHGVXK.js → settings-5EMCRRZH.js} +45 -44
- package/chunks/{shell-QXU6U3ZQ.js → shell-NPKZWF3U.js} +27 -26
- package/chunks/{skill-RRZHSAYL.js → skill-RZ7LZIVZ.js} +5 -5
- package/chunks/{skill-settings-WUQLVFBS.js → skill-settings-DHKLML5S.js} +46 -45
- package/chunks/{spawnChannel-IIN6QVRF.js → spawnChannel-ABJVT26C.js} +43 -42
- package/chunks/{standalone-update-ET5NFOX4.js → standalone-update-22DYM5RZ.js} +42 -41
- package/chunks/{startInteractiveUI-LNRR43PI.js → startInteractiveUI-5EYUYKDG.js} +192 -123
- package/chunks/{task-create-A2MP37QH.js → task-create-A3FAT34J.js} +4 -4
- package/chunks/{task-update-NJG2RTP7.js → task-update-BE27HYCU.js} +4 -4
- package/chunks/{team-create-QJCKLQOF.js → team-create-DFTT6KS7.js} +27 -26
- package/chunks/{team-plan-approval-KQ2O743Z.js → team-plan-approval-KVTEPS35.js} +27 -26
- package/chunks/{terminal-image-renderer-AWXQOO4X.js → terminal-image-renderer-ULESZQ2S.js} +41 -40
- package/chunks/{theme-manager-VA6NQNIL.js → theme-manager-TWCJZHHM.js} +41 -40
- package/chunks/{tool-call-VNMKD4BX.js → tool-call-7HZFNB7J.js} +4 -4
- package/chunks/{tool-result-media-6ZV6V5VB.js → tool-result-media-GW6DXPF6.js} +12 -11
- package/chunks/{tool-search-HPPYWJBF.js → tool-search-IYWJZOHM.js} +7 -7
- package/chunks/{total-session-admission-JVRBXXYV.js → total-session-admission-DFBHKYZ6.js} +44 -43
- package/chunks/{trustedFolders-56YDYOI5.js → trustedFolders-3TN7MAD2.js} +42 -41
- package/chunks/{update-relaunch-GFLNZDAX.js → update-relaunch-VRHG4DJ3.js} +17 -8
- package/chunks/{updateCheck-GD2DXYWP.js → updateCheck-6QJH7WCQ.js} +41 -40
- package/chunks/{upload-config-E5MQ5NML.js → upload-config-NKCONRNF.js} +6 -5
- package/chunks/{useAutoAcceptIndicator-KQ3H2K62.js → useAutoAcceptIndicator-QB67K7SZ.js} +48 -47
- package/chunks/{validateNonInterActiveAuth-Y4MBCH4W.js → validateNonInterActiveAuth-EIMNOYXA.js} +70 -69
- package/chunks/{version-IJ3TUIPZ.js → version-SPGSSS4D.js} +1 -1
- package/chunks/{web-fetch-F2CLSSW6.js → web-fetch-MR5YMAYN.js} +7 -7
- package/chunks/{web-search-2HX22GBH.js → web-search-UT4QMZ77.js} +9 -8
- package/chunks/{workflow-O5UFRP3U.js → workflow-5GDTA5C4.js} +28 -27
- package/chunks/{workspace-providers-status-74YJNLJJ.js → workspace-providers-status-JHE7XF4Q.js} +52 -51
- package/chunks/{workspace-registration-store-TZFSDL3K.js → workspace-registration-store-KSRT76YS.js} +1 -1
- package/chunks/{workspace-registry-NAMQHWBJ.js → workspace-registry-UIRZ644O.js} +44 -43
- package/chunks/{workspace-runtime-coordinator-WI35ERMI.js → workspace-runtime-coordinator-4KRIDNPN.js} +45 -44
- package/chunks/{workspace-service-GDF53GJS.js → workspace-service-EHBHBXQB.js} +50 -49
- package/chunks/{workspace-skills-status-PNR3ICAP.js → workspace-skills-status-2JGHZKN7.js} +49 -48
- package/chunks/{workspace-trust-reconciler-UO4CD5XT.js → workspace-trust-reconciler-GZETMLBC.js} +49 -48
- package/chunks/{write-file-4NLDAO3E.js → write-file-XMTCGJ5L.js} +30 -29
- package/chunks/{zoom-image-WVJNVR4G.js → zoom-image-2JJU2JUJ.js} +4 -4
- package/cli-entry.js +35 -18
- package/cli.js +12 -12
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/package.json +2 -2
- package/release-notes.json +38 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-GkC7qpZa.js → abnfDiagram-VCTEODGH-C4KL0pte.js} +1 -1
- package/web-shell/assets/{arc-rCRTR9rP.js → arc-DG56euNt.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-BXamqUa2.js → architectureDiagram-5GKGNRK7-DX_GPM3e.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-gcjjt4RN.js → blockDiagram-NRAW4CY4-RjYYv_50.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-y4txHZ64.js → c4Diagram-UCG6FXSJ-DNx_cCrE.js} +1 -1
- package/web-shell/assets/channel-C4IYRzaQ.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-CP7Wj7xO.js → chunk-2Q5K7J3B-tiiH_UQG.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-Cp32oZuQ.js → chunk-5VM5RSS4-L3MqoN5D.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-91dCDCyf.js → chunk-F27PBJKO-rOgNOxU4.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-CE0yCTWa.js → chunk-G27WJ6UU-Do4hF634.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-BrpX8c3O.js → chunk-JWPE2WC7-D3flHpv-.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-BYJTu4zN.js → chunk-LCL6LL3I-CKaf_vGR.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-Codub2tr.js → chunk-POPQ4Y6H-MoTQcJHM.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-DM-ke8Mr.js → chunk-SVP7TREG-5IUiTHDJ.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-BLcKbNbx.js → chunk-XXDRQBXY-Calnffda.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-B1_DeD3H.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-B1_DeD3H.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-yMq4SSTl.js → cose-bilkent-JH36ORCC-r7CvVhkL.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-B-n83dZA.js → cynefin-OW5HDTMX-6IISowf1.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-DwgvqFDD.js → cynefinDiagram-5FMLGOSQ-DHBp3-nw.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-BjByq1Of.js → dagre-3AP2YEHR-B8xQgIhZ.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-b-k59yRn.js → diagram-S7CK7UJ4-Cmu2Nepw.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-d4Mot6Yz.js → diagram-UQ7AKVKN-DcFEj1RT.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CkxocesP.js → diagram-VSXAHHWV-BJMlF0Ty.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-ClsrsYuH.js → diagram-VX7I27RA-kIMuXXqr.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-C86pbkMU.js → diagram-Z3DM3KII-Cs4WSVWV.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-Dd_W23Ti.js → ebnfDiagram-PWID7BFC-_CXCQvy8.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-Bm0aSkLh.js → erDiagram-SSCWMZ5O-B_BWmiLC.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-CzOHrYqI.js → flowDiagram-A5DVABFB-BbQ-Cnph.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-aD7VOZlz.js → ganttDiagram-EL5Y4UJY-Dw0OP2o6.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-qC6lU8hO.js → gitGraphDiagram-WWUBYQGX-CLGso8Fx.js} +1 -1
- package/web-shell/assets/{index-Dt92aFEi.js → index-DqcXLe_L.js} +1 -1
- package/web-shell/assets/{index-IQxVrdU8.js → index-uXBGc-O_.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-D7n5hN5T.js → infoDiagram-RXCK75RN-B16fsKTx.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-Crzzj9Hk.js → ishikawaDiagram-5VMMS53U-B6gNa_2h.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-FwmS41nw.js → journeyDiagram-EYS64GPL-D6pmm-zQ.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-CKIs80uY.js → kanban-definition-3QL26DDD-CYgLAGlY.js} +1 -1
- package/web-shell/assets/{layout-BQz4dKSf.js → layout-Dnu_3yL-.js} +1 -1
- package/web-shell/assets/{linear-BFhHgDEc.js → linear-M3brA9am.js} +1 -1
- package/web-shell/assets/{mermaid.core-Bk7ZiySi.js → mermaid.core-0spMkbMJ.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-BBWZxLbK.js → mindmap-definition-FBJOCRG2-KXz1-2Ie.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-D3XoIA9B.js → pegDiagram-XKGWAZYB-D2wzdm-1.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-B_tPTCKL.js → pieDiagram-E7YTZNPT-CAVUnkpR.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-BtsvzEtS.js → quadrantDiagram-AXDQQJYC-Bi0I0wCT.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-6ag1DheV.js → railroadDiagram-O6MQD6OU-1RMp3suI.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-8YxylfMT.js → requirementDiagram-EFPCY7ZU-Buktf-dE.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-1_AorqC_.js → sankeyDiagram-P5KCCOFB-Z4cqu0Yj.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-paioxV9Q.js → sequenceDiagram-WJ2MYXX4-Bky8Neqh.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-oOBrUhQf.js → sizeCapture-X5ZJPWSS-CtuAvlom.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DGkViHHK.js → stateDiagram-HBIQ2CUA-Ch17BzwP.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CnlkrjZ6.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-TqBChE5a.js → swimlanes-XN3QIQJK-zDCbFlBP.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DR1jeM-b.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-BQGAL6YG.js → timeline-definition-24CTP7MA-B_wsMvHG.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-CGPjpaes.js → vennDiagram-4TSXK5OY-DaY56Y6X.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-DPK0MANE.js → wardleyDiagram-VM6X3IG4-C_qP-clx.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-D4TN6euT.js → xychartDiagram-S5SC5T6Z-Bn_GJCcM.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/web-shell/assets/channel-CRgqjxIs.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-oQ799Ozj.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-oQ799Ozj.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CWC6iKqT.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-Dz_lYxMp.js +0 -8
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
recomputeMcpGating
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BWAJPJLA.js";
|
|
6
6
|
import {
|
|
7
7
|
PeerMessaging,
|
|
8
8
|
classifyApiError,
|
|
9
9
|
fireSessionDeleteHook
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EMOLKALJ.js";
|
|
11
11
|
import {
|
|
12
12
|
buildMcpServerContextText,
|
|
13
13
|
extractAtPathCommands,
|
|
14
14
|
matchMcpServerByRef,
|
|
15
15
|
normalizePartList,
|
|
16
16
|
parseMcpServerRef
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CKLLDG5Z.js";
|
|
18
18
|
import {
|
|
19
19
|
getAvailableCommands,
|
|
20
20
|
getSlashCommandFirstToken,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
pLimit,
|
|
27
27
|
recordDaemonSessionModel,
|
|
28
28
|
restoreSessionModelThenAuthenticate
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JXBIVAJQ.js";
|
|
30
30
|
import {
|
|
31
31
|
SessionIdConflictError,
|
|
32
32
|
appEvents,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
loadCliConfig,
|
|
37
37
|
normalizeDisabledToolList,
|
|
38
38
|
parseApprovalModeValue
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FCTP7NAC.js";
|
|
40
40
|
import "./chunk-AYSIXE44.js";
|
|
41
41
|
import {
|
|
42
42
|
EXTENSION_CONTEXT_BUDGET,
|
|
@@ -45,33 +45,33 @@ import {
|
|
|
45
45
|
formatContextUsageText,
|
|
46
46
|
matchExtensionByRef,
|
|
47
47
|
parseExtensionRef
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3ZBJ5U4C.js";
|
|
49
49
|
import {
|
|
50
50
|
getCommandSubcommandNames,
|
|
51
51
|
getEffectiveSupportedModes
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-2I5ETR2G.js";
|
|
53
|
+
import "./chunk-BBVCA2GZ.js";
|
|
54
54
|
import "./chunk-AHKE26WU.js";
|
|
55
55
|
import "./chunk-R5WDYBMX.js";
|
|
56
56
|
import "./chunk-64WBFX5X.js";
|
|
57
57
|
import "./chunk-PLYNCSHX.js";
|
|
58
58
|
import {
|
|
59
59
|
startNonInteractiveOpenAILogHousekeeping
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-6AVPXLAG.js";
|
|
61
61
|
import "./chunk-UMIHM32I.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-D7MURDDC.js";
|
|
63
63
|
import "./chunk-XZ3MQL2U.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-4ZA2DNDT.js";
|
|
65
65
|
import "./chunk-XG36NMOI.js";
|
|
66
66
|
import "./chunk-7QM44EGU.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-DZPGLX7M.js";
|
|
68
|
+
import "./chunk-WOO572MR.js";
|
|
69
69
|
import "./chunk-K5SPVYI4.js";
|
|
70
70
|
import "./chunk-KD7GIK2D.js";
|
|
71
71
|
import {
|
|
72
72
|
computeCpuPercent
|
|
73
73
|
} from "./chunk-KHVAC55H.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-N4ANLNQG.js";
|
|
75
75
|
import "./chunk-LXUIOY3M.js";
|
|
76
76
|
import {
|
|
77
77
|
beginAcpBootstrapConfigProfiling,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
endAcpBootstrapConfigProfiling,
|
|
80
80
|
markAcpStartup
|
|
81
81
|
} from "./chunk-QCYRNA7B.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-VIXCJWEM.js";
|
|
83
83
|
import {
|
|
84
84
|
GENERATION_MAX_PROMPT_BYTES,
|
|
85
85
|
GENERATION_TIMEOUT_MS,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
shouldSuppressRememberErrorDetails,
|
|
101
101
|
workspaceMemoryFailureCode,
|
|
102
102
|
workspaceMemoryFailureDiagnostics
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-7QHVLAP5.js";
|
|
104
104
|
import {
|
|
105
105
|
BaseEmitter,
|
|
106
106
|
HistoryReplayer,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
hasFullSessionContext,
|
|
112
112
|
observeAcpToolResultProjection,
|
|
113
113
|
observeAcpToolResultWire
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-QFGGMNXV.js";
|
|
115
115
|
import "./chunk-LL7XM3LM.js";
|
|
116
116
|
import "./chunk-PJF3WRYZ.js";
|
|
117
117
|
import "./chunk-2CATNMFQ.js";
|
|
@@ -129,12 +129,12 @@ import {
|
|
|
129
129
|
buildPermissionSettings,
|
|
130
130
|
normalizePermissionRules,
|
|
131
131
|
readPermissionRuleSet
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-QDZTSZTF.js";
|
|
133
133
|
import {
|
|
134
134
|
MAX_AUDIO_BYTES,
|
|
135
135
|
sanitizeVoiceErrorMessage,
|
|
136
136
|
transcribeVoiceAudio
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-IAQGBZNZ.js";
|
|
138
138
|
import {
|
|
139
139
|
readVoiceModel
|
|
140
140
|
} from "./chunk-RYBAJ5II.js";
|
|
@@ -148,23 +148,23 @@ import {
|
|
|
148
148
|
} from "./chunk-R2CTAMNM.js";
|
|
149
149
|
import {
|
|
150
150
|
mapSkillConfigToStatus
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-26RB5MCN.js";
|
|
152
152
|
import "./chunk-W2R46PFD.js";
|
|
153
153
|
import {
|
|
154
154
|
buildScheduledTaskRunPrompt,
|
|
155
155
|
scheduledTaskRunSessionName,
|
|
156
156
|
scheduledTaskRunSourceId
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-EG7FZ4GT.js";
|
|
158
158
|
import {
|
|
159
159
|
normalizeSessionIdForLookup,
|
|
160
160
|
parseCallerSuppliedSessionId
|
|
161
161
|
} from "./chunk-KQCQCJBL.js";
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-6MRRD2YD.js";
|
|
163
|
+
import "./chunk-VZIZZYZ2.js";
|
|
164
164
|
import "./chunk-3XR24RBF.js";
|
|
165
165
|
import {
|
|
166
166
|
SCHEDULED_TASK_RUN_SOURCE_TYPE
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-K2JYJWEF.js";
|
|
168
168
|
import "./chunk-LPCPB2S5.js";
|
|
169
169
|
import "./chunk-LD2T7YET.js";
|
|
170
170
|
import "./chunk-KU7JLDL3.js";
|
|
@@ -214,7 +214,7 @@ import {
|
|
|
214
214
|
PROTOCOL_VERSION,
|
|
215
215
|
RequestError,
|
|
216
216
|
ndJsonStream2 as ndJsonStream
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-6QGQ2AFR.js";
|
|
218
218
|
import "./chunk-O7MSLRFZ.js";
|
|
219
219
|
import {
|
|
220
220
|
EXTERNAL_TOOL_GUARD_READY_META_KEY,
|
|
@@ -244,7 +244,7 @@ import {
|
|
|
244
244
|
getGptReasoningOverrideState,
|
|
245
245
|
isReasoningSelectionSupported,
|
|
246
246
|
parseReasoningSelection
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-KFJXCZWZ.js";
|
|
248
248
|
import {
|
|
249
249
|
ACP_PREFLIGHT_KINDS,
|
|
250
250
|
IDLE_HOOK_EVENTS,
|
|
@@ -252,8 +252,8 @@ import {
|
|
|
252
252
|
SERVE_STATUS_EXT_METHODS,
|
|
253
253
|
STATUS_SCHEMA_VERSION,
|
|
254
254
|
mapDomainErrorToErrorKind
|
|
255
|
-
} from "./chunk-
|
|
256
|
-
import "./chunk-
|
|
255
|
+
} from "./chunk-ZHYAWJRF.js";
|
|
256
|
+
import "./chunk-ZATS5TUZ.js";
|
|
257
257
|
import {
|
|
258
258
|
ACP_ROUTE_ID_PREFIX,
|
|
259
259
|
buildAcpModelOptions,
|
|
@@ -262,19 +262,19 @@ import {
|
|
|
262
262
|
parseAcpModelOption,
|
|
263
263
|
resolveAcpModelOption,
|
|
264
264
|
sanitizeProviderBaseUrl
|
|
265
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-F5TEGYB2.js";
|
|
266
266
|
import {
|
|
267
267
|
resolveSkillSettings
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-UZLXX76B.js";
|
|
269
269
|
import {
|
|
270
270
|
assembleMcpServers,
|
|
271
271
|
loadMcpApprovals
|
|
272
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-HVELN6DV.js";
|
|
273
273
|
import "./chunk-PHTNY4JK.js";
|
|
274
274
|
import "./chunk-BI5UOCPD.js";
|
|
275
275
|
import {
|
|
276
276
|
createLoadedSettingsAdapter
|
|
277
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-WGHVI55A.js";
|
|
278
278
|
import {
|
|
279
279
|
deleteNestedPropertySafe,
|
|
280
280
|
getOutputLanguageFilePath,
|
|
@@ -286,9 +286,9 @@ import {
|
|
|
286
286
|
settingExistsInScope,
|
|
287
287
|
updateOutputLanguageFile,
|
|
288
288
|
writeOutputLanguageAndRegisterPath
|
|
289
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-Y3KJFSGP.js";
|
|
290
290
|
import "./chunk-EDRKBK4B.js";
|
|
291
|
-
import "./chunk-
|
|
291
|
+
import "./chunk-3ILV7TTQ.js";
|
|
292
292
|
import "./chunk-2JJLDP4A.js";
|
|
293
293
|
import {
|
|
294
294
|
getCurrentLanguage,
|
|
@@ -301,14 +301,14 @@ import {
|
|
|
301
301
|
findEnvFiles,
|
|
302
302
|
preResolveHomeEnvOverrides,
|
|
303
303
|
reloadEnvironment
|
|
304
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-UP6Q42H2.js";
|
|
305
305
|
import {
|
|
306
306
|
ENV_ACP_REPEATED_TOOL_FAILURE_GUARD,
|
|
307
307
|
O1CODE_SERVE_ENV
|
|
308
308
|
} from "./chunk-7N5GDAXK.js";
|
|
309
309
|
import "./chunk-JVJT5UI7.js";
|
|
310
310
|
import "./chunk-FMWE3YMM.js";
|
|
311
|
-
import "./chunk-
|
|
311
|
+
import "./chunk-RPOVX6MQ.js";
|
|
312
312
|
import "./chunk-HQ5DN5W7.js";
|
|
313
313
|
import "./chunk-FRITN2AG.js";
|
|
314
314
|
import {
|
|
@@ -318,7 +318,7 @@ import {
|
|
|
318
318
|
import {
|
|
319
319
|
isWorkspaceTrusted,
|
|
320
320
|
loadTrustedFolders
|
|
321
|
-
} from "./chunk-
|
|
321
|
+
} from "./chunk-KRCRVCN5.js";
|
|
322
322
|
import "./chunk-BHXBXELA.js";
|
|
323
323
|
import "./chunk-MXCWSDSC.js";
|
|
324
324
|
import "./chunk-YCZIOHKD.js";
|
|
@@ -346,7 +346,7 @@ import {
|
|
|
346
346
|
readManyFiles,
|
|
347
347
|
runManagedRememberByAgent,
|
|
348
348
|
subagentGenerator
|
|
349
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-AI2PV62X.js";
|
|
350
350
|
import {
|
|
351
351
|
buildToolWriteOriginMeta
|
|
352
352
|
} from "./chunk-MYMATZAY.js";
|
|
@@ -355,17 +355,17 @@ import "./chunk-CJ7JDQEG.js";
|
|
|
355
355
|
import {
|
|
356
356
|
CreateSubSessionTool
|
|
357
357
|
} from "./chunk-YO3SEHXM.js";
|
|
358
|
-
import "./chunk-
|
|
359
|
-
import "./chunk-
|
|
358
|
+
import "./chunk-CG2QM2MI.js";
|
|
359
|
+
import "./chunk-FQO3QDB5.js";
|
|
360
360
|
import {
|
|
361
361
|
restoreWorktreeContext
|
|
362
|
-
} from "./chunk-
|
|
363
|
-
import "./chunk-
|
|
364
|
-
import "./chunk-
|
|
362
|
+
} from "./chunk-6TWJYLJE.js";
|
|
363
|
+
import "./chunk-VA7BGQ2G.js";
|
|
364
|
+
import "./chunk-M2EBVYXC.js";
|
|
365
365
|
import "./chunk-4JDEAIW5.js";
|
|
366
366
|
import "./chunk-TIYFDYIF.js";
|
|
367
|
-
import "./chunk-
|
|
368
|
-
import "./chunk-
|
|
367
|
+
import "./chunk-GNEHVPRR.js";
|
|
368
|
+
import "./chunk-UT656E5I.js";
|
|
369
369
|
import "./chunk-NWCDFCWK.js";
|
|
370
370
|
import "./chunk-ZMZRVR62.js";
|
|
371
371
|
import {
|
|
@@ -380,19 +380,19 @@ import {
|
|
|
380
380
|
readWorkflowSnapshot,
|
|
381
381
|
snapshotArgsUnavailable,
|
|
382
382
|
toSnapshot
|
|
383
|
-
} from "./chunk-
|
|
384
|
-
import "./chunk-
|
|
385
|
-
import "./chunk-
|
|
386
|
-
import "./chunk-
|
|
383
|
+
} from "./chunk-FVYOYI7Y.js";
|
|
384
|
+
import "./chunk-OMJU4YIQ.js";
|
|
385
|
+
import "./chunk-IZHKBFYA.js";
|
|
386
|
+
import "./chunk-GQ7GDOJ3.js";
|
|
387
387
|
import "./chunk-F3FKDGHN.js";
|
|
388
|
-
import "./chunk-
|
|
388
|
+
import "./chunk-MG64NR57.js";
|
|
389
389
|
import "./chunk-UBWL27PO.js";
|
|
390
390
|
import "./chunk-BWRP5ZMP.js";
|
|
391
391
|
import "./chunk-DM6W2QYB.js";
|
|
392
392
|
import "./chunk-UAACCQBD.js";
|
|
393
393
|
import "./chunk-GVWQRVLV.js";
|
|
394
394
|
import "./chunk-2QYMJSSC.js";
|
|
395
|
-
import "./chunk-
|
|
395
|
+
import "./chunk-SFHAMYFI.js";
|
|
396
396
|
import "./chunk-AVCUVYSA.js";
|
|
397
397
|
import {
|
|
398
398
|
APPROVAL_MODE_INFO,
|
|
@@ -529,7 +529,7 @@ import {
|
|
|
529
529
|
updateSetting,
|
|
530
530
|
validatePlanModeShellApproval,
|
|
531
531
|
validatePlanModeShellContext
|
|
532
|
-
} from "./chunk-
|
|
532
|
+
} from "./chunk-S7EZBSGP.js";
|
|
533
533
|
import "./chunk-FNALBCC7.js";
|
|
534
534
|
import "./chunk-BZOAEOYF.js";
|
|
535
535
|
import "./chunk-BIDB75DA.js";
|
|
@@ -537,7 +537,6 @@ import {
|
|
|
537
537
|
shellResultText
|
|
538
538
|
} from "./chunk-GYGA6V6B.js";
|
|
539
539
|
import "./chunk-EYWIFUPJ.js";
|
|
540
|
-
import "./chunk-DJOP5LOE.js";
|
|
541
540
|
import "./chunk-GNUA6XPQ.js";
|
|
542
541
|
import "./chunk-Y37FNMS7.js";
|
|
543
542
|
import {
|
|
@@ -574,9 +573,10 @@ import {
|
|
|
574
573
|
qualifySkillName,
|
|
575
574
|
registerAcpEventLoopLagGauge,
|
|
576
575
|
startEventLoopLagMonitor
|
|
577
|
-
} from "./chunk-
|
|
578
|
-
import "./chunk-
|
|
579
|
-
import "./chunk-
|
|
576
|
+
} from "./chunk-WOZVQEFV.js";
|
|
577
|
+
import "./chunk-35RKSP4A.js";
|
|
578
|
+
import "./chunk-CMZHL55Y.js";
|
|
579
|
+
import "./chunk-DJOP5LOE.js";
|
|
580
580
|
import {
|
|
581
581
|
registerSession
|
|
582
582
|
} from "./chunk-ZZVIBILR.js";
|
|
@@ -584,43 +584,43 @@ import "./chunk-OI7IVUEO.js";
|
|
|
584
584
|
import {
|
|
585
585
|
parsePositiveIntegerEnv
|
|
586
586
|
} from "./chunk-DS3COGEF.js";
|
|
587
|
-
import "./chunk-
|
|
587
|
+
import "./chunk-EWJD7EIC.js";
|
|
588
588
|
import "./chunk-OBPGYMIV.js";
|
|
589
589
|
import "./chunk-RS2LNQEC.js";
|
|
590
590
|
import "./chunk-SYMKXR42.js";
|
|
591
|
-
import "./chunk-
|
|
591
|
+
import "./chunk-LERXWKRT.js";
|
|
592
592
|
import {
|
|
593
593
|
SessionSourceError,
|
|
594
594
|
SessionSourceService
|
|
595
595
|
} from "./chunk-CDYMT4OZ.js";
|
|
596
596
|
import "./chunk-TC7UXK4M.js";
|
|
597
|
-
import "./chunk-
|
|
597
|
+
import "./chunk-FZUEC7ES.js";
|
|
598
598
|
import "./chunk-WU3R2YUE.js";
|
|
599
599
|
import "./chunk-M7AWQAB7.js";
|
|
600
|
-
import "./chunk-
|
|
600
|
+
import "./chunk-V23Q4GBY.js";
|
|
601
601
|
import "./chunk-Z2IHOXIK.js";
|
|
602
602
|
import {
|
|
603
603
|
promptIdContext,
|
|
604
604
|
todoWorkChainContext
|
|
605
605
|
} from "./chunk-5JTXPGNQ.js";
|
|
606
606
|
import "./chunk-5QSLFAMR.js";
|
|
607
|
-
import "./chunk-
|
|
607
|
+
import "./chunk-XKOGHPWS.js";
|
|
608
608
|
import "./chunk-HPQNI3OQ.js";
|
|
609
|
-
import "./chunk-
|
|
610
|
-
import "./chunk-
|
|
611
|
-
import "./chunk-
|
|
609
|
+
import "./chunk-GMR3LAWE.js";
|
|
610
|
+
import "./chunk-NVNIFGY3.js";
|
|
611
|
+
import "./chunk-QGVUKQPI.js";
|
|
612
612
|
import {
|
|
613
613
|
evaluateMediaPolicyToolCall
|
|
614
614
|
} from "./chunk-CI2ZHR5C.js";
|
|
615
|
-
import "./chunk-
|
|
615
|
+
import "./chunk-L37WUEXT.js";
|
|
616
616
|
import "./chunk-ZFZB6WC5.js";
|
|
617
617
|
import "./chunk-4J6KRUQB.js";
|
|
618
618
|
import {
|
|
619
619
|
DEFERRED_TOOL_CALL_CANCELLATION_PREFIX,
|
|
620
620
|
DEFERRED_TOOL_CALL_REFUSAL_PREFIX,
|
|
621
621
|
resolveDeferredToolCall
|
|
622
|
-
} from "./chunk-
|
|
623
|
-
import "./chunk-
|
|
622
|
+
} from "./chunk-TCME6IG6.js";
|
|
623
|
+
import "./chunk-NGPEFWU4.js";
|
|
624
624
|
import {
|
|
625
625
|
APPROVAL_MODES
|
|
626
626
|
} from "./chunk-KQAVEXYD.js";
|
|
@@ -634,20 +634,21 @@ import {
|
|
|
634
634
|
import "./chunk-IO32UWHY.js";
|
|
635
635
|
import "./chunk-OSMXNPJP.js";
|
|
636
636
|
import "./chunk-HX6AICAX.js";
|
|
637
|
-
import "./chunk-
|
|
637
|
+
import "./chunk-3QFZFTMB.js";
|
|
638
638
|
import {
|
|
639
639
|
runOutsideAgentContext,
|
|
640
640
|
runWithRuntimeContentGenerator
|
|
641
|
-
} from "./chunk-
|
|
641
|
+
} from "./chunk-V75J4GJ2.js";
|
|
642
642
|
import "./chunk-FOZEB37P.js";
|
|
643
643
|
import "./chunk-BQAZCJF7.js";
|
|
644
644
|
import {
|
|
645
645
|
getToolCallPreparations
|
|
646
646
|
} from "./chunk-65B6QBMP.js";
|
|
647
|
-
import "./chunk-
|
|
647
|
+
import "./chunk-WUKHAI4J.js";
|
|
648
648
|
import "./chunk-O4IWNFDK.js";
|
|
649
|
+
import "./chunk-WCRZJ5HN.js";
|
|
649
650
|
import "./chunk-NGE3GHMN.js";
|
|
650
|
-
import "./chunk-
|
|
651
|
+
import "./chunk-X6T6YORO.js";
|
|
651
652
|
import "./chunk-WMJL2XAM.js";
|
|
652
653
|
import "./chunk-CP63SY5N.js";
|
|
653
654
|
import {
|
|
@@ -667,7 +668,7 @@ import {
|
|
|
667
668
|
resolveOwnsModel,
|
|
668
669
|
resolveReasoningCapabilities,
|
|
669
670
|
tryResolveModelProtocol
|
|
670
|
-
} from "./chunk-
|
|
671
|
+
} from "./chunk-I2XHQTBX.js";
|
|
671
672
|
import {
|
|
672
673
|
addDaemonRequestAttribute,
|
|
673
674
|
extractDaemonTraceContext,
|
|
@@ -697,12 +698,12 @@ import {
|
|
|
697
698
|
shouldRunVisionBridge,
|
|
698
699
|
splitImageParts,
|
|
699
700
|
uiTelemetryService
|
|
700
|
-
} from "./chunk-
|
|
701
|
+
} from "./chunk-FXPZKL6H.js";
|
|
701
702
|
import "./chunk-242JUBPM.js";
|
|
702
703
|
import {
|
|
703
704
|
getAllMemoryFilenames,
|
|
704
705
|
getSpecificMimeType
|
|
705
|
-
} from "./chunk-
|
|
706
|
+
} from "./chunk-H5L5E5NI.js";
|
|
706
707
|
import {
|
|
707
708
|
getAutoMemoryRoot,
|
|
708
709
|
getUserAutoMemoryRoot
|
|
@@ -716,7 +717,7 @@ import {
|
|
|
716
717
|
import {
|
|
717
718
|
runSideQuery
|
|
718
719
|
} from "./chunk-KV5QCRFB.js";
|
|
719
|
-
import "./chunk-
|
|
720
|
+
import "./chunk-V4XETRAG.js";
|
|
720
721
|
import {
|
|
721
722
|
INVOCATION_CONTEXT_META_KEY,
|
|
722
723
|
PRIVATE_ACP_CAPABILITY_ENV,
|
|
@@ -742,7 +743,7 @@ import {
|
|
|
742
743
|
parseModelReasoningCapabilities,
|
|
743
744
|
preloadContentGenerator,
|
|
744
745
|
tokenLimit
|
|
745
|
-
} from "./chunk-
|
|
746
|
+
} from "./chunk-HOVKZNOX.js";
|
|
746
747
|
import "./chunk-PLWOHBC7.js";
|
|
747
748
|
import "./chunk-LEXKU5FI.js";
|
|
748
749
|
import "./chunk-IQEM74QW.js";
|
|
@@ -751,7 +752,7 @@ import {
|
|
|
751
752
|
FORK_SUBAGENT_TYPE,
|
|
752
753
|
isSystemReminderContent,
|
|
753
754
|
wrapSystemReminder
|
|
754
|
-
} from "./chunk-
|
|
755
|
+
} from "./chunk-ZQBNP2ZQ.js";
|
|
755
756
|
import "./chunk-YCTMVTDP.js";
|
|
756
757
|
import "./chunk-JSFADKTB.js";
|
|
757
758
|
import "./chunk-OHAUN3Q5.js";
|
|
@@ -796,12 +797,12 @@ import {
|
|
|
796
797
|
import "./chunk-EPSJPAHV.js";
|
|
797
798
|
import "./chunk-HBBBH6YA.js";
|
|
798
799
|
import "./chunk-HHIX6THS.js";
|
|
799
|
-
import "./chunk-
|
|
800
|
+
import "./chunk-MNGG2WBY.js";
|
|
800
801
|
import "./chunk-LPFK3TO2.js";
|
|
801
802
|
import {
|
|
802
803
|
registerCleanup,
|
|
803
804
|
runExitCleanup
|
|
804
|
-
} from "./chunk-
|
|
805
|
+
} from "./chunk-2RYXWLLJ.js";
|
|
805
806
|
import {
|
|
806
807
|
writeStderrLine,
|
|
807
808
|
writeStderrLineSafe
|
|
@@ -1284,6 +1285,51 @@ function prefixMidTurnUserMessageParts(parts, displayText) {
|
|
|
1284
1285
|
}
|
|
1285
1286
|
__name(prefixMidTurnUserMessageParts, "prefixMidTurnUserMessageParts");
|
|
1286
1287
|
|
|
1288
|
+
// packages/cli/src/acp-integration/session-approval-mode-persistence.ts
|
|
1289
|
+
init_esbuild_shims();
|
|
1290
|
+
var debugLogger3 = createDebugLogger("SESSION_APPROVAL_MODE");
|
|
1291
|
+
function asApprovalMode(value) {
|
|
1292
|
+
return typeof value === "string" && APPROVAL_MODES.includes(value) ? value : void 0;
|
|
1293
|
+
}
|
|
1294
|
+
__name(asApprovalMode, "asApprovalMode");
|
|
1295
|
+
async function recordDaemonSessionApprovalModeFromConfig(config) {
|
|
1296
|
+
const recording = config.getChatRecordingService?.();
|
|
1297
|
+
if (!recording?.recordSessionApprovalMode) return;
|
|
1298
|
+
const mode = config.getApprovalMode();
|
|
1299
|
+
const planExecutionMode = mode === "plan" /* PLAN */ ? config.getPlanExecutionMode?.() : void 0;
|
|
1300
|
+
const payload = {
|
|
1301
|
+
mode,
|
|
1302
|
+
...planExecutionMode && planExecutionMode !== "plan" /* PLAN */ ? { planExecutionMode } : {}
|
|
1303
|
+
};
|
|
1304
|
+
try {
|
|
1305
|
+
await recording.recordSessionApprovalMode(payload);
|
|
1306
|
+
} catch (error) {
|
|
1307
|
+
debugLogger3.debug("recordSessionApprovalMode failed", error);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
__name(recordDaemonSessionApprovalModeFromConfig, "recordDaemonSessionApprovalModeFromConfig");
|
|
1311
|
+
function applyRestoredSessionApprovalMode(config, projection) {
|
|
1312
|
+
const recorded = projection?.runtime.recording.sessionApprovalMode;
|
|
1313
|
+
const mode = asApprovalMode(recorded?.mode);
|
|
1314
|
+
if (!mode) return;
|
|
1315
|
+
const planExecutionMode = asApprovalMode(recorded?.planExecutionMode);
|
|
1316
|
+
if (config.getApprovalMode() === mode && (mode !== "plan" /* PLAN */ || planExecutionMode === void 0 || config.getPlanExecutionMode?.() === planExecutionMode)) {
|
|
1317
|
+
return;
|
|
1318
|
+
}
|
|
1319
|
+
try {
|
|
1320
|
+
if (mode === "plan" /* PLAN */ && planExecutionMode !== void 0 && planExecutionMode !== "plan" /* PLAN */) {
|
|
1321
|
+
config.setPlanMode(true, planExecutionMode);
|
|
1322
|
+
} else {
|
|
1323
|
+
config.setApprovalMode(mode);
|
|
1324
|
+
}
|
|
1325
|
+
} catch (error) {
|
|
1326
|
+
debugLogger3.warn(
|
|
1327
|
+
`restore session approval mode (${mode}) skipped: ${error instanceof Error ? error.message : String(error)}`
|
|
1328
|
+
);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
__name(applyRestoredSessionApprovalMode, "applyRestoredSessionApprovalMode");
|
|
1332
|
+
|
|
1287
1333
|
// packages/cli/src/acp-integration/session/tool-call-preparation-tracker.ts
|
|
1288
1334
|
init_esbuild_shims();
|
|
1289
1335
|
var ToolCallPreparationTracker = class {
|
|
@@ -1941,7 +1987,7 @@ function toPermissionOptions(confirmation, forceHideAlwaysAllow = false, persist
|
|
|
1941
1987
|
__name(toPermissionOptions, "toPermissionOptions");
|
|
1942
1988
|
|
|
1943
1989
|
// packages/cli/src/acp-integration/session/SubAgentTracker.ts
|
|
1944
|
-
var
|
|
1990
|
+
var debugLogger4 = createDebugLogger("ACP_SUBAGENT_TRACKER");
|
|
1945
1991
|
var SubAgentTracker = class {
|
|
1946
1992
|
constructor(ctx, client, parentToolCallId, subagentType, onPermissionCancel, permissionRequester = (params, signal) => requestPermissionWithAbort(this.client, params, signal), permissionPersistencePolicy) {
|
|
1947
1993
|
this.ctx = ctx;
|
|
@@ -2004,7 +2050,7 @@ var SubAgentTracker = class {
|
|
|
2004
2050
|
try {
|
|
2005
2051
|
invocation = tool.build(event.args);
|
|
2006
2052
|
} catch (e) {
|
|
2007
|
-
|
|
2053
|
+
debugLogger4.warn(`Failed to build subagent tool ${event.name}:`, e);
|
|
2008
2054
|
}
|
|
2009
2055
|
}
|
|
2010
2056
|
this.toolStates.set(event.callId, {
|
|
@@ -2019,7 +2065,7 @@ var SubAgentTracker = class {
|
|
|
2019
2065
|
progressMessage,
|
|
2020
2066
|
event.name
|
|
2021
2067
|
).catch((error) => {
|
|
2022
|
-
|
|
2068
|
+
debugLogger4.debug(
|
|
2023
2069
|
"Failed to emit subagent progress update for tool call:",
|
|
2024
2070
|
error
|
|
2025
2071
|
);
|
|
@@ -2030,7 +2076,7 @@ var SubAgentTracker = class {
|
|
|
2030
2076
|
args: event.args,
|
|
2031
2077
|
subagentMeta: this.subagentMeta
|
|
2032
2078
|
}).catch((error) => {
|
|
2033
|
-
|
|
2079
|
+
debugLogger4.debug(
|
|
2034
2080
|
`Failed to emit subagent tool start for ${event.name}:`,
|
|
2035
2081
|
error
|
|
2036
2082
|
);
|
|
@@ -2055,7 +2101,7 @@ var SubAgentTracker = class {
|
|
|
2055
2101
|
args: state?.args,
|
|
2056
2102
|
subagentMeta: this.subagentMeta
|
|
2057
2103
|
}).catch((error) => {
|
|
2058
|
-
|
|
2104
|
+
debugLogger4.debug(
|
|
2059
2105
|
`Failed to emit subagent tool result for ${event.name}:`,
|
|
2060
2106
|
error
|
|
2061
2107
|
);
|
|
@@ -2079,7 +2125,7 @@ var SubAgentTracker = class {
|
|
|
2079
2125
|
`Waiting for permission: ${state?.tool?.displayName ?? event.name}`,
|
|
2080
2126
|
event.name
|
|
2081
2127
|
).catch((error) => {
|
|
2082
|
-
|
|
2128
|
+
debugLogger4.debug(
|
|
2083
2129
|
"Failed to emit subagent progress update for approval:",
|
|
2084
2130
|
error
|
|
2085
2131
|
);
|
|
@@ -2134,7 +2180,7 @@ var SubAgentTracker = class {
|
|
|
2134
2180
|
this.onPermissionCancel?.();
|
|
2135
2181
|
}
|
|
2136
2182
|
} catch (error) {
|
|
2137
|
-
|
|
2183
|
+
debugLogger4.error(
|
|
2138
2184
|
`Permission request failed for subagent tool ${event.name}:`,
|
|
2139
2185
|
error
|
|
2140
2186
|
);
|
|
@@ -2144,7 +2190,7 @@ var SubAgentTracker = class {
|
|
|
2144
2190
|
try {
|
|
2145
2191
|
await event.respond("cancel" /* Cancel */);
|
|
2146
2192
|
} catch (respondError) {
|
|
2147
|
-
|
|
2193
|
+
debugLogger4.error(
|
|
2148
2194
|
`Failed to cancel subagent tool ${event.name} after permission request failure:`,
|
|
2149
2195
|
respondError
|
|
2150
2196
|
);
|
|
@@ -2160,7 +2206,7 @@ var SubAgentTracker = class {
|
|
|
2160
2206
|
const event = args[0];
|
|
2161
2207
|
if (abortSignal.aborted) return;
|
|
2162
2208
|
void this.messageEmitter.emitUsageMetadata(event.usage, "", event.durationMs, this.subagentMeta).catch((error) => {
|
|
2163
|
-
|
|
2209
|
+
debugLogger4.debug("Failed to emit subagent usage metadata:", error);
|
|
2164
2210
|
});
|
|
2165
2211
|
};
|
|
2166
2212
|
}
|
|
@@ -2179,7 +2225,7 @@ var SubAgentTracker = class {
|
|
|
2179
2225
|
void 0,
|
|
2180
2226
|
this.subagentMeta
|
|
2181
2227
|
).catch((error) => {
|
|
2182
|
-
|
|
2228
|
+
debugLogger4.debug("Failed to emit subagent stream text:", error);
|
|
2183
2229
|
});
|
|
2184
2230
|
};
|
|
2185
2231
|
}
|
|
@@ -2242,7 +2288,7 @@ var TurnBuffer = class {
|
|
|
2242
2288
|
init_esbuild_shims();
|
|
2243
2289
|
import { readFileSync, existsSync } from "node:fs";
|
|
2244
2290
|
import { resolve as resolve2 } from "node:path";
|
|
2245
|
-
var
|
|
2291
|
+
var debugLogger5 = createDebugLogger("MESSAGE_REWRITER");
|
|
2246
2292
|
var DEFAULT_REWRITE_PROMPT = `You are an assistant that rewrites raw coding-agent output into concise, user-friendly progress updates.
|
|
2247
2293
|
|
|
2248
2294
|
The agent is a software engineering assistant that reads files, writes code, runs commands, and uses tools. Its raw output mixes internal reasoning with user-facing information. Your job: extract what the user cares about, drop what they don't.
|
|
@@ -2270,18 +2316,18 @@ var LlmRewriter = class {
|
|
|
2270
2316
|
if (rewriteConfig.promptFile) {
|
|
2271
2317
|
const filePath = resolve2(rewriteConfig.promptFile);
|
|
2272
2318
|
if (!existsSync(filePath)) {
|
|
2273
|
-
|
|
2319
|
+
debugLogger5.warn(
|
|
2274
2320
|
`Rewrite prompt file not found: ${filePath}, using default`
|
|
2275
2321
|
);
|
|
2276
2322
|
this.prompt = DEFAULT_REWRITE_PROMPT;
|
|
2277
2323
|
} else {
|
|
2278
2324
|
try {
|
|
2279
2325
|
this.prompt = readFileSync(filePath, "utf-8").trim();
|
|
2280
|
-
|
|
2326
|
+
debugLogger5.info(
|
|
2281
2327
|
`Loaded rewrite prompt from file: ${filePath} (${this.prompt.length} chars)`
|
|
2282
2328
|
);
|
|
2283
2329
|
} catch (error) {
|
|
2284
|
-
|
|
2330
|
+
debugLogger5.warn(
|
|
2285
2331
|
`Rewrite prompt file could not be read: ${filePath} (${error instanceof Error ? error.message : String(error)}), using default`
|
|
2286
2332
|
);
|
|
2287
2333
|
this.prompt = DEFAULT_REWRITE_PROMPT;
|
|
@@ -2319,7 +2365,7 @@ var LlmRewriter = class {
|
|
|
2319
2365
|
const inputText = inputParts.join("\n\n");
|
|
2320
2366
|
if (!inputText.trim()) return null;
|
|
2321
2367
|
if (inputText.length < 10) return null;
|
|
2322
|
-
|
|
2368
|
+
debugLogger5.info(
|
|
2323
2369
|
`[REWRITE INPUT] system_prompt_len=${this.prompt.length} input_len=${inputText.length} context_turns=${this.outputHistory.length}
|
|
2324
2370
|
--- INPUT TEXT ---
|
|
2325
2371
|
${inputText}
|
|
@@ -2348,10 +2394,10 @@ ${inputText}
|
|
|
2348
2394
|
});
|
|
2349
2395
|
const rewritten = result.text;
|
|
2350
2396
|
if (!rewritten || rewritten.length < 5) {
|
|
2351
|
-
|
|
2397
|
+
debugLogger5.info(`[REWRITE OUTPUT] empty or too short, skipping`);
|
|
2352
2398
|
return null;
|
|
2353
2399
|
}
|
|
2354
|
-
|
|
2400
|
+
debugLogger5.info(
|
|
2355
2401
|
`[REWRITE OUTPUT] len=${rewritten.length}
|
|
2356
2402
|
--- OUTPUT ---
|
|
2357
2403
|
${rewritten}
|
|
@@ -2365,7 +2411,7 @@ ${rewritten}
|
|
|
2365
2411
|
}
|
|
2366
2412
|
return rewritten;
|
|
2367
2413
|
} catch (error) {
|
|
2368
|
-
|
|
2414
|
+
debugLogger5.warn(
|
|
2369
2415
|
`LLM rewrite failed, skipping: ${error instanceof Error ? error.message : String(error)}`
|
|
2370
2416
|
);
|
|
2371
2417
|
return null;
|
|
@@ -2374,7 +2420,7 @@ ${rewritten}
|
|
|
2374
2420
|
};
|
|
2375
2421
|
|
|
2376
2422
|
// packages/cli/src/acp-integration/session/rewrite/MessageRewriteMiddleware.ts
|
|
2377
|
-
var
|
|
2423
|
+
var debugLogger6 = createDebugLogger("MESSAGE_REWRITE");
|
|
2378
2424
|
var DEFAULT_REWRITE_TIMEOUT_MS = 3e4;
|
|
2379
2425
|
var REWRITE_META_EXCLUDED_KEYS = /* @__PURE__ */ new Set([]);
|
|
2380
2426
|
var MessageRewriteMiddleware = class {
|
|
@@ -2458,10 +2504,10 @@ var MessageRewriteMiddleware = class {
|
|
|
2458
2504
|
try {
|
|
2459
2505
|
const rewritten = await this.rewriter.rewrite(content, rewriteSignal);
|
|
2460
2506
|
if (!rewritten) {
|
|
2461
|
-
|
|
2507
|
+
debugLogger6.info(`Turn ${turnIdx}: no rewrite output`);
|
|
2462
2508
|
return;
|
|
2463
2509
|
}
|
|
2464
|
-
|
|
2510
|
+
debugLogger6.info(
|
|
2465
2511
|
`Turn ${turnIdx}: rewritten ${rewritten.length} chars`
|
|
2466
2512
|
);
|
|
2467
2513
|
await this.sendUpdate({
|
|
@@ -2474,7 +2520,7 @@ var MessageRewriteMiddleware = class {
|
|
|
2474
2520
|
}
|
|
2475
2521
|
});
|
|
2476
2522
|
} catch (error) {
|
|
2477
|
-
|
|
2523
|
+
debugLogger6.warn(
|
|
2478
2524
|
`Turn ${turnIdx}: rewrite failed: ${error instanceof Error ? error.message : String(error)}`
|
|
2479
2525
|
);
|
|
2480
2526
|
}
|
|
@@ -2892,7 +2938,7 @@ function reduceRepeatedToolFailureGuard(state, input) {
|
|
|
2892
2938
|
__name(reduceRepeatedToolFailureGuard, "reduceRepeatedToolFailureGuard");
|
|
2893
2939
|
|
|
2894
2940
|
// packages/cli/src/acp-integration/session/Session.ts
|
|
2895
|
-
var
|
|
2941
|
+
var debugLogger7 = createDebugLogger("SESSION");
|
|
2896
2942
|
var MAX_RETAINED_SESSION_ROUTE_COUNTS = 8;
|
|
2897
2943
|
var USER_CANCEL_ABORT_REASON = "o1-code:user-cancel";
|
|
2898
2944
|
var NEW_PROMPT_ABORT_REASON = "o1-code:new-prompt";
|
|
@@ -2954,14 +3000,17 @@ function isTodoStopGuardPromptText(text) {
|
|
|
2954
3000
|
}
|
|
2955
3001
|
__name(isTodoStopGuardPromptText, "isTodoStopGuardPromptText");
|
|
2956
3002
|
var ACP_API_USER_PROMPT_OPTIONS = {
|
|
2957
|
-
excludeTextPart: isTodoStopGuardPromptText
|
|
3003
|
+
excludeTextPart: isTodoStopGuardPromptText,
|
|
3004
|
+
// A delivered background-notification turn never produced a client-visible
|
|
3005
|
+
// turn, so counting it would shift every rewind ordinal after it.
|
|
3006
|
+
excludeTaskNotifications: true
|
|
2958
3007
|
};
|
|
2959
3008
|
async function finalizeToolCallPreparations(tracker, includeResolved, streamName) {
|
|
2960
3009
|
try {
|
|
2961
3010
|
await tracker.discard(includeResolved);
|
|
2962
3011
|
} catch (error) {
|
|
2963
3012
|
const message = error instanceof Error ? error.message : String(error);
|
|
2964
|
-
|
|
3013
|
+
debugLogger7.warn(
|
|
2965
3014
|
`Failed to discard tool preparations for ${streamName}; continuing stream: ${message}`
|
|
2966
3015
|
);
|
|
2967
3016
|
}
|
|
@@ -3108,7 +3157,7 @@ function recordDaemonLoopDetected(config, promptId, loopType, message, loopState
|
|
|
3108
3157
|
if (!loopState.loopDetected) {
|
|
3109
3158
|
loopState.loopDetected = true;
|
|
3110
3159
|
loopState.loopType = loopType;
|
|
3111
|
-
|
|
3160
|
+
debugLogger7.warn(message);
|
|
3112
3161
|
try {
|
|
3113
3162
|
logLoopDetected(
|
|
3114
3163
|
config,
|
|
@@ -3116,7 +3165,7 @@ function recordDaemonLoopDetected(config, promptId, loopType, message, loopState
|
|
|
3116
3165
|
options
|
|
3117
3166
|
);
|
|
3118
3167
|
} catch (error) {
|
|
3119
|
-
|
|
3168
|
+
debugLogger7.debug(
|
|
3120
3169
|
"[Session] Failed to record loop detection telemetry",
|
|
3121
3170
|
error
|
|
3122
3171
|
);
|
|
@@ -3232,7 +3281,7 @@ function isContentBlock(value) {
|
|
|
3232
3281
|
case "resource":
|
|
3233
3282
|
return isEmbeddedResourceResource(value["resource"]);
|
|
3234
3283
|
default:
|
|
3235
|
-
|
|
3284
|
+
debugLogger7.warn(`Unknown ContentBlock type: ${value["type"]}`);
|
|
3236
3285
|
return false;
|
|
3237
3286
|
}
|
|
3238
3287
|
}
|
|
@@ -3348,7 +3397,7 @@ ${resource.text}`;
|
|
|
3348
3397
|
__name(stripReferencedAttachmentDataParts, "stripReferencedAttachmentDataParts");
|
|
3349
3398
|
function capMidTurnDrainItems(items, fieldName) {
|
|
3350
3399
|
if (items.length <= MAX_MID_TURN_DRAIN_ITEMS) return items;
|
|
3351
|
-
|
|
3400
|
+
debugLogger7.warn(
|
|
3352
3401
|
`Mid-turn drain response had ${items.length} ${fieldName}; processing first ${MAX_MID_TURN_DRAIN_ITEMS}`
|
|
3353
3402
|
);
|
|
3354
3403
|
return items.slice(0, MAX_MID_TURN_DRAIN_ITEMS);
|
|
@@ -3363,7 +3412,7 @@ function getMidTurnItemDisplayTextForLog(displayText) {
|
|
|
3363
3412
|
__name(getMidTurnItemDisplayTextForLog, "getMidTurnItemDisplayTextForLog");
|
|
3364
3413
|
function getValidMidTurnContentBlocks(content, displayText) {
|
|
3365
3414
|
if (!Array.isArray(content)) {
|
|
3366
|
-
|
|
3415
|
+
debugLogger7.warn(
|
|
3367
3416
|
`Dropped invalid mid-turn item: ${getMidTurnItemDisplayTextForLog(
|
|
3368
3417
|
displayText
|
|
3369
3418
|
)}`
|
|
@@ -3373,7 +3422,7 @@ function getValidMidTurnContentBlocks(content, displayText) {
|
|
|
3373
3422
|
const validBlocks = content.filter(isContentBlock);
|
|
3374
3423
|
const invalidBlockCount = content.length - validBlocks.length;
|
|
3375
3424
|
if (invalidBlockCount > 0) {
|
|
3376
|
-
|
|
3425
|
+
debugLogger7.warn(
|
|
3377
3426
|
`Dropped ${invalidBlockCount} invalid mid-turn content block(s): ${getMidTurnItemDisplayTextForLog(
|
|
3378
3427
|
displayText
|
|
3379
3428
|
)}`
|
|
@@ -3431,7 +3480,7 @@ function parseMidTurnDrainResponse(response) {
|
|
|
3431
3480
|
);
|
|
3432
3481
|
}
|
|
3433
3482
|
if (!Array.isArray(response["messages"])) {
|
|
3434
|
-
|
|
3483
|
+
debugLogger7.warn(
|
|
3435
3484
|
`Mid-turn drain response had no recognized 'items' or 'messages' field; keys: ${Object.keys(
|
|
3436
3485
|
response
|
|
3437
3486
|
).join(", ")}`
|
|
@@ -3566,7 +3615,7 @@ async function fireSessionPermissionDeniedForAutoMode(config, decision, outcome,
|
|
|
3566
3615
|
callId
|
|
3567
3616
|
);
|
|
3568
3617
|
} catch (hookError) {
|
|
3569
|
-
|
|
3618
|
+
debugLogger7.warn(
|
|
3570
3619
|
`PermissionDenied hook failed for tool ${callId}: ${hookError instanceof Error ? hookError.message : String(hookError)}`
|
|
3571
3620
|
);
|
|
3572
3621
|
}
|
|
@@ -3709,7 +3758,7 @@ async function buildAvailableCommandsSnapshot(config, abortSignal = AbortSignal.
|
|
|
3709
3758
|
}
|
|
3710
3759
|
}
|
|
3711
3760
|
} catch (error) {
|
|
3712
|
-
|
|
3761
|
+
debugLogger7.error("Error loading available skills:", error);
|
|
3713
3762
|
}
|
|
3714
3763
|
for (const command of visibleSlashCommands) {
|
|
3715
3764
|
if (command.kind !== "skill" /* SKILL */ || !command.skillDetail) {
|
|
@@ -3756,7 +3805,7 @@ var Session = class {
|
|
|
3756
3805
|
const todoWriteEnabled = this.settings.merged.tools?.todoWrite?.enabled === true;
|
|
3757
3806
|
const todoStopGuardEnabled = todoStopGuardConfigured && todoStopGuardModeAllowed && todoWriteEnabled;
|
|
3758
3807
|
if (todoStopGuardConfigured && todoStopGuardModeAllowed && !todoWriteEnabled) {
|
|
3759
|
-
|
|
3808
|
+
debugLogger7.warn(
|
|
3760
3809
|
"experimental.todoStopGuard requires tools.todoWrite.enabled; the Todo Stop Guard is disabled."
|
|
3761
3810
|
);
|
|
3762
3811
|
}
|
|
@@ -3769,7 +3818,7 @@ var Session = class {
|
|
|
3769
3818
|
const parsedGuardMode = parseRepeatedToolFailureGuardMode(configuredGuardMode);
|
|
3770
3819
|
this.repeatedToolFailureGuardMode = parsedGuardMode ?? "shadow";
|
|
3771
3820
|
if (configuredGuardMode?.trim() && parsedGuardMode === void 0) {
|
|
3772
|
-
|
|
3821
|
+
debugLogger7.warn(
|
|
3773
3822
|
`${ENV_ACP_REPEATED_TOOL_FAILURE_GUARD} has an invalid value; defaulting to shadow. Expected off, shadow, warn, or enforce.`
|
|
3774
3823
|
);
|
|
3775
3824
|
}
|
|
@@ -4011,7 +4060,7 @@ var Session = class {
|
|
|
4011
4060
|
this.heldGoalProposal = void 0;
|
|
4012
4061
|
}
|
|
4013
4062
|
void this.#queueGoalState(snapshot, cause, previousGoal).catch(
|
|
4014
|
-
(error) =>
|
|
4063
|
+
(error) => debugLogger7.warn(
|
|
4015
4064
|
`Failed to emit ACP Goal state: ${error instanceof Error ? error.message : String(error)}`
|
|
4016
4065
|
)
|
|
4017
4066
|
);
|
|
@@ -4046,7 +4095,7 @@ var Session = class {
|
|
|
4046
4095
|
if (!(error instanceof GoalPersistenceUnavailableError)) {
|
|
4047
4096
|
throw error;
|
|
4048
4097
|
}
|
|
4049
|
-
|
|
4098
|
+
debugLogger7.debug("Canonical Goal runtime is unavailable for ACP");
|
|
4050
4099
|
}
|
|
4051
4100
|
}
|
|
4052
4101
|
/**
|
|
@@ -4240,7 +4289,7 @@ var Session = class {
|
|
|
4240
4289
|
void 0,
|
|
4241
4290
|
error instanceof Error ? error.message : String(error)
|
|
4242
4291
|
);
|
|
4243
|
-
|
|
4292
|
+
debugLogger7.warn(
|
|
4244
4293
|
`ACP Goal turn failed: ${error instanceof Error ? error.message : String(error)}`
|
|
4245
4294
|
);
|
|
4246
4295
|
} finally {
|
|
@@ -4266,7 +4315,7 @@ var Session = class {
|
|
|
4266
4315
|
try {
|
|
4267
4316
|
this.config.getGoalRuntime().markTurnDelivered(turnKey);
|
|
4268
4317
|
} catch (error) {
|
|
4269
|
-
|
|
4318
|
+
debugLogger7.debug(
|
|
4270
4319
|
`Failed to confirm ACP Goal turn delivery: ${error instanceof Error ? error.message : String(error)}`
|
|
4271
4320
|
);
|
|
4272
4321
|
}
|
|
@@ -4287,7 +4336,7 @@ var Session = class {
|
|
|
4287
4336
|
reason: turn.controller.signal.reason === SESSION_DISPOSE_ABORT_REASON ? GOAL_PAUSE_REASON_SESSION_DISPOSED : GOAL_PAUSE_REASON_USER_INTERRUPT
|
|
4288
4337
|
});
|
|
4289
4338
|
} catch (error) {
|
|
4290
|
-
|
|
4339
|
+
debugLogger7.warn(
|
|
4291
4340
|
`Failed to record pre-model ACP Goal turn settlement: ${error instanceof Error ? error.message : String(error)}`
|
|
4292
4341
|
);
|
|
4293
4342
|
await runtime.releaseTurn(turn.turnKey, { requeue: false });
|
|
@@ -4300,7 +4349,7 @@ var Session = class {
|
|
|
4300
4349
|
try {
|
|
4301
4350
|
await this.config.getChatRecordingService()?.flush();
|
|
4302
4351
|
} catch (error) {
|
|
4303
|
-
|
|
4352
|
+
debugLogger7.warn(
|
|
4304
4353
|
`Failed to flush ACP Goal turn: ${error instanceof Error ? error.message : String(error)}`
|
|
4305
4354
|
);
|
|
4306
4355
|
}
|
|
@@ -4319,7 +4368,7 @@ var Session = class {
|
|
|
4319
4368
|
}
|
|
4320
4369
|
await runtime.finishTurn(turn.permit);
|
|
4321
4370
|
} catch (error) {
|
|
4322
|
-
|
|
4371
|
+
debugLogger7.warn(
|
|
4323
4372
|
`Failed to record ACP Goal turn settlement: ${error instanceof Error ? error.message : String(error)}`
|
|
4324
4373
|
);
|
|
4325
4374
|
if (pauseReason !== void 0) {
|
|
@@ -4342,12 +4391,12 @@ var Session = class {
|
|
|
4342
4391
|
turn.endingToolCallId
|
|
4343
4392
|
]);
|
|
4344
4393
|
} catch (error) {
|
|
4345
|
-
|
|
4394
|
+
debugLogger7.warn("Failed to record ACP Goal turn end:", error);
|
|
4346
4395
|
}
|
|
4347
4396
|
}
|
|
4348
4397
|
}
|
|
4349
4398
|
} catch (error) {
|
|
4350
|
-
|
|
4399
|
+
debugLogger7.warn(
|
|
4351
4400
|
`Failed to settle ACP Goal turn: ${error instanceof Error ? error.message : String(error)}`
|
|
4352
4401
|
);
|
|
4353
4402
|
}
|
|
@@ -4371,7 +4420,7 @@ var Session = class {
|
|
|
4371
4420
|
reason: GOAL_PAUSE_REASON_STOP_HOOK_CAP
|
|
4372
4421
|
});
|
|
4373
4422
|
} catch (error) {
|
|
4374
|
-
|
|
4423
|
+
debugLogger7.warn(
|
|
4375
4424
|
`Failed to pause the Goal after the Stop hook cap: ${error instanceof Error ? error.message : String(error)}`
|
|
4376
4425
|
);
|
|
4377
4426
|
}
|
|
@@ -4443,7 +4492,7 @@ var Session = class {
|
|
|
4443
4492
|
resolved && outcome === "proceed_once" /* ProceedOnce */
|
|
4444
4493
|
);
|
|
4445
4494
|
} catch (error) {
|
|
4446
|
-
|
|
4495
|
+
debugLogger7.error("Workflow permission request failed:", error);
|
|
4447
4496
|
await registry.resolvePendingApproval(
|
|
4448
4497
|
runId,
|
|
4449
4498
|
approval.approvalId,
|
|
@@ -4470,7 +4519,7 @@ var Session = class {
|
|
|
4470
4519
|
}
|
|
4471
4520
|
});
|
|
4472
4521
|
} catch (error) {
|
|
4473
|
-
|
|
4522
|
+
debugLogger7.warn(
|
|
4474
4523
|
"Failed to finalize workflow approval tool call:",
|
|
4475
4524
|
error
|
|
4476
4525
|
);
|
|
@@ -4644,7 +4693,7 @@ var Session = class {
|
|
|
4644
4693
|
}
|
|
4645
4694
|
return "unavailable";
|
|
4646
4695
|
} catch (error) {
|
|
4647
|
-
|
|
4696
|
+
debugLogger7.warn(
|
|
4648
4697
|
`Todo Stop Guard continuation claim unavailable [session ${this.sessionId}]: ${this.#formatError(error)}`
|
|
4649
4698
|
);
|
|
4650
4699
|
return "unavailable";
|
|
@@ -4874,7 +4923,7 @@ var Session = class {
|
|
|
4874
4923
|
startCronScheduler() {
|
|
4875
4924
|
if (this.#isAutomaticWorkHeld()) return;
|
|
4876
4925
|
this.#startCronSchedulerInRuntime().catch((error) => {
|
|
4877
|
-
|
|
4926
|
+
debugLogger7.warn(
|
|
4878
4927
|
`Cron scheduler startup failed [session ${this.sessionId}]: ${error}`
|
|
4879
4928
|
);
|
|
4880
4929
|
});
|
|
@@ -5093,7 +5142,7 @@ var Session = class {
|
|
|
5093
5142
|
try {
|
|
5094
5143
|
activation.onRelease?.();
|
|
5095
5144
|
} catch (error) {
|
|
5096
|
-
|
|
5145
|
+
debugLogger7.warn(
|
|
5097
5146
|
`Managed conversation release callback failed [session ${this.sessionId}]: ${error}`
|
|
5098
5147
|
);
|
|
5099
5148
|
}
|
|
@@ -5430,7 +5479,7 @@ var Session = class {
|
|
|
5430
5479
|
installRewriter() {
|
|
5431
5480
|
const rewriteConfig = loadRewriteConfig(this.settings);
|
|
5432
5481
|
if (rewriteConfig?.enabled) {
|
|
5433
|
-
|
|
5482
|
+
debugLogger7.info("Message rewrite middleware enabled");
|
|
5434
5483
|
this.messageRewriter = new MessageRewriteMiddleware(
|
|
5435
5484
|
this.config,
|
|
5436
5485
|
rewriteConfig,
|
|
@@ -5604,7 +5653,7 @@ var Session = class {
|
|
|
5604
5653
|
});
|
|
5605
5654
|
}
|
|
5606
5655
|
} catch (error) {
|
|
5607
|
-
|
|
5656
|
+
debugLogger7.warn(
|
|
5608
5657
|
`Failed to pause queued ACP Goal turn: ${error instanceof Error ? error.message : String(error)}`
|
|
5609
5658
|
);
|
|
5610
5659
|
}
|
|
@@ -5831,7 +5880,7 @@ var Session = class {
|
|
|
5831
5880
|
try {
|
|
5832
5881
|
await reservedGoalRuntime.releaseTurn(reservedGoalTurnKey);
|
|
5833
5882
|
} catch (releaseError) {
|
|
5834
|
-
|
|
5883
|
+
debugLogger7.warn(
|
|
5835
5884
|
`Failed to release Goal reservation after admission failure: ${releaseError instanceof Error ? releaseError.message : String(releaseError)}`
|
|
5836
5885
|
);
|
|
5837
5886
|
} finally {
|
|
@@ -5896,7 +5945,7 @@ var Session = class {
|
|
|
5896
5945
|
stopReason: result.stopReason
|
|
5897
5946
|
});
|
|
5898
5947
|
} catch (error) {
|
|
5899
|
-
|
|
5948
|
+
debugLogger7.warn(
|
|
5900
5949
|
"Failed to record branch checkpoint; completing the turn without a branch point",
|
|
5901
5950
|
error
|
|
5902
5951
|
);
|
|
@@ -5947,7 +5996,7 @@ var Session = class {
|
|
|
5947
5996
|
try {
|
|
5948
5997
|
await this.config.getLlmClient().setTools();
|
|
5949
5998
|
} catch (error) {
|
|
5950
|
-
|
|
5999
|
+
debugLogger7.warn(
|
|
5951
6000
|
"Failed to refresh Goal proposal availability",
|
|
5952
6001
|
error
|
|
5953
6002
|
);
|
|
@@ -6023,7 +6072,7 @@ var Session = class {
|
|
|
6023
6072
|
async continueLastTurn() {
|
|
6024
6073
|
const recovery = this.getRecoveryStatus();
|
|
6025
6074
|
if (!recovery.canContinue && recovery.kind !== "clean") {
|
|
6026
|
-
|
|
6075
|
+
debugLogger7.debug("[Session] recovery canContinue vetoed", {
|
|
6027
6076
|
kind: recovery.kind,
|
|
6028
6077
|
closing: this.closing,
|
|
6029
6078
|
pendingPrompt: Boolean(this.pendingPrompt),
|
|
@@ -6082,7 +6131,7 @@ var Session = class {
|
|
|
6082
6131
|
const conversationHistory = chat.getHistoryTail(40, true);
|
|
6083
6132
|
const lastEntry = conversationHistory[conversationHistory.length - 1];
|
|
6084
6133
|
if (!lastEntry || lastEntry.role !== "model") {
|
|
6085
|
-
|
|
6134
|
+
debugLogger7.debug(
|
|
6086
6135
|
"Skipping followup suggestion: last history entry is not model"
|
|
6087
6136
|
);
|
|
6088
6137
|
return;
|
|
@@ -6122,9 +6171,9 @@ var Session = class {
|
|
|
6122
6171
|
}
|
|
6123
6172
|
} catch (error) {
|
|
6124
6173
|
if (ac.signal.aborted) {
|
|
6125
|
-
|
|
6174
|
+
debugLogger7.debug("Follow-up suggestion generation aborted");
|
|
6126
6175
|
} else {
|
|
6127
|
-
|
|
6176
|
+
debugLogger7.warn("Follow-up suggestion generation failed", error);
|
|
6128
6177
|
}
|
|
6129
6178
|
} finally {
|
|
6130
6179
|
if (this.followupAbort === ac) {
|
|
@@ -6197,7 +6246,7 @@ var Session = class {
|
|
|
6197
6246
|
goalId: current.goalId,
|
|
6198
6247
|
revision: current.revision
|
|
6199
6248
|
};
|
|
6200
|
-
|
|
6249
|
+
debugLogger7.warn(
|
|
6201
6250
|
"Failed to pause the cancelled Goal proposal",
|
|
6202
6251
|
error
|
|
6203
6252
|
);
|
|
@@ -6207,7 +6256,7 @@ var Session = class {
|
|
|
6207
6256
|
}
|
|
6208
6257
|
}
|
|
6209
6258
|
} else if (!result.applied) {
|
|
6210
|
-
|
|
6259
|
+
debugLogger7.debug(
|
|
6211
6260
|
`Dropping an approved Goal proposal: ${result.reason}`
|
|
6212
6261
|
);
|
|
6213
6262
|
await this.messageEmitter.emitAgentMessage(
|
|
@@ -6215,7 +6264,7 @@ var Session = class {
|
|
|
6215
6264
|
);
|
|
6216
6265
|
}
|
|
6217
6266
|
} catch (error) {
|
|
6218
|
-
|
|
6267
|
+
debugLogger7.warn("Failed to apply an approved Goal proposal", error);
|
|
6219
6268
|
await this.messageEmitter.emitAgentMessage(
|
|
6220
6269
|
formatProposeGoalRecoveryFailed(proposal.objective)
|
|
6221
6270
|
);
|
|
@@ -6312,7 +6361,7 @@ var Session = class {
|
|
|
6312
6361
|
} else if (isContinue) {
|
|
6313
6362
|
const recoveryPlan = this.#getRecoveryPlan(true);
|
|
6314
6363
|
if (!recoveryPlan?.continuation) {
|
|
6315
|
-
|
|
6364
|
+
debugLogger7.warn(
|
|
6316
6365
|
`[Session] continue ${promptId}: no interrupted turn on re-detection, nothing to continue`
|
|
6317
6366
|
);
|
|
6318
6367
|
logConversationFinishedEvent(
|
|
@@ -6510,10 +6559,10 @@ var Session = class {
|
|
|
6510
6559
|
this.config.getChatRecordingService()?.recordFileHistorySnapshot(latestSnapshot);
|
|
6511
6560
|
}
|
|
6512
6561
|
} catch (e) {
|
|
6513
|
-
|
|
6562
|
+
debugLogger7.error(`FileHistory: recordSnapshot failed: ${e}`);
|
|
6514
6563
|
}
|
|
6515
6564
|
} catch (e) {
|
|
6516
|
-
|
|
6565
|
+
debugLogger7.error(`FileHistory: makeSnapshot failed: ${e}`);
|
|
6517
6566
|
}
|
|
6518
6567
|
}
|
|
6519
6568
|
const systemReminders = await this.#buildInitialSystemReminders();
|
|
@@ -6828,7 +6877,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
6828
6877
|
const hooksEnabledForStopFailure = !this.config.getDisableAllHooks?.();
|
|
6829
6878
|
if (hooksEnabledForStopFailure && hookSystem && this.config.hasHooksForEvent?.("StopFailure")) {
|
|
6830
6879
|
hookSystem.fireStopFailureEvent(errorType, errorMessage).catch((err) => {
|
|
6831
|
-
|
|
6880
|
+
debugLogger7.warn(`StopFailure hook failed: ${err}`);
|
|
6832
6881
|
});
|
|
6833
6882
|
}
|
|
6834
6883
|
if (errorStatus === 429) {
|
|
@@ -7224,7 +7273,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7224
7273
|
this.todoStopGuard.suspend();
|
|
7225
7274
|
blockGoalProposalSettlement();
|
|
7226
7275
|
await this.messageEmitter.emitAgentMessage(warning);
|
|
7227
|
-
|
|
7276
|
+
debugLogger7.warn(warning);
|
|
7228
7277
|
return { stopReason: "end_turn" };
|
|
7229
7278
|
}
|
|
7230
7279
|
if (!externalReason && !guardContinuation) {
|
|
@@ -7682,7 +7731,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7682
7731
|
const hookSystem = this.config.getHookSystem?.();
|
|
7683
7732
|
if (!this.config.getDisableAllHooks?.() && hookSystem && this.config.hasHooksForEvent?.("StopFailure")) {
|
|
7684
7733
|
hookSystem.fireStopFailureEvent(errorType, errorMessage).catch((err) => {
|
|
7685
|
-
|
|
7734
|
+
debugLogger7.warn(`StopFailure hook failed: ${err}`);
|
|
7686
7735
|
});
|
|
7687
7736
|
}
|
|
7688
7737
|
if (errorStatus === 429) {
|
|
@@ -7849,7 +7898,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7849
7898
|
}
|
|
7850
7899
|
});
|
|
7851
7900
|
} catch (error) {
|
|
7852
|
-
|
|
7901
|
+
debugLogger7.warn(
|
|
7853
7902
|
`Failed to emit Todo Stop Guard status: ${this.#formatError(error)}`
|
|
7854
7903
|
);
|
|
7855
7904
|
}
|
|
@@ -7998,7 +8047,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7998
8047
|
await recording.recordingService?.flush();
|
|
7999
8048
|
}
|
|
8000
8049
|
} catch (recordError) {
|
|
8001
|
-
|
|
8050
|
+
debugLogger7.warn(
|
|
8002
8051
|
`Failed to record turn result: ${this.#formatError(recordError)}`
|
|
8003
8052
|
);
|
|
8004
8053
|
}
|
|
@@ -8032,7 +8081,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8032
8081
|
return new MessageDisplayDispatcher(
|
|
8033
8082
|
messageBus,
|
|
8034
8083
|
signal,
|
|
8035
|
-
(message) =>
|
|
8084
|
+
(message) => debugLogger7.warn(message)
|
|
8036
8085
|
);
|
|
8037
8086
|
}
|
|
8038
8087
|
/**
|
|
@@ -8053,7 +8102,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8053
8102
|
message = decision.message;
|
|
8054
8103
|
}
|
|
8055
8104
|
if (abortSignal.aborted) {
|
|
8056
|
-
|
|
8105
|
+
debugLogger7.debug(
|
|
8057
8106
|
`Send aborted after pre-compression preparation for prompt ${promptId}`
|
|
8058
8107
|
);
|
|
8059
8108
|
return { responseStream: null, stopReason: "cancelled" };
|
|
@@ -8082,26 +8131,26 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8082
8131
|
}
|
|
8083
8132
|
} catch (compressionError) {
|
|
8084
8133
|
if (abortSignal.aborted) {
|
|
8085
|
-
|
|
8134
|
+
debugLogger7.debug(`Auto-compression aborted for prompt ${promptId}`);
|
|
8086
8135
|
return { responseStream: null, stopReason: "cancelled" };
|
|
8087
8136
|
}
|
|
8088
8137
|
if (this.#isAbortError(compressionError)) {
|
|
8089
8138
|
throw compressionError;
|
|
8090
8139
|
}
|
|
8091
|
-
|
|
8140
|
+
debugLogger7.warn(
|
|
8092
8141
|
`Auto-compression failed for prompt ${promptId}; proceeding without compression: ` + this.#formatError(compressionError)
|
|
8093
8142
|
);
|
|
8094
8143
|
compressionFailed = true;
|
|
8095
8144
|
}
|
|
8096
8145
|
}
|
|
8097
8146
|
if (abortSignal.aborted) {
|
|
8098
|
-
|
|
8147
|
+
debugLogger7.debug(`Auto-compression aborted for prompt ${promptId}`);
|
|
8099
8148
|
return { responseStream: null, stopReason: "cancelled" };
|
|
8100
8149
|
}
|
|
8101
8150
|
const model = options.getModelOverride?.() ?? options.modelOverride ?? this.config.getModel();
|
|
8102
8151
|
const requestRouteKey = await this.#requestRouteKeyForModel(model);
|
|
8103
8152
|
if (abortSignal.aborted) {
|
|
8104
|
-
|
|
8153
|
+
debugLogger7.debug(
|
|
8105
8154
|
`Send aborted after request route key resolution for prompt ${promptId}`
|
|
8106
8155
|
);
|
|
8107
8156
|
return { responseStream: null, stopReason: "cancelled" };
|
|
@@ -8118,7 +8167,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8118
8167
|
requestRouteKey
|
|
8119
8168
|
);
|
|
8120
8169
|
if (lastPromptTokenCount > sessionTokenLimit) {
|
|
8121
|
-
|
|
8170
|
+
debugLogger7.warn(
|
|
8122
8171
|
`Session token limit exceeded for prompt ${promptId}: ${lastPromptTokenCount} > ${sessionTokenLimit}. requestRoute=${requestRouteKey}, activeModel=${this.config.getModel()}. Send dropped.`
|
|
8123
8172
|
);
|
|
8124
8173
|
await this.#emitAgentDiagnosticMessageSafely(
|
|
@@ -8135,7 +8184,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8135
8184
|
);
|
|
8136
8185
|
}
|
|
8137
8186
|
if (abortSignal.aborted) {
|
|
8138
|
-
|
|
8187
|
+
debugLogger7.debug(
|
|
8139
8188
|
`Send aborted after compression diagnostic for prompt ${promptId}`
|
|
8140
8189
|
);
|
|
8141
8190
|
return { responseStream: null, stopReason: "cancelled" };
|
|
@@ -8148,7 +8197,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8148
8197
|
message = decision.message;
|
|
8149
8198
|
}
|
|
8150
8199
|
if (abortSignal.aborted) {
|
|
8151
|
-
|
|
8200
|
+
debugLogger7.debug(
|
|
8152
8201
|
`Send aborted after pre-send validation for prompt ${promptId}`
|
|
8153
8202
|
);
|
|
8154
8203
|
return { responseStream: null, stopReason: "cancelled" };
|
|
@@ -8193,7 +8242,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8193
8242
|
) ?? [];
|
|
8194
8243
|
const droppedParts = (message.parts?.length ?? 0) - functionResponseParts.length;
|
|
8195
8244
|
if (droppedParts > 0) {
|
|
8196
|
-
|
|
8245
|
+
debugLogger7.debug(
|
|
8197
8246
|
`Dropping ${droppedParts} non-functionResponse part(s) from unsent ACP message after send was skipped.`
|
|
8198
8247
|
);
|
|
8199
8248
|
}
|
|
@@ -8274,7 +8323,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8274
8323
|
history,
|
|
8275
8324
|
config: this.config
|
|
8276
8325
|
}).catch((error) => {
|
|
8277
|
-
|
|
8326
|
+
debugLogger7.warn(
|
|
8278
8327
|
"Failed to schedule ACP managed auto-memory extraction.",
|
|
8279
8328
|
error
|
|
8280
8329
|
);
|
|
@@ -8284,7 +8333,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8284
8333
|
sessionId: this.config.getSessionId(),
|
|
8285
8334
|
config: this.config
|
|
8286
8335
|
}).catch((error) => {
|
|
8287
|
-
|
|
8336
|
+
debugLogger7.warn(
|
|
8288
8337
|
"Failed to schedule ACP managed auto-memory dream.",
|
|
8289
8338
|
error
|
|
8290
8339
|
);
|
|
@@ -8292,7 +8341,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8292
8341
|
}
|
|
8293
8342
|
async #buildNextMessageAfterToolRun(toolRun, abortSignal, promptId, toolLoopState, onFullTurnModel, rejectOnLoopDetected = false) {
|
|
8294
8343
|
if (toolRun.loopDetected) {
|
|
8295
|
-
|
|
8344
|
+
debugLogger7.debug("Stopping ACP turn after daemon loop detection.");
|
|
8296
8345
|
return { message: null, hadMidTurnUserInput: false };
|
|
8297
8346
|
}
|
|
8298
8347
|
const drained = await this.#drainMidTurnInput(abortSignal, {
|
|
@@ -8350,7 +8399,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8350
8399
|
toolLoopState.repeatedToolFailureState = repeatedToolFailureDecision.state;
|
|
8351
8400
|
if (repeatedToolFailureDecision.kind !== "none") {
|
|
8352
8401
|
const { state } = repeatedToolFailureDecision;
|
|
8353
|
-
|
|
8402
|
+
debugLogger7.debug(
|
|
8354
8403
|
`[repeated-tool-failure-guard] mode=${toolLoopState.repeatedToolFailureMode} decision=${repeatedToolFailureDecision.kind} phase=${state.phase} candidate=${state.candidateOrdinal} failures=${state.failureCount} batches=${state.batchCount}`
|
|
8355
8404
|
);
|
|
8356
8405
|
}
|
|
@@ -8388,7 +8437,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8388
8437
|
REPEATED_TOOL_FAILURE_STOP_MESSAGE
|
|
8389
8438
|
);
|
|
8390
8439
|
} catch (error) {
|
|
8391
|
-
|
|
8440
|
+
debugLogger7.warn(
|
|
8392
8441
|
`Failed to emit repeated tool failure stop message: ${this.#formatError(error)}`
|
|
8393
8442
|
);
|
|
8394
8443
|
}
|
|
@@ -8542,7 +8591,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8542
8591
|
try {
|
|
8543
8592
|
await this.#emitAgentDiagnosticMessage(text);
|
|
8544
8593
|
} catch (notifyError) {
|
|
8545
|
-
|
|
8594
|
+
debugLogger7.warn(`${failureContext}: ${this.#formatError(notifyError)}`);
|
|
8546
8595
|
}
|
|
8547
8596
|
}
|
|
8548
8597
|
async #emitAgentDiagnosticMessage(text) {
|
|
@@ -8615,7 +8664,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8615
8664
|
if (isPermanentError) {
|
|
8616
8665
|
this.midTurnDrainUnavailable = true;
|
|
8617
8666
|
}
|
|
8618
|
-
|
|
8667
|
+
debugLogger7.warn(
|
|
8619
8668
|
`Mid-turn queue drain ${isPermanentError ? "permanently " : ""}unavailable [session ${this.sessionId}]: ${errorMessage}`
|
|
8620
8669
|
);
|
|
8621
8670
|
return {
|
|
@@ -8661,14 +8710,14 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8661
8710
|
clearTimeout(timer);
|
|
8662
8711
|
}
|
|
8663
8712
|
if (late === expired) {
|
|
8664
|
-
|
|
8713
|
+
debugLogger7.warn(
|
|
8665
8714
|
`[mid-turn] dropped a drain response that arrived after the ${MID_TURN_QUEUE_RECOVERY_TIMEOUT_MS}ms recovery deadline [session ${this.sessionId}]`
|
|
8666
8715
|
);
|
|
8667
8716
|
return;
|
|
8668
8717
|
}
|
|
8669
8718
|
const lateMessages = parseMidTurnDrainResponse(late);
|
|
8670
8719
|
if (lateMessages.length > 0) {
|
|
8671
|
-
|
|
8720
|
+
debugLogger7.debug(
|
|
8672
8721
|
`[mid-turn] recovered ${lateMessages.length} message(s) from a timed-out drain [session ${this.sessionId}]`
|
|
8673
8722
|
);
|
|
8674
8723
|
this.midTurnRecoveredMessages.push(...lateMessages);
|
|
@@ -8713,7 +8762,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8713
8762
|
}
|
|
8714
8763
|
if (!abortSignal.aborted) {
|
|
8715
8764
|
const errorMessage = this.#formatError(messageError);
|
|
8716
|
-
|
|
8765
|
+
debugLogger7.warn(
|
|
8717
8766
|
`Failed to resolve mid-turn message: ${errorMessage}`
|
|
8718
8767
|
);
|
|
8719
8768
|
}
|
|
@@ -8760,7 +8809,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8760
8809
|
try {
|
|
8761
8810
|
await scheduler.enableDurable(this.sessionId);
|
|
8762
8811
|
} catch (err) {
|
|
8763
|
-
|
|
8812
|
+
debugLogger7.warn(
|
|
8764
8813
|
`Durable cron init failed \u2014 persistent tasks will not fire in this session: ${err}`
|
|
8765
8814
|
);
|
|
8766
8815
|
}
|
|
@@ -8800,7 +8849,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8800
8849
|
const record = /* @__PURE__ */ __name(async (outcome) => {
|
|
8801
8850
|
if (!job.id || firedAt === void 0) return;
|
|
8802
8851
|
await scheduler.annotateRunSession(job.id, firedAt, outcome).catch((error) => {
|
|
8803
|
-
|
|
8852
|
+
debugLogger7.warn(
|
|
8804
8853
|
`Scheduled task ${taskId} could not record its run session: ${error instanceof Error ? error.message : String(error)}`
|
|
8805
8854
|
);
|
|
8806
8855
|
});
|
|
@@ -8810,18 +8859,18 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8810
8859
|
try {
|
|
8811
8860
|
const restored = await scheduler.restoreConsumedOneShot(job.id);
|
|
8812
8861
|
if (!restored) {
|
|
8813
|
-
|
|
8862
|
+
debugLogger7.warn(
|
|
8814
8863
|
`Scheduled task ${taskId} could not find its consumed one-shot to restore`
|
|
8815
8864
|
);
|
|
8816
8865
|
}
|
|
8817
8866
|
} catch (error) {
|
|
8818
|
-
|
|
8867
|
+
debugLogger7.warn(
|
|
8819
8868
|
`Scheduled task ${taskId} could not restore its unexecuted one-shot: ${error instanceof Error ? error.message : String(error)}`
|
|
8820
8869
|
);
|
|
8821
8870
|
}
|
|
8822
8871
|
}, "restoreOneShot");
|
|
8823
8872
|
if (job.modelServiceId !== void 0 && !isValidCronTaskRoutingId(job.modelServiceId) || job.groupId !== void 0 && !isValidCronTaskRoutingId(job.groupId)) {
|
|
8824
|
-
|
|
8873
|
+
debugLogger7.warn(
|
|
8825
8874
|
`Scheduled task ${taskId} has invalid model or group routing; it was not dispatched`
|
|
8826
8875
|
);
|
|
8827
8876
|
await record({ dispatchFailed: true });
|
|
@@ -8866,7 +8915,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8866
8915
|
} catch (error) {
|
|
8867
8916
|
const requiresFreshSessionRouting = job.modelServiceId !== void 0 || job.groupId !== void 0;
|
|
8868
8917
|
const errorMessage = error instanceof Error ? error.message : typeof error === "object" && error !== null && typeof error["message"] === "string" ? error["message"] : String(error);
|
|
8869
|
-
|
|
8918
|
+
debugLogger7.warn(
|
|
8870
8919
|
requiresFreshSessionRouting ? `Scheduled task ${taskId} could not create a fresh session with its requested routing: ${errorMessage}` : `Scheduled task ${taskId} could not create a fresh session, running it in the task session instead: ${errorMessage}`
|
|
8871
8920
|
);
|
|
8872
8921
|
await record(
|
|
@@ -8931,7 +8980,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8931
8980
|
unrelatedCount--;
|
|
8932
8981
|
}
|
|
8933
8982
|
if (evictedTaskIds.length > 0) {
|
|
8934
|
-
|
|
8983
|
+
debugLogger7.warn(
|
|
8935
8984
|
`Cron queue overflow while automatic work is deferred: evicted ${evictedTaskIds.length} unrelated task(s): ${evictedTaskIds.join(", ")}`
|
|
8936
8985
|
);
|
|
8937
8986
|
}
|
|
@@ -8966,7 +9015,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8966
9015
|
try {
|
|
8967
9016
|
await this.assertCanStartTurn();
|
|
8968
9017
|
} catch (error) {
|
|
8969
|
-
|
|
9018
|
+
debugLogger7.warn(
|
|
8970
9019
|
`Cron turn rejected [session ${this.sessionId}]: ${error instanceof Error ? error.message : String(error)}`
|
|
8971
9020
|
);
|
|
8972
9021
|
return;
|
|
@@ -9089,7 +9138,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9089
9138
|
loopTick = await resolver.resolve(loopMode, trustedAtResolve);
|
|
9090
9139
|
} catch (resolveErr) {
|
|
9091
9140
|
const code = resolveErr.code ?? "unknown";
|
|
9092
|
-
|
|
9141
|
+
debugLogger7.warn(
|
|
9093
9142
|
`loop.md sentinel resolution failed (mode=${loopMode}, code=${code}) \u2014 check .o1-code/loop.md permissions/IO`,
|
|
9094
9143
|
resolveErr
|
|
9095
9144
|
);
|
|
@@ -9112,7 +9161,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9112
9161
|
}
|
|
9113
9162
|
const modelText = loopTick ? loopTick.modelText : prompt;
|
|
9114
9163
|
if (loopTick) {
|
|
9115
|
-
|
|
9164
|
+
debugLogger7.debug(
|
|
9116
9165
|
`loop tick: mode=${loopMode ?? autonomousMode} delivery=${loopTick.full ? "full" : loopTick.transientError ? "transient-error" : loopTick.autonomous ? "autonomous-tick" : loopTick.sourceLabel ? "reminder" : "absent"} source=${loopTick.sourceLabel ?? "none"} autonomous=${loopTick.autonomous ?? false} transient=${loopTick.transientError ?? false}`
|
|
9117
9166
|
);
|
|
9118
9167
|
}
|
|
@@ -9323,7 +9372,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9323
9372
|
}
|
|
9324
9373
|
this.todoStopGuard.pauseForTrustedRetry();
|
|
9325
9374
|
cronHadError = true;
|
|
9326
|
-
|
|
9375
|
+
debugLogger7.error("Error processing cron prompt:", error);
|
|
9327
9376
|
const msg = error instanceof Error ? error.message : String(error);
|
|
9328
9377
|
await this.messageEmitter.emitAgentMessage(
|
|
9329
9378
|
`[${item.source} error] ${msg}`
|
|
@@ -9516,7 +9565,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9516
9565
|
);
|
|
9517
9566
|
if (admission.action === "drop") {
|
|
9518
9567
|
const incomingIsRelated = this.#notificationContinuesTodoStopGuardWorkChain(item);
|
|
9519
|
-
|
|
9568
|
+
debugLogger7.warn(
|
|
9520
9569
|
incomingIsRelated ? `Notification queue overflow: dropping related task=${item.taskId} kind=${item.kind} because all queued items are related` : `Notification queue overflow: dropping unrelated task=${item.taskId} kind=${item.kind} while automatic work is deferred`
|
|
9521
9570
|
);
|
|
9522
9571
|
this.droppedNotifications.record(toAdmissibleNotification(item));
|
|
@@ -9524,7 +9573,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9524
9573
|
}
|
|
9525
9574
|
if (admission.action === "push") break;
|
|
9526
9575
|
const [evicted] = this.notificationQueue.splice(admission.index, 1);
|
|
9527
|
-
|
|
9576
|
+
debugLogger7.warn(
|
|
9528
9577
|
`Notification queue overflow: evicting task=${evicted?.taskId ?? "unknown"} kind=${evicted?.kind ?? "unknown"}`
|
|
9529
9578
|
);
|
|
9530
9579
|
if (evicted) {
|
|
@@ -9547,7 +9596,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9547
9596
|
item,
|
|
9548
9597
|
"background_task_completed"
|
|
9549
9598
|
).catch((error) => {
|
|
9550
|
-
|
|
9599
|
+
debugLogger7.warn("Failed to publish background task completion:", error);
|
|
9551
9600
|
});
|
|
9552
9601
|
this.#activeWorkChanged();
|
|
9553
9602
|
void this.#drainNotificationQueue();
|
|
@@ -9594,7 +9643,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9594
9643
|
}
|
|
9595
9644
|
);
|
|
9596
9645
|
} catch (error) {
|
|
9597
|
-
|
|
9646
|
+
debugLogger7.warn(
|
|
9598
9647
|
`Daemon notification persistence rejected [session ${this.sessionId}, task ${item.taskId}]: ${error instanceof Error ? error.message : String(error)}`
|
|
9599
9648
|
);
|
|
9600
9649
|
return false;
|
|
@@ -9630,7 +9679,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9630
9679
|
try {
|
|
9631
9680
|
await this.#emitDroppedNotificationSummary(droppedSummary);
|
|
9632
9681
|
} catch (error) {
|
|
9633
|
-
|
|
9682
|
+
debugLogger7.warn(
|
|
9634
9683
|
"Failed to display dropped notification summary:",
|
|
9635
9684
|
error
|
|
9636
9685
|
);
|
|
@@ -9650,7 +9699,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9650
9699
|
try {
|
|
9651
9700
|
await this.#emitBackgroundNotificationDisplay(item);
|
|
9652
9701
|
} catch (error) {
|
|
9653
|
-
|
|
9702
|
+
debugLogger7.warn(
|
|
9654
9703
|
"Failed to display consumed background result:",
|
|
9655
9704
|
error
|
|
9656
9705
|
);
|
|
@@ -9715,7 +9764,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9715
9764
|
try {
|
|
9716
9765
|
await this.assertCanStartTurn();
|
|
9717
9766
|
} catch (error) {
|
|
9718
|
-
|
|
9767
|
+
debugLogger7.warn(
|
|
9719
9768
|
`Notification turn rejected [session ${this.sessionId}]: ${error instanceof Error ? error.message : String(error)}`
|
|
9720
9769
|
);
|
|
9721
9770
|
const index = this.#nextNotificationQueueIndex();
|
|
@@ -9828,7 +9877,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9828
9877
|
await this.messageRewriter?.flushTurn(ac.signal);
|
|
9829
9878
|
await this.messageRewriter?.waitForPendingRewrites();
|
|
9830
9879
|
} catch (error) {
|
|
9831
|
-
|
|
9880
|
+
debugLogger7.warn(
|
|
9832
9881
|
`Failed to complete background notification response: ${this.#formatError(error)}`
|
|
9833
9882
|
);
|
|
9834
9883
|
}
|
|
@@ -10128,7 +10177,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10128
10177
|
} catch (error) {
|
|
10129
10178
|
if (!admitted) {
|
|
10130
10179
|
this.#deferBackgroundAdmission(item);
|
|
10131
|
-
|
|
10180
|
+
debugLogger7.warn(
|
|
10132
10181
|
"Background turn could not start; retaining result:",
|
|
10133
10182
|
error
|
|
10134
10183
|
);
|
|
@@ -10140,14 +10189,14 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10140
10189
|
return;
|
|
10141
10190
|
}
|
|
10142
10191
|
this.todoStopGuard.pauseForTrustedRetry();
|
|
10143
|
-
|
|
10192
|
+
debugLogger7.error("Error processing background notification:", error);
|
|
10144
10193
|
const msg = error instanceof Error ? error.message : String(error);
|
|
10145
10194
|
try {
|
|
10146
10195
|
await this.messageEmitter.emitAgentMessage(
|
|
10147
10196
|
`[notification error] ${msg}`
|
|
10148
10197
|
);
|
|
10149
10198
|
} catch (emitError) {
|
|
10150
|
-
|
|
10199
|
+
debugLogger7.error(
|
|
10151
10200
|
"Failed to emit background notification error:",
|
|
10152
10201
|
emitError
|
|
10153
10202
|
);
|
|
@@ -10232,7 +10281,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10232
10281
|
source: "background_notification"
|
|
10233
10282
|
});
|
|
10234
10283
|
} catch (error) {
|
|
10235
|
-
|
|
10284
|
+
debugLogger7.debug(
|
|
10236
10285
|
`Background notification end-turn extNotification dropped: ${this.#formatError(error)}`
|
|
10237
10286
|
);
|
|
10238
10287
|
}
|
|
@@ -10250,7 +10299,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10250
10299
|
source: "goal"
|
|
10251
10300
|
});
|
|
10252
10301
|
} catch (error) {
|
|
10253
|
-
|
|
10302
|
+
debugLogger7.debug(
|
|
10254
10303
|
`Goal start-turn extNotification dropped: ${this.#formatError(error)}`
|
|
10255
10304
|
);
|
|
10256
10305
|
}
|
|
@@ -10264,7 +10313,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10264
10313
|
promptId: this.config.getSessionId() + "########" + String(this.turn)
|
|
10265
10314
|
});
|
|
10266
10315
|
} catch (error) {
|
|
10267
|
-
|
|
10316
|
+
debugLogger7.debug(
|
|
10268
10317
|
`Goal end-turn extNotification dropped: ${this.#formatError(error)}`
|
|
10269
10318
|
);
|
|
10270
10319
|
}
|
|
@@ -10273,7 +10322,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10273
10322
|
try {
|
|
10274
10323
|
await this.sendAvailableCommandsUpdateOrThrow();
|
|
10275
10324
|
} catch (error) {
|
|
10276
|
-
|
|
10325
|
+
debugLogger7.error("Error sending available commands update:", error);
|
|
10277
10326
|
}
|
|
10278
10327
|
}
|
|
10279
10328
|
async refreshSkillsFromSettings(options = {}) {
|
|
@@ -10295,7 +10344,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10295
10344
|
await skillManager.notifyConfigChanged();
|
|
10296
10345
|
} catch (error) {
|
|
10297
10346
|
if (!updateFailed) throw error;
|
|
10298
|
-
|
|
10347
|
+
debugLogger7.error(
|
|
10299
10348
|
"SkillManager refresh failed after command update failure:",
|
|
10300
10349
|
error
|
|
10301
10350
|
);
|
|
@@ -10384,6 +10433,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10384
10433
|
}
|
|
10385
10434
|
const previousApprovalMode = this.config.getApprovalMode();
|
|
10386
10435
|
this.config.setApprovalMode(approvalMode);
|
|
10436
|
+
void recordDaemonSessionApprovalModeFromConfig(this.config);
|
|
10387
10437
|
if (previousApprovalMode !== approvalMode && (previousApprovalMode === "plan" /* PLAN */ || approvalMode === "plan" /* PLAN */)) {
|
|
10388
10438
|
this.clearActiveTodoPlanRevision();
|
|
10389
10439
|
}
|
|
@@ -10398,7 +10448,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10398
10448
|
planExecutionMode: this.config.getPlanExecutionMode?.() ?? this.config.getPrePlanMode?.()
|
|
10399
10449
|
} : {}
|
|
10400
10450
|
}).catch((error) => {
|
|
10401
|
-
|
|
10451
|
+
debugLogger7.debug("mode-update extNotification failed", error);
|
|
10402
10452
|
});
|
|
10403
10453
|
}
|
|
10404
10454
|
/**
|
|
@@ -10461,7 +10511,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10461
10511
|
sessionId: this.sessionId,
|
|
10462
10512
|
currentModelId: currentAcpModelId
|
|
10463
10513
|
}).catch((error) => {
|
|
10464
|
-
|
|
10514
|
+
debugLogger7.debug("model-update extNotification failed", error);
|
|
10465
10515
|
});
|
|
10466
10516
|
if (persistDefault) {
|
|
10467
10517
|
const persistScope = getPersistScopeForModelSelection(this.settings);
|
|
@@ -10537,7 +10587,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10537
10587
|
);
|
|
10538
10588
|
} catch (rollbackError) {
|
|
10539
10589
|
this.settings.reloadScopeFromDisk(previousWrite.scope);
|
|
10540
|
-
|
|
10590
|
+
debugLogger7.warn(
|
|
10541
10591
|
`Failed to roll back reasoning preference: ${rollbackError instanceof Error ? rollbackError.message : String(rollbackError)}`
|
|
10542
10592
|
);
|
|
10543
10593
|
}
|
|
@@ -10576,7 +10626,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10576
10626
|
try {
|
|
10577
10627
|
this.persistReasoningSelection(REASONING_EFFORT_DEFAULT);
|
|
10578
10628
|
} catch (error) {
|
|
10579
|
-
|
|
10629
|
+
debugLogger7.warn(
|
|
10580
10630
|
`Failed to clear incompatible reasoning preference: ${error instanceof Error ? error.message : String(error)}`
|
|
10581
10631
|
);
|
|
10582
10632
|
}
|
|
@@ -10619,7 +10669,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10619
10669
|
await this.sendUpdate(update);
|
|
10620
10670
|
legacyFrameSent = true;
|
|
10621
10671
|
} catch (error) {
|
|
10622
|
-
|
|
10672
|
+
debugLogger7.debug("current_mode_update notification failed", error);
|
|
10623
10673
|
}
|
|
10624
10674
|
try {
|
|
10625
10675
|
await this.client.extNotification("o1code/notify/session/mode-update", {
|
|
@@ -10632,7 +10682,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10632
10682
|
legacyFrameSent
|
|
10633
10683
|
});
|
|
10634
10684
|
} catch (error) {
|
|
10635
|
-
|
|
10685
|
+
debugLogger7.debug("mode-update extNotification failed", error);
|
|
10636
10686
|
}
|
|
10637
10687
|
}
|
|
10638
10688
|
/**
|
|
@@ -10784,7 +10834,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10784
10834
|
}
|
|
10785
10835
|
await this.toolCallEmitter.emitError(callId, toolName, error);
|
|
10786
10836
|
} catch (recordError) {
|
|
10787
|
-
|
|
10837
|
+
debugLogger7.error("Failed to record skipped tool call:", recordError);
|
|
10788
10838
|
}
|
|
10789
10839
|
return part;
|
|
10790
10840
|
}, "recordSkippedToolCall");
|
|
@@ -10818,7 +10868,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10818
10868
|
toolLoopState
|
|
10819
10869
|
);
|
|
10820
10870
|
} else {
|
|
10821
|
-
|
|
10871
|
+
debugLogger7.warn(message);
|
|
10822
10872
|
}
|
|
10823
10873
|
await Promise.all(
|
|
10824
10874
|
dedupedFunctionCalls.map(
|
|
@@ -10844,7 +10894,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10844
10894
|
this.duplicateProviderToolCallResponseIds
|
|
10845
10895
|
);
|
|
10846
10896
|
const response = createDuplicateProviderToolCallResponse(request);
|
|
10847
|
-
|
|
10897
|
+
debugLogger7.debug(
|
|
10848
10898
|
`[Session.runToolCalls] Suppressing duplicate provider tool-call id: ${providerCallId} (tool: ${request.name})`
|
|
10849
10899
|
);
|
|
10850
10900
|
batches.push({ kind: "duplicate", fc, request, response });
|
|
@@ -10890,7 +10940,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10890
10940
|
});
|
|
10891
10941
|
}
|
|
10892
10942
|
} catch (emitError) {
|
|
10893
|
-
|
|
10943
|
+
debugLogger7.debug(
|
|
10894
10944
|
"[Session.runToolCalls] Failed to emit duplicate tool update",
|
|
10895
10945
|
emitError
|
|
10896
10946
|
);
|
|
@@ -10994,13 +11044,13 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10994
11044
|
memoryWriteCandidates,
|
|
10995
11045
|
this.config.getProjectRoot()
|
|
10996
11046
|
);
|
|
10997
|
-
|
|
11047
|
+
debugLogger7.debug(
|
|
10998
11048
|
`ACP session ${this.sessionId} checked marked context-file memory tool batch; matched=${matchedContextFileWrite}`
|
|
10999
11049
|
);
|
|
11000
11050
|
if (!matchedContextFileWrite) {
|
|
11001
11051
|
return;
|
|
11002
11052
|
}
|
|
11003
|
-
|
|
11053
|
+
debugLogger7.debug(
|
|
11004
11054
|
`ACP session ${this.sessionId} refreshing memory after context-file memory write`
|
|
11005
11055
|
);
|
|
11006
11056
|
await refreshMemoryInstruction(this.config, {
|
|
@@ -11061,7 +11111,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11061
11111
|
results[idx] = r;
|
|
11062
11112
|
if (r.loopDetected && executing.size > 1 && !warnedWaitingForInFlight) {
|
|
11063
11113
|
warnedWaitingForInFlight = true;
|
|
11064
|
-
|
|
11114
|
+
debugLogger7.warn(
|
|
11065
11115
|
`Loop detection stopped this ACP turn; waiting for ${executing.size - 1} in-flight tool call(s) to settle before returning.`
|
|
11066
11116
|
);
|
|
11067
11117
|
}
|
|
@@ -11341,7 +11391,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11341
11391
|
mcp_server_name: mcpServerName
|
|
11342
11392
|
});
|
|
11343
11393
|
} catch (telemetryError) {
|
|
11344
|
-
|
|
11394
|
+
debugLogger7.debug(
|
|
11345
11395
|
"[Session.runTool] Failed to record terminal tool telemetry",
|
|
11346
11396
|
telemetryError
|
|
11347
11397
|
);
|
|
@@ -11384,7 +11434,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11384
11434
|
await this.toolCallEmitter.emitError(callId, toolName2, error);
|
|
11385
11435
|
}
|
|
11386
11436
|
} catch (emitError) {
|
|
11387
|
-
|
|
11437
|
+
debugLogger7.debug(
|
|
11388
11438
|
"[Session.runTool] Failed to emit terminal tool update",
|
|
11389
11439
|
emitError
|
|
11390
11440
|
);
|
|
@@ -11793,7 +11843,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11793
11843
|
forceAutoReviewForAllow
|
|
11794
11844
|
);
|
|
11795
11845
|
if (finalPermission === "allow" && forceAutoReviewForAllow) {
|
|
11796
|
-
|
|
11846
|
+
debugLogger7.info(
|
|
11797
11847
|
`Auto mode: L4 allow overridden by protected-write guard for ${policyToolName}`
|
|
11798
11848
|
);
|
|
11799
11849
|
}
|
|
@@ -11862,7 +11912,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11862
11912
|
autoModeAllowed = true;
|
|
11863
11913
|
break;
|
|
11864
11914
|
case "blocked":
|
|
11865
|
-
|
|
11915
|
+
debugLogger7.warn(
|
|
11866
11916
|
`Auto mode blocked (${outcome.reason}): tool=${policyToolName}, ` + formatDenialStateLog(denialState)
|
|
11867
11917
|
);
|
|
11868
11918
|
return earlyErrorResponse(
|
|
@@ -11883,7 +11933,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11883
11933
|
};
|
|
11884
11934
|
}
|
|
11885
11935
|
if (wasAutoModeManualFallback) {
|
|
11886
|
-
|
|
11936
|
+
debugLogger7.warn(
|
|
11887
11937
|
`Auto mode fallback to manual approval (${outcome.reason}): ` + formatDenialStateLog(denialState)
|
|
11888
11938
|
);
|
|
11889
11939
|
}
|
|
@@ -11906,7 +11956,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11906
11956
|
"cancel" /* Cancel */
|
|
11907
11957
|
);
|
|
11908
11958
|
} catch (error) {
|
|
11909
|
-
|
|
11959
|
+
debugLogger7.warn(
|
|
11910
11960
|
`Failed to cancel stale plan approval: ${this.#formatError(error)}`
|
|
11911
11961
|
);
|
|
11912
11962
|
}
|
|
@@ -11929,12 +11979,12 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11929
11979
|
const before = this.config.getAutoModeDenialState();
|
|
11930
11980
|
const after = recordFallbackApprove(before);
|
|
11931
11981
|
if (after === before) {
|
|
11932
|
-
|
|
11982
|
+
debugLogger7.warn(
|
|
11933
11983
|
`Auto mode denial counters already clear after fallback approval: ` + formatDenialStateLog(before)
|
|
11934
11984
|
);
|
|
11935
11985
|
return;
|
|
11936
11986
|
}
|
|
11937
|
-
|
|
11987
|
+
debugLogger7.warn(
|
|
11938
11988
|
`Auto mode denial counters reset after fallback approval: ${formatDenialStateLog(before)} -> ${formatDenialStateLog(after)}`
|
|
11939
11989
|
);
|
|
11940
11990
|
this.config.setAutoModeDenialState(after);
|
|
@@ -12219,7 +12269,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12219
12269
|
offeredPermissionOptions
|
|
12220
12270
|
);
|
|
12221
12271
|
} catch (error) {
|
|
12222
|
-
|
|
12272
|
+
debugLogger7.error(
|
|
12223
12273
|
`Permission request failed for tool ${toolName}:`,
|
|
12224
12274
|
error
|
|
12225
12275
|
);
|
|
@@ -12228,7 +12278,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12228
12278
|
"cancel" /* Cancel */
|
|
12229
12279
|
);
|
|
12230
12280
|
} catch (confirmError) {
|
|
12231
|
-
|
|
12281
|
+
debugLogger7.error(
|
|
12232
12282
|
`Failed to cancel tool ${toolName} after permission request failure:`,
|
|
12233
12283
|
confirmError
|
|
12234
12284
|
);
|
|
@@ -12309,7 +12359,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12309
12359
|
if (outcome !== "cancel" /* Cancel */) {
|
|
12310
12360
|
throw error;
|
|
12311
12361
|
}
|
|
12312
|
-
|
|
12362
|
+
debugLogger7.error(
|
|
12313
12363
|
`Failed to confirm cancellation for tool ${toolName}:`,
|
|
12314
12364
|
error
|
|
12315
12365
|
);
|
|
@@ -12384,7 +12434,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12384
12434
|
try {
|
|
12385
12435
|
await this.toolCallEmitter.emitStart(startParams);
|
|
12386
12436
|
} catch (emitError) {
|
|
12387
|
-
|
|
12437
|
+
debugLogger7.debug(
|
|
12388
12438
|
"[Session.runTool] Failed to emit tool start update",
|
|
12389
12439
|
emitError
|
|
12390
12440
|
);
|
|
@@ -12414,7 +12464,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12414
12464
|
`\u2717 **PreToolUse blocked**: ${toolName} - ${blockReason}`
|
|
12415
12465
|
);
|
|
12416
12466
|
} catch (emitError) {
|
|
12417
|
-
|
|
12467
|
+
debugLogger7.debug(
|
|
12418
12468
|
"[Session.runTool] Failed to emit PreToolUse block message",
|
|
12419
12469
|
emitError
|
|
12420
12470
|
);
|
|
@@ -12428,7 +12478,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12428
12478
|
});
|
|
12429
12479
|
}
|
|
12430
12480
|
if (preHookResult.additionalContext) {
|
|
12431
|
-
|
|
12481
|
+
debugLogger7.debug(
|
|
12432
12482
|
`PreToolUse hook additional context for ${toolName}: ${preHookResult.additionalContext}`
|
|
12433
12483
|
);
|
|
12434
12484
|
}
|
|
@@ -12526,7 +12576,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12526
12576
|
toolCallId: callId,
|
|
12527
12577
|
_meta: { toolName, subagentSessionReady: true }
|
|
12528
12578
|
}).catch((err) => {
|
|
12529
|
-
|
|
12579
|
+
debugLogger7.debug(
|
|
12530
12580
|
`[Session.runTool] subagent readiness update failed for ${callId}: ${err}`
|
|
12531
12581
|
);
|
|
12532
12582
|
});
|
|
@@ -12540,7 +12590,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12540
12590
|
status: "in_progress",
|
|
12541
12591
|
_meta: { toolName, shellProgress: chunk }
|
|
12542
12592
|
}).catch((err) => {
|
|
12543
|
-
|
|
12593
|
+
debugLogger7.debug(
|
|
12544
12594
|
`[Session.runTool] heartbeat update failed for ${callId}: ${err}`
|
|
12545
12595
|
);
|
|
12546
12596
|
});
|
|
@@ -12567,7 +12617,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12567
12617
|
invocation.params
|
|
12568
12618
|
);
|
|
12569
12619
|
} catch {
|
|
12570
|
-
|
|
12620
|
+
debugLogger7.debug(
|
|
12571
12621
|
"[Session.runTool] Failed to record tool arguments telemetry"
|
|
12572
12622
|
);
|
|
12573
12623
|
}
|
|
@@ -12750,7 +12800,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12750
12800
|
);
|
|
12751
12801
|
let status = aborted ? "cancelled" : toolResult.error ? "error" : "success";
|
|
12752
12802
|
if (status === "success" && !nestedPermissionCancelled && tool.mediaPolicyDescriptor && toolResult.artifacts && toolResult.artifacts.length > 0) {
|
|
12753
|
-
const { collectModelPolicyCall } = await import("./model-call-collection-
|
|
12803
|
+
const { collectModelPolicyCall } = await import("./model-call-collection-KSMSHS7L.js");
|
|
12754
12804
|
await collectModelPolicyCall({
|
|
12755
12805
|
config: this.config,
|
|
12756
12806
|
batch: {
|
|
@@ -12808,7 +12858,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12808
12858
|
}
|
|
12809
12859
|
if (postHookResult.shouldStop) {
|
|
12810
12860
|
const stopMessage = postHookResult.stopReason || "Execution stopped by PostToolUse hook";
|
|
12811
|
-
|
|
12861
|
+
debugLogger7.info(
|
|
12812
12862
|
`PostToolUse hook requested stop for ${toolName}: ${stopMessage}`
|
|
12813
12863
|
);
|
|
12814
12864
|
this.todoStopGuard.suspend();
|
|
@@ -12848,7 +12898,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12848
12898
|
elapsedExecutionMs()
|
|
12849
12899
|
);
|
|
12850
12900
|
if (failureHookResult.additionalContext) {
|
|
12851
|
-
|
|
12901
|
+
debugLogger7.debug(
|
|
12852
12902
|
`PostToolUseFailure hook additional context for ${toolName}: ${failureHookResult.additionalContext}`
|
|
12853
12903
|
);
|
|
12854
12904
|
}
|
|
@@ -12859,14 +12909,14 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12859
12909
|
artifacts: failureHookResult.artifacts
|
|
12860
12910
|
});
|
|
12861
12911
|
} catch (hookError) {
|
|
12862
|
-
|
|
12912
|
+
debugLogger7.debug(
|
|
12863
12913
|
"[Session.runTool] PostToolUseFailure hook failed",
|
|
12864
12914
|
hookError
|
|
12865
12915
|
);
|
|
12866
12916
|
}
|
|
12867
12917
|
}
|
|
12868
12918
|
if (this.config.isOmniEnabled?.()) {
|
|
12869
|
-
const { processToolResultOmniMedia } = await import("./omni-
|
|
12919
|
+
const { processToolResultOmniMedia } = await import("./omni-47LNNZAF.js");
|
|
12870
12920
|
responseParts = await processToolResultOmniMedia(
|
|
12871
12921
|
responseParts,
|
|
12872
12922
|
this.config,
|
|
@@ -12886,7 +12936,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12886
12936
|
try {
|
|
12887
12937
|
await this.messageEmitter.emitAgentMessage(visionBridgeNotice);
|
|
12888
12938
|
} catch (emitError) {
|
|
12889
|
-
|
|
12939
|
+
debugLogger7.debug(
|
|
12890
12940
|
"[Session.runTool] Failed to emit vision bridge notice",
|
|
12891
12941
|
emitError
|
|
12892
12942
|
);
|
|
@@ -12916,7 +12966,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12916
12966
|
try {
|
|
12917
12967
|
await this.planEmitter.emitPlan(plan, callId);
|
|
12918
12968
|
} catch (emitError) {
|
|
12919
|
-
|
|
12969
|
+
debugLogger7.debug(
|
|
12920
12970
|
"[Session.runTool] Failed to emit plan update",
|
|
12921
12971
|
emitError
|
|
12922
12972
|
);
|
|
@@ -12936,7 +12986,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12936
12986
|
persistedOutputFiles: settledPersistedOutputFiles
|
|
12937
12987
|
});
|
|
12938
12988
|
} catch (emitError) {
|
|
12939
|
-
|
|
12989
|
+
debugLogger7.debug(
|
|
12940
12990
|
"[Session.runTool] Failed to emit terminal tool update",
|
|
12941
12991
|
emitError
|
|
12942
12992
|
);
|
|
@@ -12967,7 +13017,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12967
13017
|
mcp_server_name: mcpServerName
|
|
12968
13018
|
});
|
|
12969
13019
|
} catch (telemetryError) {
|
|
12970
|
-
|
|
13020
|
+
debugLogger7.debug(
|
|
12971
13021
|
"[Session.runTool] Failed to record terminal tool telemetry",
|
|
12972
13022
|
telemetryError
|
|
12973
13023
|
);
|
|
@@ -12999,7 +13049,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12999
13049
|
try {
|
|
13000
13050
|
addToolCallResultAttributes(this.config, toolSpan, result);
|
|
13001
13051
|
} catch {
|
|
13002
|
-
|
|
13052
|
+
debugLogger7.debug(
|
|
13003
13053
|
"[Session.runTool] Failed to record tool result telemetry"
|
|
13004
13054
|
);
|
|
13005
13055
|
}
|
|
@@ -13043,7 +13093,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
13043
13093
|
elapsedExecutionMs()
|
|
13044
13094
|
);
|
|
13045
13095
|
if (failureHookResult.additionalContext) {
|
|
13046
|
-
|
|
13096
|
+
debugLogger7.debug(
|
|
13047
13097
|
`PostToolUseFailure hook additional context for ${toolName}: ${failureHookResult.additionalContext}`
|
|
13048
13098
|
);
|
|
13049
13099
|
}
|
|
@@ -13054,7 +13104,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
13054
13104
|
artifacts: failureHookResult.artifacts
|
|
13055
13105
|
});
|
|
13056
13106
|
} catch (hookError) {
|
|
13057
|
-
|
|
13107
|
+
debugLogger7.debug(
|
|
13058
13108
|
"[Session.runTool] PostToolUseFailure hook failed",
|
|
13059
13109
|
hookError
|
|
13060
13110
|
);
|
|
@@ -13449,7 +13499,7 @@ ${contextPart.text}`
|
|
|
13449
13499
|
formatFullTurnVisionNotice(fullTurnModel)
|
|
13450
13500
|
);
|
|
13451
13501
|
} catch (error) {
|
|
13452
|
-
|
|
13502
|
+
debugLogger7.debug(
|
|
13453
13503
|
`full-turn vision: failed to emit notice; continuing error=${error instanceof Error ? error.message : String(error)}`
|
|
13454
13504
|
);
|
|
13455
13505
|
}
|
|
@@ -13458,19 +13508,19 @@ ${contextPart.text}`
|
|
|
13458
13508
|
}
|
|
13459
13509
|
let bridgeResult;
|
|
13460
13510
|
try {
|
|
13461
|
-
|
|
13511
|
+
debugLogger7.debug("vision bridge: gate matched, running conversion");
|
|
13462
13512
|
bridgeResult = await runVisionBridge({
|
|
13463
13513
|
config: this.config,
|
|
13464
13514
|
parts,
|
|
13465
13515
|
signal: abortSignal
|
|
13466
13516
|
});
|
|
13467
13517
|
} catch (error) {
|
|
13468
|
-
|
|
13518
|
+
debugLogger7.debug(
|
|
13469
13519
|
`vision bridge: failed before replacement; falling back to text-only parts error=${String(error instanceof Error ? error.message : error)}`
|
|
13470
13520
|
);
|
|
13471
13521
|
return splitImageParts(parts).nonImageParts;
|
|
13472
13522
|
}
|
|
13473
|
-
|
|
13523
|
+
debugLogger7.debug(
|
|
13474
13524
|
`vision bridge: status=${bridgeResult.status} applied=${bridgeResult.applied} model=${bridgeResult.modelId ?? "(none)"}${bridgeResult.error ? ` error=${bridgeResult.error}` : ""}`
|
|
13475
13525
|
);
|
|
13476
13526
|
if (bridgeResult.status !== "skipped" || bridgeResult.egressOccurred) {
|
|
@@ -13480,13 +13530,13 @@ ${contextPart.text}`
|
|
|
13480
13530
|
bridgeResult
|
|
13481
13531
|
);
|
|
13482
13532
|
} catch (error) {
|
|
13483
|
-
|
|
13533
|
+
debugLogger7.debug(
|
|
13484
13534
|
`vision bridge: failed to emit notice; continuing with bridge result error=${String(error instanceof Error ? error.message : error)}`
|
|
13485
13535
|
);
|
|
13486
13536
|
}
|
|
13487
13537
|
}
|
|
13488
13538
|
if (abortSignal.aborted) {
|
|
13489
|
-
|
|
13539
|
+
debugLogger7.debug("vision bridge: turn aborted after bridge returned");
|
|
13490
13540
|
return splitImageParts(parts).nonImageParts;
|
|
13491
13541
|
}
|
|
13492
13542
|
if (bridgeResult.applied && bridgeResult.parts != null) {
|
|
@@ -13500,7 +13550,7 @@ ${contextPart.text}`
|
|
|
13500
13550
|
}
|
|
13501
13551
|
const voiceModel = readVoiceModel(this.settings);
|
|
13502
13552
|
if (!voiceModel) {
|
|
13503
|
-
|
|
13553
|
+
debugLogger7.debug(
|
|
13504
13554
|
"voice bridge: no voice model configured; replacing audio with note"
|
|
13505
13555
|
);
|
|
13506
13556
|
return parts.map(
|
|
@@ -13519,14 +13569,14 @@ ${contextPart.text}`
|
|
|
13519
13569
|
}
|
|
13520
13570
|
const inlineData = part.inlineData;
|
|
13521
13571
|
if (approxBase64Bytes(inlineData.data) > MAX_AUDIO_BYTES) {
|
|
13522
|
-
|
|
13572
|
+
debugLogger7.debug(
|
|
13523
13573
|
"voice bridge: audio too large; replacing audio with note"
|
|
13524
13574
|
);
|
|
13525
13575
|
converted.push({ text: buildVoiceUnavailableBlock("audio too large") });
|
|
13526
13576
|
continue;
|
|
13527
13577
|
}
|
|
13528
13578
|
try {
|
|
13529
|
-
|
|
13579
|
+
debugLogger7.debug(`voice bridge: transcribing audio via ${voiceModel}`);
|
|
13530
13580
|
const transcript = (await transcribeVoiceAudio(
|
|
13531
13581
|
{
|
|
13532
13582
|
data: new Uint8Array(Buffer2.from(inlineData.data, "base64")),
|
|
@@ -13543,7 +13593,7 @@ ${contextPart.text}`
|
|
|
13543
13593
|
}
|
|
13544
13594
|
)).trim();
|
|
13545
13595
|
if (abortSignal.aborted) {
|
|
13546
|
-
|
|
13596
|
+
debugLogger7.debug("voice bridge: turn aborted after transcription");
|
|
13547
13597
|
return converted;
|
|
13548
13598
|
}
|
|
13549
13599
|
if (transcript.length > 0) {
|
|
@@ -13556,10 +13606,10 @@ ${contextPart.text}`
|
|
|
13556
13606
|
});
|
|
13557
13607
|
} catch (error) {
|
|
13558
13608
|
if (abortSignal.aborted) {
|
|
13559
|
-
|
|
13609
|
+
debugLogger7.debug("voice bridge: transcription cancelled");
|
|
13560
13610
|
return converted;
|
|
13561
13611
|
}
|
|
13562
|
-
|
|
13612
|
+
debugLogger7.debug(
|
|
13563
13613
|
`voice bridge: transcription failed; replacing audio with note error=${sanitizeVoiceErrorMessage(String(error instanceof Error ? error.message : error))}`
|
|
13564
13614
|
);
|
|
13565
13615
|
converted.push({
|
|
@@ -13573,7 +13623,7 @@ ${contextPart.text}`
|
|
|
13573
13623
|
transcribedCount > 0 ? this.#formatVoiceBridgeNotice(voiceModel, transcribedCount) : this.#formatVoiceBridgeEgressNotice(voiceModel, egressCount)
|
|
13574
13624
|
);
|
|
13575
13625
|
} catch (error) {
|
|
13576
|
-
|
|
13626
|
+
debugLogger7.debug(
|
|
13577
13627
|
`voice bridge: failed to emit notice; continuing with bridge result error=${String(error instanceof Error ? error.message : error)}`
|
|
13578
13628
|
);
|
|
13579
13629
|
}
|
|
@@ -13634,7 +13684,7 @@ ${contextPart.text}`
|
|
|
13634
13684
|
}
|
|
13635
13685
|
debug(msg) {
|
|
13636
13686
|
if (this.config.getDebugMode()) {
|
|
13637
|
-
|
|
13687
|
+
debugLogger7.warn(msg);
|
|
13638
13688
|
}
|
|
13639
13689
|
}
|
|
13640
13690
|
async emitHookArtifactsNotification(args) {
|
|
@@ -13677,7 +13727,7 @@ ${contextPart.text}`
|
|
|
13677
13727
|
}
|
|
13678
13728
|
);
|
|
13679
13729
|
}).catch((err) => {
|
|
13680
|
-
|
|
13730
|
+
debugLogger7.debug(
|
|
13681
13731
|
`ACP terminalSequence notification dropped (session=${this.sessionId}): ${err instanceof Error ? err.message : String(err)}`
|
|
13682
13732
|
);
|
|
13683
13733
|
});
|
|
@@ -13686,7 +13736,7 @@ ${contextPart.text}`
|
|
|
13686
13736
|
|
|
13687
13737
|
// packages/cli/src/acp-integration/active-work-reporter.ts
|
|
13688
13738
|
init_esbuild_shims();
|
|
13689
|
-
var
|
|
13739
|
+
var debugLogger8 = createDebugLogger("ACTIVE_WORK");
|
|
13690
13740
|
var ActiveWorkReporter = class {
|
|
13691
13741
|
constructor(send, listSources, intervalMs, enabledCategories) {
|
|
13692
13742
|
this.send = send;
|
|
@@ -13762,7 +13812,7 @@ var ActiveWorkReporter = class {
|
|
|
13762
13812
|
});
|
|
13763
13813
|
}
|
|
13764
13814
|
} catch (error) {
|
|
13765
|
-
|
|
13815
|
+
debugLogger8.warn(
|
|
13766
13816
|
`active-work snapshot collection failed; skipping this report: ${error instanceof Error ? error.message : String(error)}`
|
|
13767
13817
|
);
|
|
13768
13818
|
return;
|
|
@@ -13905,7 +13955,7 @@ import { Readable, Writable as Writable2 } from "node:stream";
|
|
|
13905
13955
|
import { pipeline } from "node:stream/promises";
|
|
13906
13956
|
import * as path4 from "node:path";
|
|
13907
13957
|
import { createGunzip } from "node:zlib";
|
|
13908
|
-
var
|
|
13958
|
+
var debugLogger9 = createDebugLogger("ACP_AGENT");
|
|
13909
13959
|
function toRecord(value) {
|
|
13910
13960
|
return !!value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
13911
13961
|
}
|
|
@@ -14337,7 +14387,7 @@ async function downloadGitHubSkillDirectory(githubUrl, directoryPath) {
|
|
|
14337
14387
|
githubUrl,
|
|
14338
14388
|
directoryPath
|
|
14339
14389
|
).catch((error) => {
|
|
14340
|
-
|
|
14390
|
+
debugLogger9.warn(
|
|
14341
14391
|
"GitHub API directory listing failed, falling back to archive download:",
|
|
14342
14392
|
error
|
|
14343
14393
|
);
|
|
@@ -15180,14 +15230,14 @@ async function startSessionOwnedWorkflow(tool, params, workflowName) {
|
|
|
15180
15230
|
result = await invocation.execute(new AbortController().signal);
|
|
15181
15231
|
} catch (error) {
|
|
15182
15232
|
if (error instanceof WorkflowJournalUnavailableError) {
|
|
15183
|
-
|
|
15233
|
+
debugLogger10.debug(error.message);
|
|
15184
15234
|
throw RequestError.invalidParams(
|
|
15185
15235
|
{ errorKind: "workflow_journal_unavailable" },
|
|
15186
15236
|
error.reason === "missing" ? `Workflow run ${error.runId} has no journal on disk, so a retry has nothing to resume; rerun it to start it from the beginning.` : `The journal of workflow run ${error.runId} could not be read, so a retry cannot resume it; rerun it to start it from the beginning.`
|
|
15187
15237
|
);
|
|
15188
15238
|
}
|
|
15189
15239
|
if (error instanceof WorkflowCheckpointUnwritableError) {
|
|
15190
|
-
|
|
15240
|
+
debugLogger10.debug(error.message);
|
|
15191
15241
|
throw RequestError.invalidParams(
|
|
15192
15242
|
{ errorKind: "workflow_not_recorded" },
|
|
15193
15243
|
error.message
|
|
@@ -15204,7 +15254,7 @@ async function startSessionOwnedWorkflow(tool, params, workflowName) {
|
|
|
15204
15254
|
return result;
|
|
15205
15255
|
}
|
|
15206
15256
|
__name(startSessionOwnedWorkflow, "startSessionOwnedWorkflow");
|
|
15207
|
-
var
|
|
15257
|
+
var debugLogger10 = createDebugLogger("ACP_AGENT");
|
|
15208
15258
|
var ACP_EVENT_LOOP_STALL_SUSPEND_MS = 5 * 60 * 1e3;
|
|
15209
15259
|
var O1CODE_ACP_LOCAL_READ_ROOTS_ENV = "O1CODE_ACP_LOCAL_READ_ROOTS";
|
|
15210
15260
|
var POSIX_TMP_LOCAL_READ_ROOT = "/tmp";
|
|
@@ -15436,7 +15486,7 @@ async function beginSessionCloseAfterCurrentGate(session, timeoutMs) {
|
|
|
15436
15486
|
}
|
|
15437
15487
|
}
|
|
15438
15488
|
__name(beginSessionCloseAfterCurrentGate, "beginSessionCloseAfterCurrentGate");
|
|
15439
|
-
var logWorkspaceMemoryExtractionError = createWorkspaceMemoryExtractionErrorLogger(
|
|
15489
|
+
var logWorkspaceMemoryExtractionError = createWorkspaceMemoryExtractionErrorLogger(debugLogger10);
|
|
15440
15490
|
function parseAcpLocalReadRootsEnv(raw = process.env[O1CODE_ACP_LOCAL_READ_ROOTS_ENV]) {
|
|
15441
15491
|
if (!raw) return [];
|
|
15442
15492
|
return raw.split(path7.delimiter).map((entry) => entry.trim()).filter((entry) => entry.length > 0 && path7.isAbsolute(entry));
|
|
@@ -15626,7 +15676,7 @@ function appendGoalUpdatesWithinLimits(sessionId, envelope, goalUpdates, enforce
|
|
|
15626
15676
|
validateLoadReplayEnvelope(sessionId, withGoal, enforceLimits);
|
|
15627
15677
|
} catch (error) {
|
|
15628
15678
|
if (!(error instanceof HistoryReplayLimitError)) throw error;
|
|
15629
|
-
|
|
15679
|
+
debugLogger10.debug(
|
|
15630
15680
|
`Kept ${goalUpdates.length} Goal update(s) off a full replay page: ${error.message}`
|
|
15631
15681
|
);
|
|
15632
15682
|
return false;
|
|
@@ -16479,7 +16529,7 @@ function readMcpServers(source, scope) {
|
|
|
16479
16529
|
const server = toMcpServerConfig(value);
|
|
16480
16530
|
return server ? { name, scope, server: redactMcpServerSecrets(server) } : void 0;
|
|
16481
16531
|
} catch (error) {
|
|
16482
|
-
|
|
16532
|
+
debugLogger10.warn(
|
|
16483
16533
|
`Skipping malformed MCP server config [${scope}:${name}]:`,
|
|
16484
16534
|
error
|
|
16485
16535
|
);
|
|
@@ -16575,7 +16625,7 @@ function readHooks(source, scope, extensionName) {
|
|
|
16575
16625
|
extensionName
|
|
16576
16626
|
});
|
|
16577
16627
|
} catch (error) {
|
|
16578
|
-
|
|
16628
|
+
debugLogger10.warn(
|
|
16579
16629
|
`Skipping malformed hook entry [${scope}:${event}:${index}]:`,
|
|
16580
16630
|
error
|
|
16581
16631
|
);
|
|
@@ -16897,7 +16947,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
16897
16947
|
void preloadContentGenerator(
|
|
16898
16948
|
session.getConfig().getContentGenerator()
|
|
16899
16949
|
).catch((error) => {
|
|
16900
|
-
|
|
16950
|
+
debugLogger10.debug(
|
|
16901
16951
|
`[ACP] Session provider preload failed for ${sessionId}: ${error instanceof Error ? error.message : String(error)}`
|
|
16902
16952
|
);
|
|
16903
16953
|
});
|
|
@@ -16945,7 +16995,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
16945
16995
|
drainPoolPromise ??= agentInstance.shutdownMcpPool(8e3);
|
|
16946
16996
|
await drainPoolPromise;
|
|
16947
16997
|
} catch (err) {
|
|
16948
|
-
|
|
16998
|
+
debugLogger10.error(`[ACP] MCP pool drain (${label}) error:`, err);
|
|
16949
16999
|
if (strict) throw err;
|
|
16950
17000
|
}
|
|
16951
17001
|
}, "drainPoolBeforeExit");
|
|
@@ -17001,7 +17051,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17001
17051
|
);
|
|
17002
17052
|
}
|
|
17003
17053
|
for (const failure of failures) {
|
|
17004
|
-
|
|
17054
|
+
debugLogger10.warn(
|
|
17005
17055
|
`SessionEnd hook failed: ${failure instanceof Error ? failure.message : String(failure)}`
|
|
17006
17056
|
);
|
|
17007
17057
|
}
|
|
@@ -17029,7 +17079,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17029
17079
|
await terminal.writerShutdown;
|
|
17030
17080
|
} catch (error) {
|
|
17031
17081
|
failures.push(error);
|
|
17032
|
-
|
|
17082
|
+
debugLogger10.error("[ACP] Managed writer shutdown error:", error);
|
|
17033
17083
|
const retainedLockPaths = terminal.configs.flatMap((config2) => {
|
|
17034
17084
|
if (typeof config2.getSessionRuntimeBaseDir !== "function" || typeof config2.getSessionId !== "function") {
|
|
17035
17085
|
return [];
|
|
@@ -17056,7 +17106,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17056
17106
|
await agent.finishManagedShutdown(terminal.configs);
|
|
17057
17107
|
} catch (error) {
|
|
17058
17108
|
failures.push(error);
|
|
17059
|
-
|
|
17109
|
+
debugLogger10.error("[ACP] Managed resource shutdown error:", error);
|
|
17060
17110
|
}
|
|
17061
17111
|
try {
|
|
17062
17112
|
await drainPoolBeforeExit(label, true);
|
|
@@ -17067,7 +17117,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17067
17117
|
await runExitCleanup();
|
|
17068
17118
|
} catch (error) {
|
|
17069
17119
|
failures.push(error);
|
|
17070
|
-
|
|
17120
|
+
debugLogger10.error("[ACP] Cleanup error:", error);
|
|
17071
17121
|
}
|
|
17072
17122
|
if (failures.length > 0) {
|
|
17073
17123
|
throw new AggregateError(failures, "Managed ACP shutdown failed");
|
|
@@ -17079,14 +17129,14 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17079
17129
|
if (shuttingDown) return;
|
|
17080
17130
|
shuttingDown = true;
|
|
17081
17131
|
prepareFileWatchersForProcessExit();
|
|
17082
|
-
|
|
17132
|
+
debugLogger10.debug("[ACP] Shutdown signal received, closing streams");
|
|
17083
17133
|
if (agentInstance?.isTrustedManagedParent()) {
|
|
17084
17134
|
let exitCode = 0;
|
|
17085
17135
|
try {
|
|
17086
17136
|
await shutdownManagedAgent("other" /* Other */, "signal");
|
|
17087
17137
|
} catch (err) {
|
|
17088
17138
|
exitCode = 1;
|
|
17089
|
-
|
|
17139
|
+
debugLogger10.error("[ACP] Managed shutdown error:", err);
|
|
17090
17140
|
} finally {
|
|
17091
17141
|
eventLoopMonitor.dispose();
|
|
17092
17142
|
}
|
|
@@ -17111,12 +17161,12 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17111
17161
|
}
|
|
17112
17162
|
await drainPoolBeforeExit("signal");
|
|
17113
17163
|
} catch (err) {
|
|
17114
|
-
|
|
17164
|
+
debugLogger10.error("[ACP] Shutdown error:", err);
|
|
17115
17165
|
} finally {
|
|
17116
17166
|
eventLoopMonitor.dispose();
|
|
17117
17167
|
}
|
|
17118
17168
|
runExitCleanup().catch((err) => {
|
|
17119
|
-
|
|
17169
|
+
debugLogger10.error("[ACP] Cleanup error:", err);
|
|
17120
17170
|
}).finally(() => {
|
|
17121
17171
|
process.exit(0);
|
|
17122
17172
|
});
|
|
@@ -17612,12 +17662,12 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
17612
17662
|
try {
|
|
17613
17663
|
session.beginCloseIfAvailable();
|
|
17614
17664
|
} catch (error) {
|
|
17615
|
-
|
|
17665
|
+
debugLogger10.debug(
|
|
17616
17666
|
`Session ${session.getId()} admission close during managed shutdown failed: ${error instanceof Error ? error.message : String(error)}`
|
|
17617
17667
|
);
|
|
17618
17668
|
}
|
|
17619
17669
|
void session.cancelPendingPrompt().catch((error) => {
|
|
17620
|
-
|
|
17670
|
+
debugLogger10.debug(
|
|
17621
17671
|
`Session ${session.getId()} cancel during managed shutdown failed: ${error instanceof Error ? error.message : String(error)}`
|
|
17622
17672
|
);
|
|
17623
17673
|
});
|
|
@@ -17772,7 +17822,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
17772
17822
|
await run();
|
|
17773
17823
|
}).catch((err) => {
|
|
17774
17824
|
this.workspaceMcpDiscoveryError = err instanceof Error ? err.message : String(err);
|
|
17775
|
-
|
|
17825
|
+
debugLogger10.error(
|
|
17776
17826
|
`Workspace MCP ${label} failed: ${err instanceof Error ? err.message : String(err)}`
|
|
17777
17827
|
);
|
|
17778
17828
|
}).finally(() => {
|
|
@@ -17971,7 +18021,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
17971
18021
|
try {
|
|
17972
18022
|
const result = await this.mcpPool.drainAll({ force: true, timeoutMs });
|
|
17973
18023
|
if (result.forced > 0 || result.errors.length > 0) {
|
|
17974
|
-
|
|
18024
|
+
debugLogger10.warn(
|
|
17975
18025
|
`MCP pool drain: ${result.drained} clean, ${result.forced} timed out, ${result.errors.length} errors`
|
|
17976
18026
|
);
|
|
17977
18027
|
throw new Error(
|
|
@@ -17979,7 +18029,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
17979
18029
|
);
|
|
17980
18030
|
}
|
|
17981
18031
|
} catch (err) {
|
|
17982
|
-
|
|
18032
|
+
debugLogger10.error(
|
|
17983
18033
|
`MCP pool drainAll failed: ${err instanceof Error ? err.message : String(err)}`
|
|
17984
18034
|
);
|
|
17985
18035
|
throw err;
|
|
@@ -18024,14 +18074,14 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18024
18074
|
this.detachedWorkflowRegistries.add(registry);
|
|
18025
18075
|
}
|
|
18026
18076
|
} catch (error) {
|
|
18027
|
-
|
|
18077
|
+
debugLogger10.warn(
|
|
18028
18078
|
`Session ${sessionId}: could not retain its workflow registry for liveness checks:`,
|
|
18029
18079
|
error
|
|
18030
18080
|
);
|
|
18031
18081
|
}
|
|
18032
18082
|
this.activeWorkReporter?.notifyChanged();
|
|
18033
18083
|
if (cleanupErrors.length > 0) {
|
|
18034
|
-
|
|
18084
|
+
debugLogger10.warn(
|
|
18035
18085
|
`Session ${sessionId} closed after ${cleanupErrors.length} cleanup failure(s): ${cleanupErrors.map(
|
|
18036
18086
|
(error) => error instanceof Error ? error.message : String(error)
|
|
18037
18087
|
).join("; ")}`
|
|
@@ -18085,7 +18135,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18085
18135
|
try {
|
|
18086
18136
|
await cleanup();
|
|
18087
18137
|
} catch (cleanupError) {
|
|
18088
|
-
|
|
18138
|
+
debugLogger10.warn(
|
|
18089
18139
|
`Session cleanup failed while preserving the original request error: ${cleanupError instanceof Error ? cleanupError.message : String(cleanupError)}`
|
|
18090
18140
|
);
|
|
18091
18141
|
}
|
|
@@ -18136,7 +18186,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18136
18186
|
await this.cleanupUnstoredConfig(config);
|
|
18137
18187
|
} catch (error) {
|
|
18138
18188
|
if (config.getSessionId() === requiredSessionId) throw error;
|
|
18139
|
-
|
|
18189
|
+
debugLogger10.warn(
|
|
18140
18190
|
`Deferred Config cleanup retry failed for session ${config.getSessionId()}: ${error instanceof Error ? error.message : String(error)}`
|
|
18141
18191
|
);
|
|
18142
18192
|
}
|
|
@@ -18184,7 +18234,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18184
18234
|
try {
|
|
18185
18235
|
await session.cancelPendingPrompt();
|
|
18186
18236
|
} catch (err) {
|
|
18187
|
-
|
|
18237
|
+
debugLogger10.debug(
|
|
18188
18238
|
`Session ${sessionId} cancel during close failed: ${err instanceof Error ? err.message : String(err)}`
|
|
18189
18239
|
);
|
|
18190
18240
|
}
|
|
@@ -18297,7 +18347,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18297
18347
|
}
|
|
18298
18348
|
return messaging;
|
|
18299
18349
|
} catch (error) {
|
|
18300
|
-
|
|
18350
|
+
debugLogger10.error(
|
|
18301
18351
|
"[ACP] cross-session messaging failed to start:",
|
|
18302
18352
|
error
|
|
18303
18353
|
);
|
|
@@ -18315,7 +18365,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18315
18365
|
try {
|
|
18316
18366
|
await (await pending)?.close();
|
|
18317
18367
|
} catch (error) {
|
|
18318
|
-
|
|
18368
|
+
debugLogger10.debug(
|
|
18319
18369
|
`[ACP] closing cross-session messaging failed: ${error instanceof Error ? error.message : String(error)}`
|
|
18320
18370
|
);
|
|
18321
18371
|
}
|
|
@@ -18449,7 +18499,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18449
18499
|
finalizeDanglingForRestore(session, turnIdleBeforeRead) {
|
|
18450
18500
|
const idleAtReplay = session?.isTurnIdle() ?? true;
|
|
18451
18501
|
const finalize = turnIdleBeforeRead && idleAtReplay;
|
|
18452
|
-
|
|
18502
|
+
debugLogger10.debug(
|
|
18453
18503
|
`[ACP] restore replay finalizeDangling=${finalize} (idleBeforeRead=${turnIdleBeforeRead}, idleAtReplay=${idleAtReplay}) session=${session?.getId() ?? "(non-live)"}`
|
|
18454
18504
|
);
|
|
18455
18505
|
return finalize;
|
|
@@ -18489,7 +18539,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18489
18539
|
scope: "workspace",
|
|
18490
18540
|
...event
|
|
18491
18541
|
}).catch((err) => {
|
|
18492
|
-
|
|
18542
|
+
debugLogger10.debug(
|
|
18493
18543
|
`MCP workspace budget event delivery to session ${sid} failed (kind=${event.kind}): ${err instanceof Error ? err.message : String(err)}`
|
|
18494
18544
|
);
|
|
18495
18545
|
});
|
|
@@ -18526,7 +18576,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18526
18576
|
const authMethods = pickAuthMethodsForAuthRequired(
|
|
18527
18577
|
this.config.getCurrentAuthType?.() ?? this.config.getAuthType?.()
|
|
18528
18578
|
);
|
|
18529
|
-
const version = "0.
|
|
18579
|
+
const version = "0.5.0";
|
|
18530
18580
|
const response = {
|
|
18531
18581
|
protocolVersion: PROTOCOL_VERSION,
|
|
18532
18582
|
agentInfo: {
|
|
@@ -18883,7 +18933,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18883
18933
|
maxUpdates: LOAD_REPLAY_MAX_UPDATES
|
|
18884
18934
|
}
|
|
18885
18935
|
} : {},
|
|
18886
|
-
logger:
|
|
18936
|
+
logger: debugLogger10
|
|
18887
18937
|
})
|
|
18888
18938
|
);
|
|
18889
18939
|
addDaemonRequestAttribute(
|
|
@@ -18897,7 +18947,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18897
18947
|
replayPage.records
|
|
18898
18948
|
);
|
|
18899
18949
|
} catch (error) {
|
|
18900
|
-
|
|
18950
|
+
debugLogger10.debug(
|
|
18901
18951
|
`Failed to render the legacy Goal supersession: ${error instanceof Error ? error.message : String(error)}`
|
|
18902
18952
|
);
|
|
18903
18953
|
return [];
|
|
@@ -18918,7 +18968,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18918
18968
|
try {
|
|
18919
18969
|
await liveSession.sendUpdate(update);
|
|
18920
18970
|
} catch (error) {
|
|
18921
|
-
|
|
18971
|
+
debugLogger10.debug(
|
|
18922
18972
|
`Failed to send the legacy Goal supersession: ${error instanceof Error ? error.message : String(error)}`
|
|
18923
18973
|
);
|
|
18924
18974
|
}
|
|
@@ -18997,6 +19047,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18997
19047
|
config.suppressRestorableAskUserQuestionPreservation();
|
|
18998
19048
|
}
|
|
18999
19049
|
const projection = config.consumeSessionRestoreProjection?.();
|
|
19050
|
+
applyRestoredSessionApprovalMode(config, projection);
|
|
19000
19051
|
const suppressRecoveredGoalPresentation = projection?.runtime.goalRecoverySourceUuid !== void 0 && projection.runtime.goalRecoverySourceUuid !== projection.replay?.goalRecoverySourceUuid;
|
|
19001
19052
|
const bulkReplay = isBulkLoadReplayRequest(params);
|
|
19002
19053
|
let replayEnvelope;
|
|
@@ -19075,7 +19126,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19075
19126
|
maxUpdates: LOAD_REPLAY_MAX_UPDATES
|
|
19076
19127
|
}
|
|
19077
19128
|
} : {},
|
|
19078
|
-
logger:
|
|
19129
|
+
logger: debugLogger10
|
|
19079
19130
|
})
|
|
19080
19131
|
);
|
|
19081
19132
|
addDaemonRequestAttribute(
|
|
@@ -19109,7 +19160,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19109
19160
|
}
|
|
19110
19161
|
).catch((error) => {
|
|
19111
19162
|
if (suppressRecoveredGoalPresentation) throw error;
|
|
19112
|
-
|
|
19163
|
+
debugLogger10.debug(
|
|
19113
19164
|
`Failed to render recovered Goal state: ${error instanceof Error ? error.message : String(error)}`
|
|
19114
19165
|
);
|
|
19115
19166
|
return {
|
|
@@ -19193,7 +19244,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19193
19244
|
await createdSession.sendUpdate(update);
|
|
19194
19245
|
}
|
|
19195
19246
|
} catch (error) {
|
|
19196
|
-
|
|
19247
|
+
debugLogger10.debug(
|
|
19197
19248
|
`Failed to publish recovered Goal state: ${error instanceof Error ? error.message : String(error)}`
|
|
19198
19249
|
);
|
|
19199
19250
|
}
|
|
@@ -19336,6 +19387,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19336
19387
|
config.suppressRestorableAskUserQuestionPreservation();
|
|
19337
19388
|
}
|
|
19338
19389
|
const projection = config.consumeSessionRestoreProjection?.();
|
|
19390
|
+
applyRestoredSessionApprovalMode(config, projection);
|
|
19339
19391
|
let response;
|
|
19340
19392
|
try {
|
|
19341
19393
|
if (!provisionalStandalone) {
|
|
@@ -19440,7 +19492,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19440
19492
|
session.pendingWorktreeNotice = restored.contextMessage;
|
|
19441
19493
|
}
|
|
19442
19494
|
} catch (error) {
|
|
19443
|
-
|
|
19495
|
+
debugLogger10.warn(`ACP worktree restore failed: ${error}`);
|
|
19444
19496
|
}
|
|
19445
19497
|
}
|
|
19446
19498
|
async #restoreBackgroundAgentsOnResume(config, session) {
|
|
@@ -19834,7 +19886,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19834
19886
|
await extensionManager.refreshCache();
|
|
19835
19887
|
extensions = extensionManager.getLoadedExtensions();
|
|
19836
19888
|
} catch (error) {
|
|
19837
|
-
|
|
19889
|
+
debugLogger10.warn(
|
|
19838
19890
|
"Extension loading failed, continuing without extensions:",
|
|
19839
19891
|
error
|
|
19840
19892
|
);
|
|
@@ -19968,7 +20020,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19968
20020
|
pm.addPersistentRule(rule, ruleType);
|
|
19969
20021
|
}
|
|
19970
20022
|
} catch (error) {
|
|
19971
|
-
|
|
20023
|
+
debugLogger10.warn(
|
|
19972
20024
|
`Failed to sync permission rules to a live session: ${error instanceof Error ? error.message : String(error)}`
|
|
19973
20025
|
);
|
|
19974
20026
|
}
|
|
@@ -20560,7 +20612,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
20560
20612
|
if (!changed) return;
|
|
20561
20613
|
await config.getSkillManager()?.refreshCache();
|
|
20562
20614
|
} catch (error) {
|
|
20563
|
-
|
|
20615
|
+
debugLogger10.warn("Extension source revalidation failed:", error);
|
|
20564
20616
|
}
|
|
20565
20617
|
}
|
|
20566
20618
|
async buildWorkspaceSkillsStatus(config, settings = this.settings) {
|
|
@@ -21638,7 +21690,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
21638
21690
|
"o1code/session/sources/copy"
|
|
21639
21691
|
].includes(method)) {
|
|
21640
21692
|
if (!(error instanceof SessionSourceError)) {
|
|
21641
|
-
|
|
21693
|
+
debugLogger10.error("[ACP] Session source ext-method error:", error);
|
|
21642
21694
|
}
|
|
21643
21695
|
return {
|
|
21644
21696
|
sourceError: error instanceof SessionSourceError ? { code: error.code, message: error.message } : {
|
|
@@ -22139,7 +22191,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22139
22191
|
config,
|
|
22140
22192
|
finalizeDangling: !activePromptBeforeRead && !this.activePromptCalls.has(sessionId2),
|
|
22141
22193
|
encodeCursor: /* @__PURE__ */ __name((state) => encodeSessionTranscriptCursor(state, cwd), "encodeCursor"),
|
|
22142
|
-
logger:
|
|
22194
|
+
logger: debugLogger10
|
|
22143
22195
|
});
|
|
22144
22196
|
return {
|
|
22145
22197
|
v: 1,
|
|
@@ -22429,7 +22481,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22429
22481
|
);
|
|
22430
22482
|
if (childSignal.aborted) {
|
|
22431
22483
|
const timeoutCode = "remember_timeout";
|
|
22432
|
-
|
|
22484
|
+
debugLogger10.error("Workspace memory remember timed out:", {
|
|
22433
22485
|
projectRoot,
|
|
22434
22486
|
code: timeoutCode,
|
|
22435
22487
|
details: diagnostics.debugDetails,
|
|
@@ -22441,7 +22493,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22441
22493
|
workspaceMemoryErrorData(timeoutCode, diagnostics)
|
|
22442
22494
|
);
|
|
22443
22495
|
}
|
|
22444
|
-
|
|
22496
|
+
debugLogger10.error("Workspace memory remember failed:", {
|
|
22445
22497
|
projectRoot,
|
|
22446
22498
|
code,
|
|
22447
22499
|
details: diagnostics.debugDetails,
|
|
@@ -22520,7 +22572,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22520
22572
|
);
|
|
22521
22573
|
if (childSignal.aborted) {
|
|
22522
22574
|
const timeoutCode = "forget_timeout";
|
|
22523
|
-
|
|
22575
|
+
debugLogger10.error("Workspace memory forget timed out:", {
|
|
22524
22576
|
projectRoot,
|
|
22525
22577
|
code: timeoutCode,
|
|
22526
22578
|
details: diagnostics.debugDetails,
|
|
@@ -22532,7 +22584,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22532
22584
|
workspaceMemoryErrorData(timeoutCode, diagnostics)
|
|
22533
22585
|
);
|
|
22534
22586
|
}
|
|
22535
|
-
|
|
22587
|
+
debugLogger10.error("Workspace memory forget failed:", {
|
|
22536
22588
|
projectRoot,
|
|
22537
22589
|
code,
|
|
22538
22590
|
details: diagnostics.debugDetails,
|
|
@@ -22600,7 +22652,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22600
22652
|
);
|
|
22601
22653
|
if (childSignal.aborted) {
|
|
22602
22654
|
const timeoutCode = "dream_timeout";
|
|
22603
|
-
|
|
22655
|
+
debugLogger10.error("Workspace memory dream timed out:", {
|
|
22604
22656
|
projectRoot,
|
|
22605
22657
|
code: timeoutCode,
|
|
22606
22658
|
details: diagnostics.debugDetails,
|
|
@@ -22612,7 +22664,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22612
22664
|
workspaceMemoryErrorData(timeoutCode, diagnostics)
|
|
22613
22665
|
);
|
|
22614
22666
|
}
|
|
22615
|
-
|
|
22667
|
+
debugLogger10.error("Workspace memory dream failed:", {
|
|
22616
22668
|
projectRoot,
|
|
22617
22669
|
code,
|
|
22618
22670
|
details: diagnostics.debugDetails,
|
|
@@ -23022,7 +23074,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23022
23074
|
error: error instanceof Error ? error.message : String(error)
|
|
23023
23075
|
});
|
|
23024
23076
|
rejectStarted(error);
|
|
23025
|
-
|
|
23077
|
+
debugLogger10.warn(
|
|
23026
23078
|
`MCP OAuth authentication failed for ${serverName}:`,
|
|
23027
23079
|
error
|
|
23028
23080
|
);
|
|
@@ -23034,7 +23086,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23034
23086
|
"discover"
|
|
23035
23087
|
);
|
|
23036
23088
|
} catch (error) {
|
|
23037
|
-
|
|
23089
|
+
debugLogger10.warn(
|
|
23038
23090
|
`MCP OAuth authenticated for ${serverName}, but tool synchronization failed:`,
|
|
23039
23091
|
error
|
|
23040
23092
|
);
|
|
@@ -23225,7 +23277,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23225
23277
|
try {
|
|
23226
23278
|
await this.cleanupUnstoredConfig(temporaryConfig);
|
|
23227
23279
|
} catch (error) {
|
|
23228
|
-
|
|
23280
|
+
debugLogger10.warn("Failed to clean up source copy config:", error);
|
|
23229
23281
|
}
|
|
23230
23282
|
}
|
|
23231
23283
|
}
|
|
@@ -23892,6 +23944,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23892
23944
|
}
|
|
23893
23945
|
throw err;
|
|
23894
23946
|
}
|
|
23947
|
+
void recordDaemonSessionApprovalModeFromConfig(config);
|
|
23895
23948
|
const current = config.getApprovalMode();
|
|
23896
23949
|
if (current === "plan") {
|
|
23897
23950
|
if (previous !== "plan") {
|
|
@@ -23947,7 +24000,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23947
24000
|
try {
|
|
23948
24001
|
await setLanguageAsync(language);
|
|
23949
24002
|
} catch (err) {
|
|
23950
|
-
|
|
24003
|
+
debugLogger10.warn("setLanguageAsync failed:", err);
|
|
23951
24004
|
throw new RequestError(
|
|
23952
24005
|
-32603,
|
|
23953
24006
|
`Failed to switch UI language: ${err instanceof Error ? err.message : String(err)}`
|
|
@@ -23961,7 +24014,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23961
24014
|
language
|
|
23962
24015
|
);
|
|
23963
24016
|
} catch (err) {
|
|
23964
|
-
|
|
24017
|
+
debugLogger10.warn("Failed to persist UI language setting:", err);
|
|
23965
24018
|
}
|
|
23966
24019
|
let outputLanguage = null;
|
|
23967
24020
|
let refreshed = false;
|
|
@@ -23975,7 +24028,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23975
24028
|
);
|
|
23976
24029
|
fileWriteOk = true;
|
|
23977
24030
|
} catch (err) {
|
|
23978
|
-
|
|
24031
|
+
debugLogger10.warn("Failed to write output-language.md:", err);
|
|
23979
24032
|
}
|
|
23980
24033
|
if (fileWriteOk) {
|
|
23981
24034
|
try {
|
|
@@ -23985,7 +24038,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23985
24038
|
settingValue
|
|
23986
24039
|
);
|
|
23987
24040
|
} catch (err) {
|
|
23988
|
-
|
|
24041
|
+
debugLogger10.warn(
|
|
23989
24042
|
"Failed to persist output language setting:",
|
|
23990
24043
|
err
|
|
23991
24044
|
);
|
|
@@ -24005,7 +24058,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24005
24058
|
writeOutputLanguageAndRegisterPath(settingValue, cfg);
|
|
24006
24059
|
}
|
|
24007
24060
|
} catch (err) {
|
|
24008
|
-
|
|
24061
|
+
debugLogger10.warn(
|
|
24009
24062
|
`Failed to write output-language.md for session ${s.getId()} (path=${sessionPath ?? "global-default"}):`,
|
|
24010
24063
|
err
|
|
24011
24064
|
);
|
|
@@ -24018,7 +24071,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24018
24071
|
(r) => r.status === "rejected"
|
|
24019
24072
|
).length;
|
|
24020
24073
|
if (failedCount > 0) {
|
|
24021
|
-
|
|
24074
|
+
debugLogger10.warn(
|
|
24022
24075
|
`Language refresh failed for ${failedCount}/${results.length} session(s)`
|
|
24023
24076
|
);
|
|
24024
24077
|
}
|
|
@@ -24044,7 +24097,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24044
24097
|
try {
|
|
24045
24098
|
await setLanguageAsync(language);
|
|
24046
24099
|
} catch (err) {
|
|
24047
|
-
|
|
24100
|
+
debugLogger10.warn("setLanguageAsync failed:", err);
|
|
24048
24101
|
throw new RequestError(
|
|
24049
24102
|
-32603,
|
|
24050
24103
|
`Failed to switch UI language: ${err instanceof Error ? err.message : String(err)}`
|
|
@@ -24066,7 +24119,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24066
24119
|
sessions = results.length;
|
|
24067
24120
|
failed = results.filter((r) => r.status === "rejected").length;
|
|
24068
24121
|
if (failed > 0) {
|
|
24069
|
-
|
|
24122
|
+
debugLogger10.warn(
|
|
24070
24123
|
`User language refresh failed for ${failed}/${results.length} session(s)`
|
|
24071
24124
|
);
|
|
24072
24125
|
}
|
|
@@ -24081,14 +24134,14 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24081
24134
|
"Invalid or missing sessionId"
|
|
24082
24135
|
);
|
|
24083
24136
|
}
|
|
24084
|
-
|
|
24137
|
+
debugLogger10.debug(`recap ext-method received for session=${sessionId2}`);
|
|
24085
24138
|
const session = this.sessionOrThrow(sessionId2);
|
|
24086
24139
|
const config = session.getConfig();
|
|
24087
24140
|
const recap = await generateSessionRecap(
|
|
24088
24141
|
config,
|
|
24089
24142
|
new AbortController().signal
|
|
24090
24143
|
);
|
|
24091
|
-
|
|
24144
|
+
debugLogger10.debug(
|
|
24092
24145
|
`recap ext-method completed for session=${sessionId2} result=${recap ? `len=${recap.length}` : "null"}`
|
|
24093
24146
|
);
|
|
24094
24147
|
return { sessionId: sessionId2, recap };
|
|
@@ -24170,7 +24223,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24170
24223
|
const config = session.getConfig();
|
|
24171
24224
|
const cacheSafeParams = buildBtwCacheSafeParams(config);
|
|
24172
24225
|
if (!cacheSafeParams) {
|
|
24173
|
-
|
|
24226
|
+
debugLogger10.debug(`btw: no cacheSafeParams for session=${sessionId2}`);
|
|
24174
24227
|
return { sessionId: sessionId2, answer: null };
|
|
24175
24228
|
}
|
|
24176
24229
|
const childSignal = AbortSignal.timeout(BTW_CHILD_TIMEOUT_MS);
|
|
@@ -24224,7 +24277,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24224
24277
|
try {
|
|
24225
24278
|
hasHistory = (config.getLlmClient().getHistoryShallow() ?? []).length > 0;
|
|
24226
24279
|
} catch (error) {
|
|
24227
|
-
|
|
24280
|
+
debugLogger10.debug("Failed to read history before /fork:", error);
|
|
24228
24281
|
}
|
|
24229
24282
|
if (!hasHistory) {
|
|
24230
24283
|
throw RequestError.invalidParams(
|
|
@@ -24266,7 +24319,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24266
24319
|
]
|
|
24267
24320
|
});
|
|
24268
24321
|
} catch (error) {
|
|
24269
|
-
|
|
24322
|
+
debugLogger10.debug("Failed to record fork event in history:", error);
|
|
24270
24323
|
}
|
|
24271
24324
|
return { sessionId: sessionId2, description, launched: true };
|
|
24272
24325
|
}
|
|
@@ -24329,7 +24382,7 @@ ${outputText}
|
|
|
24329
24382
|
'taskKind must be "agent", "shell", "monitor", or "workflow"'
|
|
24330
24383
|
);
|
|
24331
24384
|
}
|
|
24332
|
-
|
|
24385
|
+
debugLogger10.info(
|
|
24333
24386
|
`sessionTaskCancel requested sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind}`
|
|
24334
24387
|
);
|
|
24335
24388
|
const session = this.sessionOrThrow(sessionId2);
|
|
@@ -24339,7 +24392,7 @@ ${outputText}
|
|
|
24339
24392
|
const task = config.getBackgroundTaskRegistry().get(taskId);
|
|
24340
24393
|
if (!task || task.status !== "running" && task.status !== "paused") {
|
|
24341
24394
|
const reason = task ? "not_running" : "not_found";
|
|
24342
|
-
|
|
24395
|
+
debugLogger10.info(
|
|
24343
24396
|
`sessionTaskCancel skipped sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} reason=${reason} status=${task?.status ?? "missing"}`
|
|
24344
24397
|
);
|
|
24345
24398
|
return { cancelled: false, reason, status: task?.status };
|
|
@@ -24349,7 +24402,7 @@ ${outputText}
|
|
|
24349
24402
|
} else {
|
|
24350
24403
|
config.getBackgroundTaskRegistry().cancel(taskId);
|
|
24351
24404
|
}
|
|
24352
|
-
|
|
24405
|
+
debugLogger10.info(
|
|
24353
24406
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=${task.status}`
|
|
24354
24407
|
);
|
|
24355
24408
|
return { cancelled: true, status: task.status };
|
|
@@ -24358,13 +24411,13 @@ ${outputText}
|
|
|
24358
24411
|
const task = config.getBackgroundShellRegistry().get(taskId);
|
|
24359
24412
|
if (!task || task.status !== "running") {
|
|
24360
24413
|
const reason = task ? "not_running" : "not_found";
|
|
24361
|
-
|
|
24414
|
+
debugLogger10.info(
|
|
24362
24415
|
`sessionTaskCancel skipped sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} reason=${reason} status=${task?.status ?? "missing"}`
|
|
24363
24416
|
);
|
|
24364
24417
|
return { cancelled: false, reason, status: task?.status };
|
|
24365
24418
|
}
|
|
24366
24419
|
config.getBackgroundShellRegistry().requestCancel(taskId);
|
|
24367
|
-
|
|
24420
|
+
debugLogger10.info(
|
|
24368
24421
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=${task.status}`
|
|
24369
24422
|
);
|
|
24370
24423
|
return { cancelled: true, status: task.status };
|
|
@@ -24373,13 +24426,13 @@ ${outputText}
|
|
|
24373
24426
|
const task = config.getMonitorRegistry().get(taskId);
|
|
24374
24427
|
if (!task || task.status !== "running") {
|
|
24375
24428
|
const reason = task ? "not_running" : "not_found";
|
|
24376
|
-
|
|
24429
|
+
debugLogger10.info(
|
|
24377
24430
|
`sessionTaskCancel skipped sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} reason=${reason} status=${task?.status ?? "missing"}`
|
|
24378
24431
|
);
|
|
24379
24432
|
return { cancelled: false, reason, status: task?.status };
|
|
24380
24433
|
}
|
|
24381
24434
|
config.getMonitorRegistry().cancel(taskId);
|
|
24382
|
-
|
|
24435
|
+
debugLogger10.info(
|
|
24383
24436
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=${task.status}`
|
|
24384
24437
|
);
|
|
24385
24438
|
return { cancelled: true, status: task.status };
|
|
@@ -24392,14 +24445,14 @@ ${outputText}
|
|
|
24392
24445
|
const task = registry.get(taskId);
|
|
24393
24446
|
if ((!task || isTerminalWorkflowStatus(task.status)) && registry.isStarting?.(taskId)) {
|
|
24394
24447
|
registry.cancelStarting(taskId);
|
|
24395
|
-
|
|
24448
|
+
debugLogger10.info(
|
|
24396
24449
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=starting`
|
|
24397
24450
|
);
|
|
24398
24451
|
return { cancelled: true, status: "cancelled" };
|
|
24399
24452
|
}
|
|
24400
24453
|
if (!task || task.status !== "running" && task.status !== "pausing" && task.status !== "paused") {
|
|
24401
24454
|
const reason = task ? "not_running" : "not_found";
|
|
24402
|
-
|
|
24455
|
+
debugLogger10.info(
|
|
24403
24456
|
`sessionTaskCancel skipped sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} reason=${reason} status=${task?.status ?? "missing"}`
|
|
24404
24457
|
);
|
|
24405
24458
|
return { cancelled: false, reason, status: task?.status };
|
|
@@ -24407,7 +24460,7 @@ ${outputText}
|
|
|
24407
24460
|
const handle = registry.getHandle(taskId);
|
|
24408
24461
|
registry.cancel(taskId, Date.now());
|
|
24409
24462
|
if (handle) await handle.completion;
|
|
24410
|
-
|
|
24463
|
+
debugLogger10.info(
|
|
24411
24464
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=${task.status}`
|
|
24412
24465
|
);
|
|
24413
24466
|
return { cancelled: true, status: task.status };
|
|
@@ -24597,7 +24650,7 @@ ${outputText}
|
|
|
24597
24650
|
runtime = await config.getGoalRuntimeReady();
|
|
24598
24651
|
} catch (error) {
|
|
24599
24652
|
if (!(error instanceof GoalPersistenceUnavailableError)) throw error;
|
|
24600
|
-
|
|
24653
|
+
debugLogger10.info(
|
|
24601
24654
|
`sessionGoalClear sessionId=${sessionId2} cleared=false (goal persistence unavailable)`
|
|
24602
24655
|
);
|
|
24603
24656
|
return {
|
|
@@ -24613,7 +24666,7 @@ ${outputText}
|
|
|
24613
24666
|
expectedGoalId: goal.goalId,
|
|
24614
24667
|
expectedRevision: goal.revision
|
|
24615
24668
|
}) : { snapshot: before };
|
|
24616
|
-
|
|
24669
|
+
debugLogger10.info(
|
|
24617
24670
|
`sessionGoalClear sessionId=${sessionId2} cleared=${!!goal} objective=${goal?.objective ?? "(none)"}`
|
|
24618
24671
|
);
|
|
24619
24672
|
return {
|
|
@@ -24769,7 +24822,7 @@ ${outputText}
|
|
|
24769
24822
|
}
|
|
24770
24823
|
const session = this.sessionOrThrow(sessionId2);
|
|
24771
24824
|
const result = await session.continueLastTurn();
|
|
24772
|
-
|
|
24825
|
+
debugLogger10.info(
|
|
24773
24826
|
`sessionContinue sessionId=${sessionId2} accepted=${result.accepted} interruption=${result.interruption}`
|
|
24774
24827
|
);
|
|
24775
24828
|
return result;
|
|
@@ -24791,7 +24844,7 @@ ${outputText}
|
|
|
24791
24844
|
request.runtimeClientId
|
|
24792
24845
|
);
|
|
24793
24846
|
} catch (sessionErr) {
|
|
24794
|
-
|
|
24847
|
+
debugLogger10.warn(
|
|
24795
24848
|
`workspaceMcpRuntimeAdd: failed to add runtime MCP server '${request.name}' to active session ${session.getConfig().getSessionId()}: ${sessionErr instanceof Error ? sessionErr.message : String(sessionErr)}`
|
|
24796
24849
|
);
|
|
24797
24850
|
}
|
|
@@ -24814,7 +24867,7 @@ ${outputText}
|
|
|
24814
24867
|
request.runtimeClientId
|
|
24815
24868
|
);
|
|
24816
24869
|
} catch (sessionErr) {
|
|
24817
|
-
|
|
24870
|
+
debugLogger10.warn(
|
|
24818
24871
|
`workspaceMcpRuntimeRemove: failed to remove runtime MCP server '${request.name}' from active session ${session.getConfig().getSessionId()}: ${sessionErr instanceof Error ? sessionErr.message : String(sessionErr)}`
|
|
24819
24872
|
);
|
|
24820
24873
|
}
|
|
@@ -24942,7 +24995,7 @@ ${outputText}
|
|
|
24942
24995
|
}
|
|
24943
24996
|
);
|
|
24944
24997
|
if (success) {
|
|
24945
|
-
fireSessionDeleteHook(this.config, sessionId2,
|
|
24998
|
+
fireSessionDeleteHook(this.config, sessionId2, debugLogger10);
|
|
24946
24999
|
}
|
|
24947
25000
|
return { success };
|
|
24948
25001
|
}
|
|
@@ -25088,7 +25141,7 @@ ${outputText}
|
|
|
25088
25141
|
filesFailed = fileResult.filesFailed;
|
|
25089
25142
|
} catch (err) {
|
|
25090
25143
|
const reason = err instanceof Error ? err.message : String(err);
|
|
25091
|
-
|
|
25144
|
+
debugLogger10.error(
|
|
25092
25145
|
`[ACP] File-history rewind failed for session=${sessionId2} promptId=${promptId}: ${reason}`
|
|
25093
25146
|
);
|
|
25094
25147
|
filesFailed = [`file-history-rewind: ${reason}`];
|
|
@@ -25120,7 +25173,7 @@ ${outputText}
|
|
|
25120
25173
|
} catch (err) {
|
|
25121
25174
|
const reason = err instanceof Error ? err.message : String(err);
|
|
25122
25175
|
artifactSnapshotUnavailable = "artifact snapshot unavailable after rewind";
|
|
25123
|
-
|
|
25176
|
+
debugLogger10.warn(
|
|
25124
25177
|
`[ACP] Failed to rebuild artifact snapshot after rewind for session=${sessionId2}: ${reason}`
|
|
25125
25178
|
);
|
|
25126
25179
|
}
|
|
@@ -25179,7 +25232,7 @@ ${outputText}
|
|
|
25179
25232
|
records: sessionData.conversation.messages,
|
|
25180
25233
|
gaps: sessionData.historyGaps,
|
|
25181
25234
|
cumulativeUsage: createReplayCumulativeUsage(),
|
|
25182
|
-
logger:
|
|
25235
|
+
logger: debugLogger10,
|
|
25183
25236
|
// Read-only history dump never re-hangs the question. Skip
|
|
25184
25237
|
// finalize only on load/resume that will actually restore.
|
|
25185
25238
|
suppressRestoreAskUserQuestion: true,
|
|
@@ -25570,7 +25623,7 @@ ${outputText}
|
|
|
25570
25623
|
"User" /* User */,
|
|
25571
25624
|
"Workspace" /* Workspace */
|
|
25572
25625
|
])) {
|
|
25573
|
-
|
|
25626
|
+
debugLogger10.warn("Model-provider settings reload failed");
|
|
25574
25627
|
return { configsRefreshed: 0, configsFailed: 1 };
|
|
25575
25628
|
}
|
|
25576
25629
|
const reloadRevision = ++this.modelProviderReloadRevision;
|
|
@@ -25590,7 +25643,7 @@ ${outputText}
|
|
|
25590
25643
|
configsRefreshed += 1;
|
|
25591
25644
|
} catch {
|
|
25592
25645
|
configsFailed += 1;
|
|
25593
|
-
|
|
25646
|
+
debugLogger10.warn(`Model-provider reload failed for ${id}`);
|
|
25594
25647
|
}
|
|
25595
25648
|
}, "reloadConfig");
|
|
25596
25649
|
await reloadConfig(this.config, "bootstrap");
|
|
@@ -25605,7 +25658,7 @@ ${outputText}
|
|
|
25605
25658
|
configsRefreshed += 1;
|
|
25606
25659
|
} catch {
|
|
25607
25660
|
configsFailed += 1;
|
|
25608
|
-
|
|
25661
|
+
debugLogger10.warn(`Model-provider reload failed for session ${id}`);
|
|
25609
25662
|
}
|
|
25610
25663
|
}
|
|
25611
25664
|
return {
|
|
@@ -25634,7 +25687,7 @@ ${outputText}
|
|
|
25634
25687
|
newMerged.tools?.approvalMode
|
|
25635
25688
|
);
|
|
25636
25689
|
if (reloadedApprovalMode === void 0) {
|
|
25637
|
-
|
|
25690
|
+
debugLogger10.warn(
|
|
25638
25691
|
"reload: tools.approvalMode holds a value boot would reject; live sessions keep their current modes until the file is corrected"
|
|
25639
25692
|
);
|
|
25640
25693
|
}
|
|
@@ -25653,7 +25706,7 @@ ${outputText}
|
|
|
25653
25706
|
content: { type: "text", text: reasoningError },
|
|
25654
25707
|
_meta: { o1codeDiscreteMessage: true }
|
|
25655
25708
|
}).catch(
|
|
25656
|
-
(error) =>
|
|
25709
|
+
(error) => debugLogger10.warn("Reasoning notice delivery failed", error)
|
|
25657
25710
|
);
|
|
25658
25711
|
if (!session.isIdle()) {
|
|
25659
25712
|
skipped.push(id);
|
|
@@ -25669,7 +25722,7 @@ ${outputText}
|
|
|
25669
25722
|
newMerged.providerProtocol ?? {}
|
|
25670
25723
|
);
|
|
25671
25724
|
} catch (err) {
|
|
25672
|
-
|
|
25725
|
+
debugLogger10.warn(
|
|
25673
25726
|
`reload: reloadModelProvidersConfig failed for session ${id}: ${err}`
|
|
25674
25727
|
);
|
|
25675
25728
|
}
|
|
@@ -25677,7 +25730,7 @@ ${outputText}
|
|
|
25677
25730
|
try {
|
|
25678
25731
|
await config.setImageModel(newMerged.imageModel);
|
|
25679
25732
|
} catch (err) {
|
|
25680
|
-
|
|
25733
|
+
debugLogger10.warn(
|
|
25681
25734
|
`reload: setImageModel failed for session ${id}: ${err}`
|
|
25682
25735
|
);
|
|
25683
25736
|
}
|
|
@@ -25687,7 +25740,7 @@ ${outputText}
|
|
|
25687
25740
|
await config.switchModel(authType, newModelName);
|
|
25688
25741
|
session.reloadReasoningSelection();
|
|
25689
25742
|
} catch (err) {
|
|
25690
|
-
|
|
25743
|
+
debugLogger10.warn(
|
|
25691
25744
|
`reload: switchModel failed for session ${id}: ${err}`
|
|
25692
25745
|
);
|
|
25693
25746
|
}
|
|
@@ -25701,7 +25754,7 @@ ${outputText}
|
|
|
25701
25754
|
);
|
|
25702
25755
|
session.reloadReasoningSelection();
|
|
25703
25756
|
} catch (err) {
|
|
25704
|
-
|
|
25757
|
+
debugLogger10.warn(
|
|
25705
25758
|
`reload: refreshAuth failed for session ${id}: ${err}`
|
|
25706
25759
|
);
|
|
25707
25760
|
}
|
|
@@ -25720,7 +25773,7 @@ ${outputText}
|
|
|
25720
25773
|
try {
|
|
25721
25774
|
await session.sendAvailableCommandsUpdate();
|
|
25722
25775
|
} catch (err) {
|
|
25723
|
-
|
|
25776
|
+
debugLogger10.warn(
|
|
25724
25777
|
`reload: sendAvailableCommandsUpdate failed for session ${id}: ${err}`
|
|
25725
25778
|
);
|
|
25726
25779
|
}
|
|
@@ -25743,7 +25796,7 @@ ${outputText}
|
|
|
25743
25796
|
reloadedSessionMode
|
|
25744
25797
|
);
|
|
25745
25798
|
} catch (err) {
|
|
25746
|
-
|
|
25799
|
+
debugLogger10.warn(
|
|
25747
25800
|
`reload: setApprovalMode failed for session ${id}: ${err}`
|
|
25748
25801
|
);
|
|
25749
25802
|
}
|
|
@@ -25754,14 +25807,14 @@ ${outputText}
|
|
|
25754
25807
|
try {
|
|
25755
25808
|
await config.refreshHierarchicalMemory();
|
|
25756
25809
|
} catch (err) {
|
|
25757
|
-
|
|
25810
|
+
debugLogger10.warn(
|
|
25758
25811
|
`reload: refreshHierarchicalMemory failed for session ${id}: ${err}`
|
|
25759
25812
|
);
|
|
25760
25813
|
}
|
|
25761
25814
|
try {
|
|
25762
25815
|
await config.getLlmClient()?.refreshSystemInstruction();
|
|
25763
25816
|
} catch (err) {
|
|
25764
|
-
|
|
25817
|
+
debugLogger10.warn(
|
|
25765
25818
|
`reload: refreshSystemInstruction failed for session ${id}: ${err}`
|
|
25766
25819
|
);
|
|
25767
25820
|
}
|
|
@@ -25771,7 +25824,7 @@ ${outputText}
|
|
|
25771
25824
|
for (let i = 0; i < results.length; i++) {
|
|
25772
25825
|
if (results[i].status === "rejected") {
|
|
25773
25826
|
const reason = results[i].reason;
|
|
25774
|
-
|
|
25827
|
+
debugLogger10.warn(
|
|
25775
25828
|
`Session ${sessions[i][0]} reload failed: ${reason}`
|
|
25776
25829
|
);
|
|
25777
25830
|
skipped.push(sessions[i][0]);
|
|
@@ -25816,7 +25869,7 @@ ${outputText}
|
|
|
25816
25869
|
);
|
|
25817
25870
|
for (const result of configResults) {
|
|
25818
25871
|
if (result.status === "rejected") {
|
|
25819
|
-
|
|
25872
|
+
debugLogger10.warn(`Skill config refresh failed: ${result.reason}`);
|
|
25820
25873
|
}
|
|
25821
25874
|
}
|
|
25822
25875
|
}
|
|
@@ -25835,7 +25888,7 @@ ${outputText}
|
|
|
25835
25888
|
for (let i = 0; i < results.length; i++) {
|
|
25836
25889
|
if (results[i].status === "rejected") {
|
|
25837
25890
|
const reason2 = results[i].reason;
|
|
25838
|
-
|
|
25891
|
+
debugLogger10.warn(
|
|
25839
25892
|
`Session ${sessions[i].getId()} skill refresh failed: ${reason2}`
|
|
25840
25893
|
);
|
|
25841
25894
|
}
|
|
@@ -25879,12 +25932,12 @@ ${outputText}
|
|
|
25879
25932
|
disposeTranscriptReplayConfig(config) {
|
|
25880
25933
|
try {
|
|
25881
25934
|
void Promise.resolve(config.getToolRegistry()?.stop()).catch((err) => {
|
|
25882
|
-
|
|
25935
|
+
debugLogger10.debug(
|
|
25883
25936
|
`Transcript replay config tool registry stop failed: ${err instanceof Error ? err.message : String(err)}`
|
|
25884
25937
|
);
|
|
25885
25938
|
});
|
|
25886
25939
|
} catch (err) {
|
|
25887
|
-
|
|
25940
|
+
debugLogger10.debug(
|
|
25888
25941
|
`Transcript replay config tool registry stop failed: ${err instanceof Error ? err.message : String(err)}`
|
|
25889
25942
|
);
|
|
25890
25943
|
}
|
|
@@ -26174,7 +26227,7 @@ ${outputText}
|
|
|
26174
26227
|
sessionId: acpSessionId,
|
|
26175
26228
|
...event
|
|
26176
26229
|
}).catch((err) => {
|
|
26177
|
-
|
|
26230
|
+
debugLogger10.debug(
|
|
26178
26231
|
`MCP budget extNotification dropped (session=${acpSessionId}, kind=${event.kind}): ${err instanceof Error ? err.message : String(err)}`
|
|
26179
26232
|
);
|
|
26180
26233
|
});
|
|
@@ -26248,7 +26301,7 @@ ${outputText}
|
|
|
26248
26301
|
try {
|
|
26249
26302
|
await config.waitForMcpReady();
|
|
26250
26303
|
} catch (err) {
|
|
26251
|
-
|
|
26304
|
+
debugLogger10.error(
|
|
26252
26305
|
`MCP discovery readiness failed: ${err instanceof Error ? err.message : String(err)}`
|
|
26253
26306
|
);
|
|
26254
26307
|
return;
|
|
@@ -26300,7 +26353,7 @@ ${outputText}
|
|
|
26300
26353
|
selectedType
|
|
26301
26354
|
);
|
|
26302
26355
|
} catch (e) {
|
|
26303
|
-
|
|
26356
|
+
debugLogger10.error(`Authentication failed: ${e}`);
|
|
26304
26357
|
throw RequestError.authRequired(
|
|
26305
26358
|
{
|
|
26306
26359
|
authMethods: pickAuthMethodsForAuthRequired(selectedType)
|
|
@@ -26556,7 +26609,7 @@ ${outputText}
|
|
|
26556
26609
|
try {
|
|
26557
26610
|
await claimInterruptedWorkflowRuns(config);
|
|
26558
26611
|
} catch (error) {
|
|
26559
|
-
|
|
26612
|
+
debugLogger10.debug(`Claiming interrupted workflow runs failed: ${error}`);
|
|
26560
26613
|
}
|
|
26561
26614
|
const workflowHistory = await listWorkflowSnapshots(config);
|
|
26562
26615
|
const session = new Session(
|
|
@@ -26582,7 +26635,7 @@ ${outputText}
|
|
|
26582
26635
|
sessionData.conversation.messages
|
|
26583
26636
|
);
|
|
26584
26637
|
} catch (error) {
|
|
26585
|
-
|
|
26638
|
+
debugLogger10.debug(
|
|
26586
26639
|
`Failed to publish recovered Goal state: ${error instanceof Error ? error.message : String(error)}`
|
|
26587
26640
|
);
|
|
26588
26641
|
}
|
|
@@ -26598,7 +26651,7 @@ ${outputText}
|
|
|
26598
26651
|
if (settingsReloaded) {
|
|
26599
26652
|
reloadEnvironment(settings.merged, config.getTargetDir());
|
|
26600
26653
|
} else {
|
|
26601
|
-
|
|
26654
|
+
debugLogger10.warn(
|
|
26602
26655
|
"Deferred session settings reload failed; keeping current environment"
|
|
26603
26656
|
);
|
|
26604
26657
|
}
|
|
@@ -26649,7 +26702,7 @@ ${outputText}
|
|
|
26649
26702
|
"Unable to reload model-provider settings from disk."
|
|
26650
26703
|
);
|
|
26651
26704
|
}
|
|
26652
|
-
|
|
26705
|
+
debugLogger10.warn(
|
|
26653
26706
|
"Final model-provider settings reload failed; keeping current settings"
|
|
26654
26707
|
);
|
|
26655
26708
|
}
|
|
@@ -26727,7 +26780,7 @@ ${outputText}
|
|
|
26727
26780
|
try {
|
|
26728
26781
|
session.dispose();
|
|
26729
26782
|
} catch (disposeError) {
|
|
26730
|
-
|
|
26783
|
+
debugLogger10.warn(
|
|
26731
26784
|
`Failed to dispose unpublished session ${sessionId}: ${disposeError instanceof Error ? disposeError.message : String(disposeError)}`
|
|
26732
26785
|
);
|
|
26733
26786
|
}
|
|
@@ -26968,6 +27021,11 @@ export {
|
|
|
26968
27021
|
* Copyright 2026 Qwen
|
|
26969
27022
|
* SPDX-License-Identifier: Apache-2.0
|
|
26970
27023
|
*/
|
|
27024
|
+
/**
|
|
27025
|
+
* @license
|
|
27026
|
+
* Copyright 2026 o1-code contributors
|
|
27027
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
27028
|
+
*/
|
|
26971
27029
|
/**
|
|
26972
27030
|
* @license
|
|
26973
27031
|
* Copyright 2025 Qwen
|