@organizaone/o1-code 0.4.0 → 0.5.1
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/settings.md +1 -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/bundled/qc-helper/docs/support/troubleshooting.md +3 -0
- package/chunks/{MaxSizedBox-XCALBLMI.js → MaxSizedBox-ZOFIKGJG.js} +41 -41
- package/chunks/{StandaloneSessionPicker-4LKUBXYB.js → StandaloneSessionPicker-6S2C7YZK.js} +54 -54
- package/chunks/{acp-subagent-executor-DZXFG4X5.js → acp-subagent-executor-HGIGYENO.js} +42 -42
- package/chunks/{acpAgent-Q7ZCQ435.js → acpAgent-SXUNXWWP.js} +425 -368
- package/chunks/{agent-RMFRDIO3.js → agent-7GI5MAMY.js} +25 -25
- package/chunks/{agent-headless-S5VQMQW5.js → agent-headless-7ZSKSLIE.js} +25 -25
- package/chunks/{anthropicContentGenerator-FJGXD34B.js → anthropicContentGenerator-FHJ5JNYR.js} +5 -5
- package/chunks/{bridge-MPG5WH6G.js → bridge-5YHUATCB.js} +42 -42
- package/chunks/{build-F5EUF23Y.js → build-RFEU7TIS.js} +1 -1
- package/chunks/{bwrap-execution-EZJNABHL.js → bwrap-execution-QFG5RQSP.js} +5 -5
- package/chunks/{chunk-M4RMR6BN.js → chunk-22SKH7LF.js} +3 -3
- package/chunks/{chunk-MKUV6LDU.js → chunk-26GB3MTV.js} +2 -2
- package/chunks/{chunk-L2YHATCP.js → chunk-2DNMFYMU.js} +3 -3
- package/chunks/{chunk-7K3C4CS2.js → chunk-2J53EWTP.js} +6 -6
- package/chunks/{chunk-PU3SYVQ7.js → chunk-2OQC7O74.js} +3 -3
- package/chunks/{chunk-EPSMNIG6.js → chunk-2QN2TID2.js} +5 -5
- package/chunks/{chunk-UUTO4CEV.js → chunk-34ORCXAX.js} +2 -2
- package/chunks/{chunk-EXWAECKM.js → chunk-35RKSP4A.js} +2 -2
- package/chunks/{chunk-7YG72VGA.js → chunk-3GGCMM7C.js} +2 -2
- package/chunks/{chunk-S74WJTCG.js → chunk-3YLEHHA7.js} +12 -3
- package/chunks/{chunk-SQQVJC75.js → chunk-3YZPY6YA.js} +1 -1
- package/chunks/{chunk-UDQ3FEOE.js → chunk-6DOSH2VF.js} +30 -15
- package/chunks/{chunk-ESAUSKWS.js → chunk-6LOAUBTH.js} +10 -10
- package/chunks/{chunk-ESDBDHDS.js → chunk-6MEAGROF.js} +1 -1
- package/chunks/{chunk-UIZPA6NX.js → chunk-6QYP53HJ.js} +1 -1
- package/chunks/{chunk-KXN7Q6SB.js → chunk-6TWJYLJE.js} +1 -1
- package/chunks/{chunk-Q56YIKDZ.js → chunk-734USTD3.js} +5 -5
- package/chunks/{chunk-TY4PWRCX.js → chunk-7PXVBJL3.js} +1 -1
- package/chunks/{chunk-CIMPNO36.js → chunk-7TZRKZWC.js} +1 -1
- package/chunks/{chunk-7NLIWXMU.js → chunk-A2K4A5O2.js} +3 -3
- package/chunks/{chunk-672SUHHG.js → chunk-ABTF7TPE.js} +1 -1
- package/chunks/{chunk-FOVK2DPM.js → chunk-AJS6HD3U.js} +4 -4
- package/chunks/{chunk-PUHCGRAC.js → chunk-B2PLLGOC.js} +1 -1
- package/chunks/{chunk-WEL3TXQG.js → chunk-B67EYF6M.js} +1 -1
- package/chunks/{chunk-PIVKM7A6.js → chunk-C2IESIWR.js} +4 -4
- package/chunks/{chunk-X3RSD63L.js → chunk-CHZDN4DI.js} +1 -1
- package/chunks/{chunk-S2LBLNBW.js → chunk-CMZHL55Y.js} +2193 -151
- package/chunks/{chunk-A53V5RUQ.js → chunk-CVU3EIFH.js} +3 -3
- package/chunks/{chunk-HYC64HT7.js → chunk-D42MFAOX.js} +3 -3
- package/chunks/{chunk-MW6HQT5X.js → chunk-DLJHG562.js} +2 -2
- package/chunks/{chunk-YNJSBU2B.js → chunk-DZPGLX7M.js} +1 -1
- package/chunks/{chunk-GJQHQ3DC.js → chunk-E6JZE22X.js} +3 -3
- package/chunks/{chunk-YP7V6HRD.js → chunk-EBTQTM56.js} +1 -1
- package/chunks/{chunk-LWQQFURM.js → chunk-ELAUQQIT.js} +4 -4
- package/chunks/{chunk-WXWA7OOJ.js → chunk-ELVKWFRK.js} +1 -1
- package/chunks/{chunk-SAMGM2NV.js → chunk-EMIGZJZT.js} +1 -1
- package/chunks/{chunk-DM3OSSGT.js → chunk-F6UT36OB.js} +7 -42
- package/chunks/{chunk-T233J2WC.js → chunk-FMDABBCA.js} +3 -3
- package/chunks/{chunk-P7UNPKJM.js → chunk-FQO3QDB5.js} +1 -1
- package/chunks/{chunk-TKHMBUSK.js → chunk-FZUEC7ES.js} +3 -3
- package/chunks/{chunk-L3LXMQJJ.js → chunk-G2I75T4C.js} +1 -1
- package/chunks/{chunk-DP5BYVKX.js → chunk-G3W4UY3G.js} +3601 -5403
- package/chunks/{chunk-HRWSTIHZ.js → chunk-GAM5VJT7.js} +1 -1
- package/chunks/{chunk-5L6KVN6H.js → chunk-GHYY2N2S.js} +1 -1
- package/chunks/{chunk-LQR2LD5J.js → chunk-GLT2QUV7.js} +4 -4
- package/chunks/{chunk-ONLJONFH.js → chunk-GMR3LAWE.js} +18 -3
- package/chunks/{chunk-FXEUBHXO.js → chunk-GN6HVKBI.js} +2 -2
- package/chunks/{chunk-532CXTUJ.js → chunk-GW3TK3X2.js} +39 -37
- package/chunks/{chunk-V5LAES7R.js → chunk-GWX3EC6J.js} +1 -1
- package/chunks/{chunk-E4BNWSC7.js → chunk-H5L5E5NI.js} +1 -1
- package/chunks/{chunk-CVGR5FZZ.js → chunk-H65LZ7Q4.js} +1 -1
- package/chunks/{chunk-AGF6RZYW.js → chunk-HGW4END7.js} +4 -4
- package/chunks/{chunk-PAHN3PPP.js → chunk-IL4VUEEH.js} +1 -1
- package/chunks/{chunk-FJHPFQU6.js → chunk-JDPRCTE4.js} +7 -7
- package/chunks/{chunk-4NNLMYE3.js → chunk-JOGRE2ZT.js} +1 -1
- package/chunks/{chunk-IFURAKKH.js → chunk-JSB66IE5.js} +1 -1
- package/chunks/{chunk-IF63JJ4W.js → chunk-K5JXFVNB.js} +5 -5
- package/chunks/{chunk-AOXGYW3S.js → chunk-KCHIL32J.js} +5 -5
- package/chunks/{chunk-QGDWW62J.js → chunk-KI7AYT4Y.js} +1 -1
- package/chunks/{chunk-JHKNFNWE.js → chunk-KJVLRZBK.js} +1 -1
- package/chunks/{chunk-WHFNK466.js → chunk-KVQMH7W2.js} +4 -4
- package/chunks/{chunk-ROJAAA2B.js → chunk-L6J57N2A.js} +1 -1
- package/chunks/{chunk-FD5MGAM2.js → chunk-L7LXG6TN.js} +2 -2
- package/chunks/{chunk-L4RFUGED.js → chunk-LERXWKRT.js} +1 -1
- package/chunks/{chunk-KFYFHLDM.js → chunk-LHCVJ6NV.js} +1 -1
- package/chunks/{chunk-Q2AHXMRI.js → chunk-LHY2PDWX.js} +6 -4
- package/chunks/{chunk-IUFQFQ7R.js → chunk-LJU6OPEU.js} +3 -3
- package/chunks/{chunk-YIEC5SIW.js → chunk-M2EBVYXC.js} +1 -1
- package/chunks/{chunk-DRV3SDND.js → chunk-M5G6OKEY.js} +4 -4
- package/chunks/{chunk-5TJZ5DBW.js → chunk-MDQFX2C5.js} +1 -1
- package/chunks/{chunk-WQ6N4SRY.js → chunk-MDQYCFNT.js} +16 -16
- package/chunks/{chunk-5PZDTHS6.js → chunk-MGVVXFYW.js} +38 -3
- package/chunks/{chunk-JQFQB2BI.js → chunk-MIWMCUU5.js} +1 -1
- package/chunks/{chunk-XID74DEW.js → chunk-MQ3QD65Z.js} +1 -1
- package/chunks/{chunk-KCOLW7TS.js → chunk-MRBPTAOV.js} +4 -4
- package/chunks/{chunk-5KDZJN3L.js → chunk-MRJJAG44.js} +10 -10
- package/chunks/{chunk-WB4XHWF5.js → chunk-MX7QDQRT.js} +5 -5
- package/chunks/{chunk-6ET4INUP.js → chunk-MXIQ6C7B.js} +3 -3
- package/chunks/{chunk-VRSR6QUT.js → chunk-NBCYYKYK.js} +3 -3
- package/chunks/{chunk-I7XXUDXZ.js → chunk-NGPEFWU4.js} +1 -1
- package/chunks/{chunk-YNDEPL5B.js → chunk-ODSVNOLT.js} +4 -4
- package/chunks/{chunk-AQVYFR7E.js → chunk-OMJU4YIQ.js} +1 -1
- package/chunks/{chunk-TXOO3SJ4.js → chunk-OVOSIR5V.js} +13 -11
- package/chunks/{chunk-4372PUEO.js → chunk-PSL5VFNJ.js} +40 -37
- package/chunks/{chunk-UNRHVAPY.js → chunk-QDZTSZTF.js} +1 -1
- package/chunks/{chunk-XQILGSD3.js → chunk-RIX6ATSB.js} +1 -1
- package/chunks/{chunk-T2OY4BYB.js → chunk-RRWM6VZS.js} +1 -1
- package/chunks/{chunk-W7IBLOA5.js → chunk-SE33PFPT.js} +7 -7
- package/chunks/{chunk-H2V7AUF4.js → chunk-SE3HMQLW.js} +5 -5
- package/chunks/{chunk-QFQQICSQ.js → chunk-TCME6IG6.js} +1 -1
- package/chunks/{chunk-RWN5ULQM.js → chunk-TDBZBCLU.js} +2 -2
- package/chunks/{chunk-IYHIP3OB.js → chunk-TXIBLU7T.js} +8 -8
- package/chunks/{chunk-Y4BQMESG.js → chunk-TYAUV2TE.js} +1 -1
- package/chunks/{chunk-3QL5SP6K.js → chunk-UZSRQ26K.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-QLDNOCCI.js → chunk-VJ3EJJ5K.js} +4 -4
- package/chunks/{chunk-QJVAY275.js → chunk-W2MWOPYK.js} +13 -10
- package/chunks/{chunk-KD2JFDCT.js → chunk-WBW6J5R3.js} +13 -4
- package/chunks/{chunk-PYH6MQ2Q.js → chunk-WCFNOALO.js} +1 -1
- package/chunks/{chunk-A24OKQOD.js → chunk-WFUXHQZO.js} +6 -2
- package/chunks/{chunk-KN233J25.js → chunk-WQNNHDDX.js} +6 -6
- package/chunks/{chunk-X6HNUJYB.js → chunk-X655UILS.js} +15 -15
- package/chunks/{chunk-RTY3POZ7.js → chunk-XFV6QC4A.js} +2 -2
- package/chunks/{chunk-GUMLL5KC.js → chunk-XKOGHPWS.js} +1 -1
- package/chunks/{chunk-WBXFLYVH.js → chunk-YQF62HFY.js} +1 -1
- package/chunks/{chunk-GWKSWZ3B.js → chunk-Z6HFYF3D.js} +1 -1
- package/chunks/{chunk-U6PVPH4S.js → chunk-ZFT5MBI6.js} +1 -1
- package/chunks/{chunk-M2WG4ESD.js → chunk-ZQBNP2ZQ.js} +4 -2
- package/chunks/{chunk-JPGOF34S.js → chunk-ZZXUYKAG.js} +4 -4
- package/chunks/{codex-subagent-executor-E7JQVLPC.js → codex-subagent-executor-NO5C6VPN.js} +42 -42
- package/chunks/{contextCommand-7L5H2XXP.js → contextCommand-VWARZSMR.js} +40 -40
- package/chunks/{core-runtime-X3V7BURU.js → core-runtime-KL6UEQWI.js} +39 -39
- package/chunks/{create-sub-session-VXPEZMFK.js → create-sub-session-CY7EFJX5.js} +40 -40
- package/chunks/{daemon-git-worktree-guard-OYFVIIWI.js → daemon-git-worktree-guard-CPIBCRZO.js} +39 -39
- package/chunks/{daemon-status-provider-5QIZJJNE.js → daemon-status-provider-BN3RF2FL.js} +47 -47
- package/chunks/{daemon-trust-policy-LVRILVI3.js → daemon-trust-policy-4CK5U5IC.js} +44 -44
- package/chunks/{daemon-trust-policy-monitor-GI6PLXY4.js → daemon-trust-policy-monitor-CUNFNI4N.js} +44 -44
- package/chunks/{deferred-core-runtime-6CBEDR5U.js → deferred-core-runtime-CBJTZJPH.js} +39 -39
- package/chunks/{display-image-K4EKCY4Y.js → display-image-U6HZKF3G.js} +1 -1
- package/chunks/{edit-C6FPBRWV.js → edit-RM227QNR.js} +27 -27
- package/chunks/{enter-worktree-7AEF4YHW.js → enter-worktree-53CUMISV.js} +6 -5
- package/chunks/{enterPlanMode-MNSV64QE.js → enterPlanMode-PYAHJFSQ.js} +25 -25
- package/chunks/{environment-UHBXJNPE.js → environment-DD54IMFM.js} +45 -43
- package/chunks/{errors-N36MS36S.js → errors-HI6DJG4B.js} +41 -41
- package/chunks/{execution-sandbox-config-ODVPW3HT.js → execution-sandbox-config-7UDTKDKF.js} +6 -6
- package/chunks/{execution-tool-CB46DCPG.js → execution-tool-V3VSCW6K.js} +28 -28
- package/chunks/{execution-worker-KGQ3AKWY.js → execution-worker-WBHEON6Q.js} +32 -32
- package/chunks/{exit-worktree-7LRFLHHT.js → exit-worktree-CZUYCPZ3.js} +6 -5
- package/chunks/{exitPlanMode-XQICYHTC.js → exitPlanMode-HOZQZ5T7.js} +25 -25
- package/chunks/{fast-path-YHYEVNSH.js → fast-path-7HGISECB.js} +2 -2
- package/chunks/{glob-QZN6HURE.js → glob-3Z2KONQG.js} +25 -25
- package/chunks/{goal-tools-DA6LG2SP.js → goal-tools-SZZFOYEQ.js} +25 -25
- package/chunks/{grep-TA3S572F.js → grep-ENZEP6KL.js} +2 -2
- package/chunks/{handleAutoUpdate-IGXZ2DMP.js → handleAutoUpdate-YW4VDPGO.js} +41 -41
- package/chunks/{i18n-IALGY42H.js → i18n-3EQ4CCDM.js} +39 -39
- package/chunks/{image-gen-BEM2OTJM.js → image-gen-GJRWPVTR.js} +2 -2
- package/chunks/{initializer-ZIHB4XYC.js → initializer-G4SCU6JQ.js} +44 -44
- package/chunks/{installationInfo-WG2GZFZT.js → installationInfo-3QFLR7CO.js} +39 -39
- package/chunks/{list-RZD6J74J.js → list-S4KQBUXO.js} +46 -46
- package/chunks/{llm-46DCEZ2L.js → llm-HBFVSHNO.js} +95 -73
- package/chunks/{llm-content-generator-OT4NV35N.js → llm-content-generator-WWIIJ3YF.js} +3 -3
- package/chunks/{loadedSettingsAdapter-J2GSJPSR.js → loadedSettingsAdapter-4FCPSPON.js} +44 -44
- package/chunks/{local-execution-environment-FX5IZ7Z2.js → local-execution-environment-PUSM6PGS.js} +32 -32
- package/chunks/{loggingContentGenerator-RTFUIXIY.js → loggingContentGenerator-OMYQPXBM.js} +27 -27
- package/chunks/{managed-npm-update-4FBPYKRR.js → managed-npm-update-MUWFIXMB.js} +56 -50
- package/chunks/{mcp-CGZQMURL.js → mcp-IFIMZMMB.js} +44 -44
- package/chunks/{model-call-collection-XSB3IOIM.js → model-call-collection-RJ3QGO3O.js} +1 -1
- package/chunks/{model-configuration-7XGFDFQQ.js → model-configuration-AQOY5NHG.js} +45 -45
- package/chunks/{modelConfigUtils-55SLUTRW.js → modelConfigUtils-3WCZU5US.js} +41 -41
- package/chunks/{monitor-6FXANYQK.js → monitor-Z4DAPTBI.js} +40 -36
- package/chunks/{nonInteractiveCli-7JRQVPTS.js → nonInteractiveCli-EIFDEYFS.js} +70 -70
- package/chunks/{nonInteractiveToolExecutor-EBI7JPSA.js → nonInteractiveToolExecutor-NS2HFUO5.js} +26 -26
- package/chunks/{notebook-edit-4NRLVXGD.js → notebook-edit-TXNVV4NZ.js} +26 -26
- package/chunks/{omni-SCKLBJ7D.js → omni-EANTWQG5.js} +10 -10
- package/chunks/{openaiContentGenerator-5XUSGWXX.js → openaiContentGenerator-JU5KLG5T.js} +12 -12
- package/chunks/{openaiResponsesContentGenerator-XKJFDUNK.js → openaiResponsesContentGenerator-BQZ54E6V.js} +3 -3
- package/chunks/{processUtils-RZJXB2SU.js → processUtils-PVRINBPF.js} +2 -2
- package/chunks/{prompt-terminal-ledger-WDNYXW7Q.js → prompt-terminal-ledger-LDPMNEHI.js} +40 -40
- package/chunks/{reactive-degrade-NS277SXZ.js → reactive-degrade-5HVNIKLO.js} +8 -8
- package/chunks/{read-file-7A4PDVYW.js → read-file-H4L4HPEH.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-TQIL6EZ7.js → resumeHistoryUtils-TMGVZMKJ.js} +41 -41
- package/chunks/{ripGrep-APKWY2LV.js → ripGrep-YVUC4DXT.js} +7 -7
- package/chunks/{run-o1-code-serve-ZPJZEWP7.js → run-o1-code-serve-LAIBSEHT.js} +32 -32
- package/chunks/{runtime-shell-policy-7E34X54Z.js → runtime-shell-policy-QXWSET5W.js} +1 -1
- package/chunks/{sandboxConfig-FJ6SORCO.js → sandboxConfig-UYUFPT6T.js} +39 -39
- package/chunks/{scheduled-tasks-K5FEKEQZ.js → scheduled-tasks-JFRIRKTA.js} +45 -45
- package/chunks/{scheduler-LNBDPLM3.js → scheduler-2PWRO4UB.js} +41 -41
- package/chunks/{send-message-X55LV3NW.js → send-message-NATKTKQZ.js} +3 -3
- package/chunks/{serve-YLTHY7B3.js → serve-5NOYAIKF.js} +44 -44
- package/chunks/{server-246IXJV4.js → server-VJ4WGSUY.js} +119 -111
- package/chunks/{session-U5PCPVSR.js → session-CGV7TJGH.js} +71 -71
- package/chunks/{session-attachments-root-FZBDWCCJ.js → session-attachments-root-COVGVQZC.js} +39 -39
- package/chunks/{session-pr-refresh-G4DYR2GA.js → session-pr-refresh-SX33MGB4.js} +44 -44
- package/chunks/{settings-5CSMP2XC.js → settings-XRNF45NA.js} +43 -43
- package/chunks/{shell-MHNR7ELX.js → shell-RX3LXNJP.js} +25 -25
- package/chunks/{skill-BQH2WIPE.js → skill-KCPU5AV6.js} +5 -5
- package/chunks/{skill-settings-NBLEU6N3.js → skill-settings-PAEWMBXK.js} +44 -44
- package/chunks/{spawnChannel-OWXPYFWT.js → spawnChannel-SNCSRXCH.js} +41 -41
- package/chunks/{standalone-update-U6UUKRKU.js → standalone-update-WPASUR47.js} +40 -40
- package/chunks/{startInteractiveUI-EJULGCL7.js → startInteractiveUI-ZX3UUKMI.js} +104 -87
- 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-PJK2OS5B.js → team-create-LV77LY5U.js} +25 -25
- package/chunks/{team-plan-approval-KSJV7ZQ6.js → team-plan-approval-VBIL6SV3.js} +25 -25
- package/chunks/{terminal-image-renderer-3K262PTL.js → terminal-image-renderer-ADP6QUHM.js} +39 -39
- package/chunks/{theme-manager-JR5EN3JA.js → theme-manager-EUUSF2Q7.js} +39 -39
- package/chunks/{tool-call-VNMKD4BX.js → tool-call-7HZFNB7J.js} +4 -4
- package/chunks/{tool-result-media-5G5L5FUD.js → tool-result-media-JVU7TVUQ.js} +10 -10
- package/chunks/{tool-search-RMXHOHI6.js → tool-search-PEJVNWOB.js} +7 -7
- package/chunks/{total-session-admission-DNSWPKQR.js → total-session-admission-N7ME7DLF.js} +42 -42
- package/chunks/{trustedFolders-MXRKCC7V.js → trustedFolders-G3EG6RNC.js} +40 -40
- package/chunks/{update-relaunch-YZ752NJD.js → update-relaunch-OAYGBIDB.js} +17 -8
- package/chunks/{updateCheck-5B4SBAZT.js → updateCheck-JKYZNZTK.js} +39 -39
- package/chunks/{upload-config-CMV4ABF2.js → upload-config-LPONQVLM.js} +6 -6
- package/chunks/{useAutoAcceptIndicator-UVPPBAVQ.js → useAutoAcceptIndicator-AZBWWHTT.js} +47 -47
- package/chunks/{validateNonInterActiveAuth-Y55S3BD5.js → validateNonInterActiveAuth-5K6TQOCW.js} +68 -68
- package/chunks/{version-G4JNJAHP.js → version-7MOVE5JZ.js} +1 -1
- package/chunks/{web-fetch-GMZV2QHR.js → web-fetch-ALDHPFKB.js} +5 -5
- package/chunks/{web-search-C74YSUHS.js → web-search-4FXUXV76.js} +7 -7
- package/chunks/{workflow-QNJRLQVY.js → workflow-W6TQFKWS.js} +26 -26
- package/chunks/{workspace-providers-status-NQJJBMZF.js → workspace-providers-status-JRU6E7KT.js} +50 -50
- package/chunks/{workspace-registration-store-SFC3KHYO.js → workspace-registration-store-2VLHZRVP.js} +1 -1
- package/chunks/{workspace-registry-N5DD5XIM.js → workspace-registry-BYB7WBWO.js} +42 -42
- package/chunks/{workspace-runtime-coordinator-BXYGAFZC.js → workspace-runtime-coordinator-EEAZTJ6X.js} +43 -43
- package/chunks/{workspace-service-ZVV75GHH.js → workspace-service-7SCTZ2HS.js} +48 -48
- package/chunks/{workspace-skills-status-ZTULNHRY.js → workspace-skills-status-HDLEGK3V.js} +47 -47
- package/chunks/{workspace-trust-reconciler-FFQBYGN6.js → workspace-trust-reconciler-SONZ46YA.js} +47 -47
- package/chunks/{write-file-VLVTXBBH.js → write-file-BIRFPH4F.js} +28 -28
- package/chunks/{zoom-image-RCU2ZECA.js → zoom-image-UFU3VEIY.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 +31 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-C79vZf7q.js → abnfDiagram-VCTEODGH-BvoMbUn4.js} +1 -1
- package/web-shell/assets/{arc-By9TNVXj.js → arc-DbQBncMt.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-dOGgroC-.js → architectureDiagram-5GKGNRK7-C8RG0dgJ.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-B9dT448v.js → blockDiagram-NRAW4CY4-pL2S69WR.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BZq7QGRh.js → c4Diagram-UCG6FXSJ-BtqW-kE-.js} +1 -1
- package/web-shell/assets/channel-D6P_9m4V.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-Ddaq9Ppd.js → chunk-2Q5K7J3B-DH8xQogC.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-BBjSH5RT.js → chunk-5VM5RSS4-BH3myFbn.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-t4UEfBw5.js → chunk-F27PBJKO-iY2yWixd.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-D_VuJGqI.js → chunk-G27WJ6UU-D_j7Xo_Y.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-BqUwq2mP.js → chunk-JWPE2WC7-CxBsiYSx.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-TJVqP4zd.js → chunk-LCL6LL3I-DQbc3B6E.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-m8_NZQnQ.js → chunk-POPQ4Y6H-BdaRtQLf.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-CfC75Ei3.js → chunk-SVP7TREG-D58Lphw-.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-B-Q7EfLc.js → chunk-XXDRQBXY-BSmrr5ej.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-BW3KY7XN.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-BW3KY7XN.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-D1UWVn_j.js → cose-bilkent-JH36ORCC-DYv3YjD8.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-BYyvfU2W.js → cynefin-OW5HDTMX-ChRVKOIc.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-h31WLcWO.js → cynefinDiagram-5FMLGOSQ-2dgun5lr.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-CBfIQyq3.js → dagre-3AP2YEHR-IGE15SAI.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-DvhgeRNT.js → diagram-S7CK7UJ4-BHcZWynB.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-B45bX9cw.js → diagram-UQ7AKVKN-DalYrZk-.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-w5_5TRwb.js → diagram-VSXAHHWV-CMKHsUs7.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-DAiR8vdO.js → diagram-VX7I27RA-DgrQKlmX.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-Da7jZeIH.js → diagram-Z3DM3KII-CVdgT4Q4.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-B7WF9Qum.js → ebnfDiagram-PWID7BFC-BV7RGD_D.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-Dygfopi-.js → erDiagram-SSCWMZ5O-NbSHPXJb.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-BX7okAuU.js → flowDiagram-A5DVABFB-BnKFiusj.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DmUOanpH.js → ganttDiagram-EL5Y4UJY-BVBViIDh.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DQEg-Tk1.js → gitGraphDiagram-WWUBYQGX-Dpi8eTTY.js} +1 -1
- package/web-shell/assets/{index-CvYCzWNp.js → index-D-kPo23X.js} +1 -1
- package/web-shell/assets/{index-v3wlXQpe.js → index-DtvQ3DEH.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-C1jbM00T.js → infoDiagram-RXCK75RN-BpAv0FDb.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-cBjbNTV4.js → ishikawaDiagram-5VMMS53U-B7958rb5.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-BazjwXUM.js → journeyDiagram-EYS64GPL-C3KfVyTV.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-CUfveZjf.js → kanban-definition-3QL26DDD-DXrBR6gr.js} +1 -1
- package/web-shell/assets/{layout-CtpxXAF_.js → layout-D4sWObAV.js} +1 -1
- package/web-shell/assets/{linear-VD2q0Clb.js → linear-Cwd2KGkf.js} +1 -1
- package/web-shell/assets/{mermaid.core-B6znjYEM.js → mermaid.core-B2gOqjPo.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-bOsOTlkR.js → mindmap-definition-FBJOCRG2-Oxi-8t2C.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-iWFBUxYu.js → pegDiagram-XKGWAZYB-XhK_Omz8.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BXQlXRf2.js → pieDiagram-E7YTZNPT-th4P1FI2.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-CL0aHMKX.js → quadrantDiagram-AXDQQJYC-BWHRjMh9.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-D3kquTPx.js → railroadDiagram-O6MQD6OU-D4h49f-M.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C0xj6gpA.js → requirementDiagram-EFPCY7ZU-DSG8xXCi.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-Dllh3B5D.js → sankeyDiagram-P5KCCOFB-Tt-9UBxT.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CMK9o17d.js → sequenceDiagram-WJ2MYXX4-BOh5x5rY.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-CJ-FZ3Po.js → sizeCapture-X5ZJPWSS-DP0VY8RY.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-Dk_gRN1Y.js → stateDiagram-HBIQ2CUA-Bqhxdcnc.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-X9Lr9vnN.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-DCCq_M5v.js → swimlanes-XN3QIQJK-g1wrt3v8.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DCoSHHNU.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-D-XQqKZ2.js → timeline-definition-24CTP7MA-GGkTR6Uu.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-CGtjiahk.js → vennDiagram-4TSXK5OY-yDSKCBuy.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-QC0OvkzN.js → wardleyDiagram-VM6X3IG4-Cmfcjc_f.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-C-xkrwRW.js → xychartDiagram-S5SC5T6Z-B9EjOHFX.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/web-shell/assets/channel-To-6cDF_.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DMRUneay.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DMRUneay.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-B4fWCuA5.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CTS3qlaP.js +0 -8
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
recomputeMcpGating
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2DNMFYMU.js";
|
|
6
6
|
import {
|
|
7
7
|
PeerMessaging,
|
|
8
8
|
classifyApiError,
|
|
9
9
|
fireSessionDeleteHook
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L6J57N2A.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-SE33PFPT.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-PSL5VFNJ.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-GW3TK3X2.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-K5JXFVNB.js";
|
|
49
49
|
import {
|
|
50
50
|
getCommandSubcommandNames,
|
|
51
51
|
getEffectiveSupportedModes
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-LHY2PDWX.js";
|
|
53
|
+
import "./chunk-7PXVBJL3.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-LJU6OPEU.js";
|
|
61
61
|
import "./chunk-UMIHM32I.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-C2IESIWR.js";
|
|
63
63
|
import "./chunk-XZ3MQL2U.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-RRWM6VZS.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-ABTF7TPE.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-FMDABBCA.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-CVU3EIFH.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-734USTD3.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-OVOSIR5V.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-GWX3EC6J.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-GHYY2N2S.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-26GB3MTV.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-E6JZE22X.js";
|
|
163
|
+
import "./chunk-TDBZBCLU.js";
|
|
164
164
|
import "./chunk-3XR24RBF.js";
|
|
165
165
|
import {
|
|
166
166
|
SCHEDULED_TASK_RUN_SOURCE_TYPE
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-6LOAUBTH.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-MGVVXFYW.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-2OQC7O74.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-JSB66IE5.js";
|
|
256
|
+
import "./chunk-KVQMH7W2.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-XFV6QC4A.js";
|
|
266
266
|
import {
|
|
267
267
|
resolveSkillSettings
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-EBTQTM56.js";
|
|
269
269
|
import {
|
|
270
270
|
assembleMcpServers,
|
|
271
271
|
loadMcpApprovals
|
|
272
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-2QN2TID2.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-GLT2QUV7.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-ODSVNOLT.js";
|
|
290
290
|
import "./chunk-EDRKBK4B.js";
|
|
291
|
-
import "./chunk-
|
|
291
|
+
import "./chunk-3YLEHHA7.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-WBW6J5R3.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-TYAUV2TE.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-3YZPY6YA.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-6DOSH2VF.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-34ORCXAX.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-MX7QDQRT.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-KCHIL32J.js";
|
|
368
|
+
import "./chunk-A2K4A5O2.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-JDPRCTE4.js";
|
|
384
|
+
import "./chunk-OMJU4YIQ.js";
|
|
385
|
+
import "./chunk-7TZRKZWC.js";
|
|
386
|
+
import "./chunk-M5G6OKEY.js";
|
|
387
387
|
import "./chunk-F3FKDGHN.js";
|
|
388
|
-
import "./chunk-
|
|
388
|
+
import "./chunk-6QYP53HJ.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-B67EYF6M.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-G3W4UY3G.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-LHCVJ6NV.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-KI7AYT4Y.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-
|
|
609
|
+
import "./chunk-GMR3LAWE.js";
|
|
610
610
|
import "./chunk-NVNIFGY3.js";
|
|
611
|
-
import "./chunk-
|
|
611
|
+
import "./chunk-IL4VUEEH.js";
|
|
612
612
|
import {
|
|
613
613
|
evaluateMediaPolicyToolCall
|
|
614
614
|
} from "./chunk-CI2ZHR5C.js";
|
|
615
|
-
import "./chunk-
|
|
615
|
+
import "./chunk-MQ3QD65Z.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,11 +634,11 @@ 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-VJ3EJJ5K.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 {
|
|
@@ -646,9 +646,9 @@ import {
|
|
|
646
646
|
} from "./chunk-65B6QBMP.js";
|
|
647
647
|
import "./chunk-WUKHAI4J.js";
|
|
648
648
|
import "./chunk-O4IWNFDK.js";
|
|
649
|
-
import "./chunk-
|
|
649
|
+
import "./chunk-EMIGZJZT.js";
|
|
650
650
|
import "./chunk-NGE3GHMN.js";
|
|
651
|
-
import "./chunk-
|
|
651
|
+
import "./chunk-Z6HFYF3D.js";
|
|
652
652
|
import "./chunk-WMJL2XAM.js";
|
|
653
653
|
import "./chunk-CP63SY5N.js";
|
|
654
654
|
import {
|
|
@@ -668,7 +668,7 @@ import {
|
|
|
668
668
|
resolveOwnsModel,
|
|
669
669
|
resolveReasoningCapabilities,
|
|
670
670
|
tryResolveModelProtocol
|
|
671
|
-
} from "./chunk-
|
|
671
|
+
} from "./chunk-RIX6ATSB.js";
|
|
672
672
|
import {
|
|
673
673
|
addDaemonRequestAttribute,
|
|
674
674
|
extractDaemonTraceContext,
|
|
@@ -698,12 +698,12 @@ import {
|
|
|
698
698
|
shouldRunVisionBridge,
|
|
699
699
|
splitImageParts,
|
|
700
700
|
uiTelemetryService
|
|
701
|
-
} from "./chunk-
|
|
701
|
+
} from "./chunk-3GGCMM7C.js";
|
|
702
702
|
import "./chunk-242JUBPM.js";
|
|
703
703
|
import {
|
|
704
704
|
getAllMemoryFilenames,
|
|
705
705
|
getSpecificMimeType
|
|
706
|
-
} from "./chunk-
|
|
706
|
+
} from "./chunk-H5L5E5NI.js";
|
|
707
707
|
import {
|
|
708
708
|
getAutoMemoryRoot,
|
|
709
709
|
getUserAutoMemoryRoot
|
|
@@ -717,7 +717,7 @@ import {
|
|
|
717
717
|
import {
|
|
718
718
|
runSideQuery
|
|
719
719
|
} from "./chunk-KV5QCRFB.js";
|
|
720
|
-
import "./chunk-
|
|
720
|
+
import "./chunk-V4XETRAG.js";
|
|
721
721
|
import {
|
|
722
722
|
INVOCATION_CONTEXT_META_KEY,
|
|
723
723
|
PRIVATE_ACP_CAPABILITY_ENV,
|
|
@@ -743,7 +743,7 @@ import {
|
|
|
743
743
|
parseModelReasoningCapabilities,
|
|
744
744
|
preloadContentGenerator,
|
|
745
745
|
tokenLimit
|
|
746
|
-
} from "./chunk-
|
|
746
|
+
} from "./chunk-SE3HMQLW.js";
|
|
747
747
|
import "./chunk-PLWOHBC7.js";
|
|
748
748
|
import "./chunk-LEXKU5FI.js";
|
|
749
749
|
import "./chunk-IQEM74QW.js";
|
|
@@ -752,7 +752,7 @@ import {
|
|
|
752
752
|
FORK_SUBAGENT_TYPE,
|
|
753
753
|
isSystemReminderContent,
|
|
754
754
|
wrapSystemReminder
|
|
755
|
-
} from "./chunk-
|
|
755
|
+
} from "./chunk-ZQBNP2ZQ.js";
|
|
756
756
|
import "./chunk-YCTMVTDP.js";
|
|
757
757
|
import "./chunk-JSFADKTB.js";
|
|
758
758
|
import "./chunk-OHAUN3Q5.js";
|
|
@@ -797,12 +797,12 @@ import {
|
|
|
797
797
|
import "./chunk-EPSJPAHV.js";
|
|
798
798
|
import "./chunk-HBBBH6YA.js";
|
|
799
799
|
import "./chunk-HHIX6THS.js";
|
|
800
|
-
import "./chunk-
|
|
800
|
+
import "./chunk-YQF62HFY.js";
|
|
801
801
|
import "./chunk-LPFK3TO2.js";
|
|
802
802
|
import {
|
|
803
803
|
registerCleanup,
|
|
804
804
|
runExitCleanup
|
|
805
|
-
} from "./chunk-
|
|
805
|
+
} from "./chunk-6MEAGROF.js";
|
|
806
806
|
import {
|
|
807
807
|
writeStderrLine,
|
|
808
808
|
writeStderrLineSafe
|
|
@@ -1285,6 +1285,51 @@ function prefixMidTurnUserMessageParts(parts, displayText) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
__name(prefixMidTurnUserMessageParts, "prefixMidTurnUserMessageParts");
|
|
1287
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
|
+
|
|
1288
1333
|
// packages/cli/src/acp-integration/session/tool-call-preparation-tracker.ts
|
|
1289
1334
|
init_esbuild_shims();
|
|
1290
1335
|
var ToolCallPreparationTracker = class {
|
|
@@ -1942,7 +1987,7 @@ function toPermissionOptions(confirmation, forceHideAlwaysAllow = false, persist
|
|
|
1942
1987
|
__name(toPermissionOptions, "toPermissionOptions");
|
|
1943
1988
|
|
|
1944
1989
|
// packages/cli/src/acp-integration/session/SubAgentTracker.ts
|
|
1945
|
-
var
|
|
1990
|
+
var debugLogger4 = createDebugLogger("ACP_SUBAGENT_TRACKER");
|
|
1946
1991
|
var SubAgentTracker = class {
|
|
1947
1992
|
constructor(ctx, client, parentToolCallId, subagentType, onPermissionCancel, permissionRequester = (params, signal) => requestPermissionWithAbort(this.client, params, signal), permissionPersistencePolicy) {
|
|
1948
1993
|
this.ctx = ctx;
|
|
@@ -2005,7 +2050,7 @@ var SubAgentTracker = class {
|
|
|
2005
2050
|
try {
|
|
2006
2051
|
invocation = tool.build(event.args);
|
|
2007
2052
|
} catch (e) {
|
|
2008
|
-
|
|
2053
|
+
debugLogger4.warn(`Failed to build subagent tool ${event.name}:`, e);
|
|
2009
2054
|
}
|
|
2010
2055
|
}
|
|
2011
2056
|
this.toolStates.set(event.callId, {
|
|
@@ -2020,7 +2065,7 @@ var SubAgentTracker = class {
|
|
|
2020
2065
|
progressMessage,
|
|
2021
2066
|
event.name
|
|
2022
2067
|
).catch((error) => {
|
|
2023
|
-
|
|
2068
|
+
debugLogger4.debug(
|
|
2024
2069
|
"Failed to emit subagent progress update for tool call:",
|
|
2025
2070
|
error
|
|
2026
2071
|
);
|
|
@@ -2031,7 +2076,7 @@ var SubAgentTracker = class {
|
|
|
2031
2076
|
args: event.args,
|
|
2032
2077
|
subagentMeta: this.subagentMeta
|
|
2033
2078
|
}).catch((error) => {
|
|
2034
|
-
|
|
2079
|
+
debugLogger4.debug(
|
|
2035
2080
|
`Failed to emit subagent tool start for ${event.name}:`,
|
|
2036
2081
|
error
|
|
2037
2082
|
);
|
|
@@ -2056,7 +2101,7 @@ var SubAgentTracker = class {
|
|
|
2056
2101
|
args: state?.args,
|
|
2057
2102
|
subagentMeta: this.subagentMeta
|
|
2058
2103
|
}).catch((error) => {
|
|
2059
|
-
|
|
2104
|
+
debugLogger4.debug(
|
|
2060
2105
|
`Failed to emit subagent tool result for ${event.name}:`,
|
|
2061
2106
|
error
|
|
2062
2107
|
);
|
|
@@ -2080,7 +2125,7 @@ var SubAgentTracker = class {
|
|
|
2080
2125
|
`Waiting for permission: ${state?.tool?.displayName ?? event.name}`,
|
|
2081
2126
|
event.name
|
|
2082
2127
|
).catch((error) => {
|
|
2083
|
-
|
|
2128
|
+
debugLogger4.debug(
|
|
2084
2129
|
"Failed to emit subagent progress update for approval:",
|
|
2085
2130
|
error
|
|
2086
2131
|
);
|
|
@@ -2135,7 +2180,7 @@ var SubAgentTracker = class {
|
|
|
2135
2180
|
this.onPermissionCancel?.();
|
|
2136
2181
|
}
|
|
2137
2182
|
} catch (error) {
|
|
2138
|
-
|
|
2183
|
+
debugLogger4.error(
|
|
2139
2184
|
`Permission request failed for subagent tool ${event.name}:`,
|
|
2140
2185
|
error
|
|
2141
2186
|
);
|
|
@@ -2145,7 +2190,7 @@ var SubAgentTracker = class {
|
|
|
2145
2190
|
try {
|
|
2146
2191
|
await event.respond("cancel" /* Cancel */);
|
|
2147
2192
|
} catch (respondError) {
|
|
2148
|
-
|
|
2193
|
+
debugLogger4.error(
|
|
2149
2194
|
`Failed to cancel subagent tool ${event.name} after permission request failure:`,
|
|
2150
2195
|
respondError
|
|
2151
2196
|
);
|
|
@@ -2161,7 +2206,7 @@ var SubAgentTracker = class {
|
|
|
2161
2206
|
const event = args[0];
|
|
2162
2207
|
if (abortSignal.aborted) return;
|
|
2163
2208
|
void this.messageEmitter.emitUsageMetadata(event.usage, "", event.durationMs, this.subagentMeta).catch((error) => {
|
|
2164
|
-
|
|
2209
|
+
debugLogger4.debug("Failed to emit subagent usage metadata:", error);
|
|
2165
2210
|
});
|
|
2166
2211
|
};
|
|
2167
2212
|
}
|
|
@@ -2180,7 +2225,7 @@ var SubAgentTracker = class {
|
|
|
2180
2225
|
void 0,
|
|
2181
2226
|
this.subagentMeta
|
|
2182
2227
|
).catch((error) => {
|
|
2183
|
-
|
|
2228
|
+
debugLogger4.debug("Failed to emit subagent stream text:", error);
|
|
2184
2229
|
});
|
|
2185
2230
|
};
|
|
2186
2231
|
}
|
|
@@ -2243,7 +2288,7 @@ var TurnBuffer = class {
|
|
|
2243
2288
|
init_esbuild_shims();
|
|
2244
2289
|
import { readFileSync, existsSync } from "node:fs";
|
|
2245
2290
|
import { resolve as resolve2 } from "node:path";
|
|
2246
|
-
var
|
|
2291
|
+
var debugLogger5 = createDebugLogger("MESSAGE_REWRITER");
|
|
2247
2292
|
var DEFAULT_REWRITE_PROMPT = `You are an assistant that rewrites raw coding-agent output into concise, user-friendly progress updates.
|
|
2248
2293
|
|
|
2249
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.
|
|
@@ -2271,18 +2316,18 @@ var LlmRewriter = class {
|
|
|
2271
2316
|
if (rewriteConfig.promptFile) {
|
|
2272
2317
|
const filePath = resolve2(rewriteConfig.promptFile);
|
|
2273
2318
|
if (!existsSync(filePath)) {
|
|
2274
|
-
|
|
2319
|
+
debugLogger5.warn(
|
|
2275
2320
|
`Rewrite prompt file not found: ${filePath}, using default`
|
|
2276
2321
|
);
|
|
2277
2322
|
this.prompt = DEFAULT_REWRITE_PROMPT;
|
|
2278
2323
|
} else {
|
|
2279
2324
|
try {
|
|
2280
2325
|
this.prompt = readFileSync(filePath, "utf-8").trim();
|
|
2281
|
-
|
|
2326
|
+
debugLogger5.info(
|
|
2282
2327
|
`Loaded rewrite prompt from file: ${filePath} (${this.prompt.length} chars)`
|
|
2283
2328
|
);
|
|
2284
2329
|
} catch (error) {
|
|
2285
|
-
|
|
2330
|
+
debugLogger5.warn(
|
|
2286
2331
|
`Rewrite prompt file could not be read: ${filePath} (${error instanceof Error ? error.message : String(error)}), using default`
|
|
2287
2332
|
);
|
|
2288
2333
|
this.prompt = DEFAULT_REWRITE_PROMPT;
|
|
@@ -2320,7 +2365,7 @@ var LlmRewriter = class {
|
|
|
2320
2365
|
const inputText = inputParts.join("\n\n");
|
|
2321
2366
|
if (!inputText.trim()) return null;
|
|
2322
2367
|
if (inputText.length < 10) return null;
|
|
2323
|
-
|
|
2368
|
+
debugLogger5.info(
|
|
2324
2369
|
`[REWRITE INPUT] system_prompt_len=${this.prompt.length} input_len=${inputText.length} context_turns=${this.outputHistory.length}
|
|
2325
2370
|
--- INPUT TEXT ---
|
|
2326
2371
|
${inputText}
|
|
@@ -2349,10 +2394,10 @@ ${inputText}
|
|
|
2349
2394
|
});
|
|
2350
2395
|
const rewritten = result.text;
|
|
2351
2396
|
if (!rewritten || rewritten.length < 5) {
|
|
2352
|
-
|
|
2397
|
+
debugLogger5.info(`[REWRITE OUTPUT] empty or too short, skipping`);
|
|
2353
2398
|
return null;
|
|
2354
2399
|
}
|
|
2355
|
-
|
|
2400
|
+
debugLogger5.info(
|
|
2356
2401
|
`[REWRITE OUTPUT] len=${rewritten.length}
|
|
2357
2402
|
--- OUTPUT ---
|
|
2358
2403
|
${rewritten}
|
|
@@ -2366,7 +2411,7 @@ ${rewritten}
|
|
|
2366
2411
|
}
|
|
2367
2412
|
return rewritten;
|
|
2368
2413
|
} catch (error) {
|
|
2369
|
-
|
|
2414
|
+
debugLogger5.warn(
|
|
2370
2415
|
`LLM rewrite failed, skipping: ${error instanceof Error ? error.message : String(error)}`
|
|
2371
2416
|
);
|
|
2372
2417
|
return null;
|
|
@@ -2375,7 +2420,7 @@ ${rewritten}
|
|
|
2375
2420
|
};
|
|
2376
2421
|
|
|
2377
2422
|
// packages/cli/src/acp-integration/session/rewrite/MessageRewriteMiddleware.ts
|
|
2378
|
-
var
|
|
2423
|
+
var debugLogger6 = createDebugLogger("MESSAGE_REWRITE");
|
|
2379
2424
|
var DEFAULT_REWRITE_TIMEOUT_MS = 3e4;
|
|
2380
2425
|
var REWRITE_META_EXCLUDED_KEYS = /* @__PURE__ */ new Set([]);
|
|
2381
2426
|
var MessageRewriteMiddleware = class {
|
|
@@ -2459,10 +2504,10 @@ var MessageRewriteMiddleware = class {
|
|
|
2459
2504
|
try {
|
|
2460
2505
|
const rewritten = await this.rewriter.rewrite(content, rewriteSignal);
|
|
2461
2506
|
if (!rewritten) {
|
|
2462
|
-
|
|
2507
|
+
debugLogger6.info(`Turn ${turnIdx}: no rewrite output`);
|
|
2463
2508
|
return;
|
|
2464
2509
|
}
|
|
2465
|
-
|
|
2510
|
+
debugLogger6.info(
|
|
2466
2511
|
`Turn ${turnIdx}: rewritten ${rewritten.length} chars`
|
|
2467
2512
|
);
|
|
2468
2513
|
await this.sendUpdate({
|
|
@@ -2475,7 +2520,7 @@ var MessageRewriteMiddleware = class {
|
|
|
2475
2520
|
}
|
|
2476
2521
|
});
|
|
2477
2522
|
} catch (error) {
|
|
2478
|
-
|
|
2523
|
+
debugLogger6.warn(
|
|
2479
2524
|
`Turn ${turnIdx}: rewrite failed: ${error instanceof Error ? error.message : String(error)}`
|
|
2480
2525
|
);
|
|
2481
2526
|
}
|
|
@@ -2893,7 +2938,7 @@ function reduceRepeatedToolFailureGuard(state, input) {
|
|
|
2893
2938
|
__name(reduceRepeatedToolFailureGuard, "reduceRepeatedToolFailureGuard");
|
|
2894
2939
|
|
|
2895
2940
|
// packages/cli/src/acp-integration/session/Session.ts
|
|
2896
|
-
var
|
|
2941
|
+
var debugLogger7 = createDebugLogger("SESSION");
|
|
2897
2942
|
var MAX_RETAINED_SESSION_ROUTE_COUNTS = 8;
|
|
2898
2943
|
var USER_CANCEL_ABORT_REASON = "o1-code:user-cancel";
|
|
2899
2944
|
var NEW_PROMPT_ABORT_REASON = "o1-code:new-prompt";
|
|
@@ -2955,14 +3000,17 @@ function isTodoStopGuardPromptText(text) {
|
|
|
2955
3000
|
}
|
|
2956
3001
|
__name(isTodoStopGuardPromptText, "isTodoStopGuardPromptText");
|
|
2957
3002
|
var ACP_API_USER_PROMPT_OPTIONS = {
|
|
2958
|
-
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
|
|
2959
3007
|
};
|
|
2960
3008
|
async function finalizeToolCallPreparations(tracker, includeResolved, streamName) {
|
|
2961
3009
|
try {
|
|
2962
3010
|
await tracker.discard(includeResolved);
|
|
2963
3011
|
} catch (error) {
|
|
2964
3012
|
const message = error instanceof Error ? error.message : String(error);
|
|
2965
|
-
|
|
3013
|
+
debugLogger7.warn(
|
|
2966
3014
|
`Failed to discard tool preparations for ${streamName}; continuing stream: ${message}`
|
|
2967
3015
|
);
|
|
2968
3016
|
}
|
|
@@ -3109,7 +3157,7 @@ function recordDaemonLoopDetected(config, promptId, loopType, message, loopState
|
|
|
3109
3157
|
if (!loopState.loopDetected) {
|
|
3110
3158
|
loopState.loopDetected = true;
|
|
3111
3159
|
loopState.loopType = loopType;
|
|
3112
|
-
|
|
3160
|
+
debugLogger7.warn(message);
|
|
3113
3161
|
try {
|
|
3114
3162
|
logLoopDetected(
|
|
3115
3163
|
config,
|
|
@@ -3117,7 +3165,7 @@ function recordDaemonLoopDetected(config, promptId, loopType, message, loopState
|
|
|
3117
3165
|
options
|
|
3118
3166
|
);
|
|
3119
3167
|
} catch (error) {
|
|
3120
|
-
|
|
3168
|
+
debugLogger7.debug(
|
|
3121
3169
|
"[Session] Failed to record loop detection telemetry",
|
|
3122
3170
|
error
|
|
3123
3171
|
);
|
|
@@ -3233,7 +3281,7 @@ function isContentBlock(value) {
|
|
|
3233
3281
|
case "resource":
|
|
3234
3282
|
return isEmbeddedResourceResource(value["resource"]);
|
|
3235
3283
|
default:
|
|
3236
|
-
|
|
3284
|
+
debugLogger7.warn(`Unknown ContentBlock type: ${value["type"]}`);
|
|
3237
3285
|
return false;
|
|
3238
3286
|
}
|
|
3239
3287
|
}
|
|
@@ -3349,7 +3397,7 @@ ${resource.text}`;
|
|
|
3349
3397
|
__name(stripReferencedAttachmentDataParts, "stripReferencedAttachmentDataParts");
|
|
3350
3398
|
function capMidTurnDrainItems(items, fieldName) {
|
|
3351
3399
|
if (items.length <= MAX_MID_TURN_DRAIN_ITEMS) return items;
|
|
3352
|
-
|
|
3400
|
+
debugLogger7.warn(
|
|
3353
3401
|
`Mid-turn drain response had ${items.length} ${fieldName}; processing first ${MAX_MID_TURN_DRAIN_ITEMS}`
|
|
3354
3402
|
);
|
|
3355
3403
|
return items.slice(0, MAX_MID_TURN_DRAIN_ITEMS);
|
|
@@ -3364,7 +3412,7 @@ function getMidTurnItemDisplayTextForLog(displayText) {
|
|
|
3364
3412
|
__name(getMidTurnItemDisplayTextForLog, "getMidTurnItemDisplayTextForLog");
|
|
3365
3413
|
function getValidMidTurnContentBlocks(content, displayText) {
|
|
3366
3414
|
if (!Array.isArray(content)) {
|
|
3367
|
-
|
|
3415
|
+
debugLogger7.warn(
|
|
3368
3416
|
`Dropped invalid mid-turn item: ${getMidTurnItemDisplayTextForLog(
|
|
3369
3417
|
displayText
|
|
3370
3418
|
)}`
|
|
@@ -3374,7 +3422,7 @@ function getValidMidTurnContentBlocks(content, displayText) {
|
|
|
3374
3422
|
const validBlocks = content.filter(isContentBlock);
|
|
3375
3423
|
const invalidBlockCount = content.length - validBlocks.length;
|
|
3376
3424
|
if (invalidBlockCount > 0) {
|
|
3377
|
-
|
|
3425
|
+
debugLogger7.warn(
|
|
3378
3426
|
`Dropped ${invalidBlockCount} invalid mid-turn content block(s): ${getMidTurnItemDisplayTextForLog(
|
|
3379
3427
|
displayText
|
|
3380
3428
|
)}`
|
|
@@ -3432,7 +3480,7 @@ function parseMidTurnDrainResponse(response) {
|
|
|
3432
3480
|
);
|
|
3433
3481
|
}
|
|
3434
3482
|
if (!Array.isArray(response["messages"])) {
|
|
3435
|
-
|
|
3483
|
+
debugLogger7.warn(
|
|
3436
3484
|
`Mid-turn drain response had no recognized 'items' or 'messages' field; keys: ${Object.keys(
|
|
3437
3485
|
response
|
|
3438
3486
|
).join(", ")}`
|
|
@@ -3567,7 +3615,7 @@ async function fireSessionPermissionDeniedForAutoMode(config, decision, outcome,
|
|
|
3567
3615
|
callId
|
|
3568
3616
|
);
|
|
3569
3617
|
} catch (hookError) {
|
|
3570
|
-
|
|
3618
|
+
debugLogger7.warn(
|
|
3571
3619
|
`PermissionDenied hook failed for tool ${callId}: ${hookError instanceof Error ? hookError.message : String(hookError)}`
|
|
3572
3620
|
);
|
|
3573
3621
|
}
|
|
@@ -3710,7 +3758,7 @@ async function buildAvailableCommandsSnapshot(config, abortSignal = AbortSignal.
|
|
|
3710
3758
|
}
|
|
3711
3759
|
}
|
|
3712
3760
|
} catch (error) {
|
|
3713
|
-
|
|
3761
|
+
debugLogger7.error("Error loading available skills:", error);
|
|
3714
3762
|
}
|
|
3715
3763
|
for (const command of visibleSlashCommands) {
|
|
3716
3764
|
if (command.kind !== "skill" /* SKILL */ || !command.skillDetail) {
|
|
@@ -3757,7 +3805,7 @@ var Session = class {
|
|
|
3757
3805
|
const todoWriteEnabled = this.settings.merged.tools?.todoWrite?.enabled === true;
|
|
3758
3806
|
const todoStopGuardEnabled = todoStopGuardConfigured && todoStopGuardModeAllowed && todoWriteEnabled;
|
|
3759
3807
|
if (todoStopGuardConfigured && todoStopGuardModeAllowed && !todoWriteEnabled) {
|
|
3760
|
-
|
|
3808
|
+
debugLogger7.warn(
|
|
3761
3809
|
"experimental.todoStopGuard requires tools.todoWrite.enabled; the Todo Stop Guard is disabled."
|
|
3762
3810
|
);
|
|
3763
3811
|
}
|
|
@@ -3770,7 +3818,7 @@ var Session = class {
|
|
|
3770
3818
|
const parsedGuardMode = parseRepeatedToolFailureGuardMode(configuredGuardMode);
|
|
3771
3819
|
this.repeatedToolFailureGuardMode = parsedGuardMode ?? "shadow";
|
|
3772
3820
|
if (configuredGuardMode?.trim() && parsedGuardMode === void 0) {
|
|
3773
|
-
|
|
3821
|
+
debugLogger7.warn(
|
|
3774
3822
|
`${ENV_ACP_REPEATED_TOOL_FAILURE_GUARD} has an invalid value; defaulting to shadow. Expected off, shadow, warn, or enforce.`
|
|
3775
3823
|
);
|
|
3776
3824
|
}
|
|
@@ -4012,7 +4060,7 @@ var Session = class {
|
|
|
4012
4060
|
this.heldGoalProposal = void 0;
|
|
4013
4061
|
}
|
|
4014
4062
|
void this.#queueGoalState(snapshot, cause, previousGoal).catch(
|
|
4015
|
-
(error) =>
|
|
4063
|
+
(error) => debugLogger7.warn(
|
|
4016
4064
|
`Failed to emit ACP Goal state: ${error instanceof Error ? error.message : String(error)}`
|
|
4017
4065
|
)
|
|
4018
4066
|
);
|
|
@@ -4047,7 +4095,7 @@ var Session = class {
|
|
|
4047
4095
|
if (!(error instanceof GoalPersistenceUnavailableError)) {
|
|
4048
4096
|
throw error;
|
|
4049
4097
|
}
|
|
4050
|
-
|
|
4098
|
+
debugLogger7.debug("Canonical Goal runtime is unavailable for ACP");
|
|
4051
4099
|
}
|
|
4052
4100
|
}
|
|
4053
4101
|
/**
|
|
@@ -4241,7 +4289,7 @@ var Session = class {
|
|
|
4241
4289
|
void 0,
|
|
4242
4290
|
error instanceof Error ? error.message : String(error)
|
|
4243
4291
|
);
|
|
4244
|
-
|
|
4292
|
+
debugLogger7.warn(
|
|
4245
4293
|
`ACP Goal turn failed: ${error instanceof Error ? error.message : String(error)}`
|
|
4246
4294
|
);
|
|
4247
4295
|
} finally {
|
|
@@ -4267,7 +4315,7 @@ var Session = class {
|
|
|
4267
4315
|
try {
|
|
4268
4316
|
this.config.getGoalRuntime().markTurnDelivered(turnKey);
|
|
4269
4317
|
} catch (error) {
|
|
4270
|
-
|
|
4318
|
+
debugLogger7.debug(
|
|
4271
4319
|
`Failed to confirm ACP Goal turn delivery: ${error instanceof Error ? error.message : String(error)}`
|
|
4272
4320
|
);
|
|
4273
4321
|
}
|
|
@@ -4288,7 +4336,7 @@ var Session = class {
|
|
|
4288
4336
|
reason: turn.controller.signal.reason === SESSION_DISPOSE_ABORT_REASON ? GOAL_PAUSE_REASON_SESSION_DISPOSED : GOAL_PAUSE_REASON_USER_INTERRUPT
|
|
4289
4337
|
});
|
|
4290
4338
|
} catch (error) {
|
|
4291
|
-
|
|
4339
|
+
debugLogger7.warn(
|
|
4292
4340
|
`Failed to record pre-model ACP Goal turn settlement: ${error instanceof Error ? error.message : String(error)}`
|
|
4293
4341
|
);
|
|
4294
4342
|
await runtime.releaseTurn(turn.turnKey, { requeue: false });
|
|
@@ -4301,7 +4349,7 @@ var Session = class {
|
|
|
4301
4349
|
try {
|
|
4302
4350
|
await this.config.getChatRecordingService()?.flush();
|
|
4303
4351
|
} catch (error) {
|
|
4304
|
-
|
|
4352
|
+
debugLogger7.warn(
|
|
4305
4353
|
`Failed to flush ACP Goal turn: ${error instanceof Error ? error.message : String(error)}`
|
|
4306
4354
|
);
|
|
4307
4355
|
}
|
|
@@ -4320,7 +4368,7 @@ var Session = class {
|
|
|
4320
4368
|
}
|
|
4321
4369
|
await runtime.finishTurn(turn.permit);
|
|
4322
4370
|
} catch (error) {
|
|
4323
|
-
|
|
4371
|
+
debugLogger7.warn(
|
|
4324
4372
|
`Failed to record ACP Goal turn settlement: ${error instanceof Error ? error.message : String(error)}`
|
|
4325
4373
|
);
|
|
4326
4374
|
if (pauseReason !== void 0) {
|
|
@@ -4343,12 +4391,12 @@ var Session = class {
|
|
|
4343
4391
|
turn.endingToolCallId
|
|
4344
4392
|
]);
|
|
4345
4393
|
} catch (error) {
|
|
4346
|
-
|
|
4394
|
+
debugLogger7.warn("Failed to record ACP Goal turn end:", error);
|
|
4347
4395
|
}
|
|
4348
4396
|
}
|
|
4349
4397
|
}
|
|
4350
4398
|
} catch (error) {
|
|
4351
|
-
|
|
4399
|
+
debugLogger7.warn(
|
|
4352
4400
|
`Failed to settle ACP Goal turn: ${error instanceof Error ? error.message : String(error)}`
|
|
4353
4401
|
);
|
|
4354
4402
|
}
|
|
@@ -4372,7 +4420,7 @@ var Session = class {
|
|
|
4372
4420
|
reason: GOAL_PAUSE_REASON_STOP_HOOK_CAP
|
|
4373
4421
|
});
|
|
4374
4422
|
} catch (error) {
|
|
4375
|
-
|
|
4423
|
+
debugLogger7.warn(
|
|
4376
4424
|
`Failed to pause the Goal after the Stop hook cap: ${error instanceof Error ? error.message : String(error)}`
|
|
4377
4425
|
);
|
|
4378
4426
|
}
|
|
@@ -4444,7 +4492,7 @@ var Session = class {
|
|
|
4444
4492
|
resolved && outcome === "proceed_once" /* ProceedOnce */
|
|
4445
4493
|
);
|
|
4446
4494
|
} catch (error) {
|
|
4447
|
-
|
|
4495
|
+
debugLogger7.error("Workflow permission request failed:", error);
|
|
4448
4496
|
await registry.resolvePendingApproval(
|
|
4449
4497
|
runId,
|
|
4450
4498
|
approval.approvalId,
|
|
@@ -4471,7 +4519,7 @@ var Session = class {
|
|
|
4471
4519
|
}
|
|
4472
4520
|
});
|
|
4473
4521
|
} catch (error) {
|
|
4474
|
-
|
|
4522
|
+
debugLogger7.warn(
|
|
4475
4523
|
"Failed to finalize workflow approval tool call:",
|
|
4476
4524
|
error
|
|
4477
4525
|
);
|
|
@@ -4645,7 +4693,7 @@ var Session = class {
|
|
|
4645
4693
|
}
|
|
4646
4694
|
return "unavailable";
|
|
4647
4695
|
} catch (error) {
|
|
4648
|
-
|
|
4696
|
+
debugLogger7.warn(
|
|
4649
4697
|
`Todo Stop Guard continuation claim unavailable [session ${this.sessionId}]: ${this.#formatError(error)}`
|
|
4650
4698
|
);
|
|
4651
4699
|
return "unavailable";
|
|
@@ -4875,7 +4923,7 @@ var Session = class {
|
|
|
4875
4923
|
startCronScheduler() {
|
|
4876
4924
|
if (this.#isAutomaticWorkHeld()) return;
|
|
4877
4925
|
this.#startCronSchedulerInRuntime().catch((error) => {
|
|
4878
|
-
|
|
4926
|
+
debugLogger7.warn(
|
|
4879
4927
|
`Cron scheduler startup failed [session ${this.sessionId}]: ${error}`
|
|
4880
4928
|
);
|
|
4881
4929
|
});
|
|
@@ -5094,7 +5142,7 @@ var Session = class {
|
|
|
5094
5142
|
try {
|
|
5095
5143
|
activation.onRelease?.();
|
|
5096
5144
|
} catch (error) {
|
|
5097
|
-
|
|
5145
|
+
debugLogger7.warn(
|
|
5098
5146
|
`Managed conversation release callback failed [session ${this.sessionId}]: ${error}`
|
|
5099
5147
|
);
|
|
5100
5148
|
}
|
|
@@ -5431,7 +5479,7 @@ var Session = class {
|
|
|
5431
5479
|
installRewriter() {
|
|
5432
5480
|
const rewriteConfig = loadRewriteConfig(this.settings);
|
|
5433
5481
|
if (rewriteConfig?.enabled) {
|
|
5434
|
-
|
|
5482
|
+
debugLogger7.info("Message rewrite middleware enabled");
|
|
5435
5483
|
this.messageRewriter = new MessageRewriteMiddleware(
|
|
5436
5484
|
this.config,
|
|
5437
5485
|
rewriteConfig,
|
|
@@ -5605,7 +5653,7 @@ var Session = class {
|
|
|
5605
5653
|
});
|
|
5606
5654
|
}
|
|
5607
5655
|
} catch (error) {
|
|
5608
|
-
|
|
5656
|
+
debugLogger7.warn(
|
|
5609
5657
|
`Failed to pause queued ACP Goal turn: ${error instanceof Error ? error.message : String(error)}`
|
|
5610
5658
|
);
|
|
5611
5659
|
}
|
|
@@ -5832,7 +5880,7 @@ var Session = class {
|
|
|
5832
5880
|
try {
|
|
5833
5881
|
await reservedGoalRuntime.releaseTurn(reservedGoalTurnKey);
|
|
5834
5882
|
} catch (releaseError) {
|
|
5835
|
-
|
|
5883
|
+
debugLogger7.warn(
|
|
5836
5884
|
`Failed to release Goal reservation after admission failure: ${releaseError instanceof Error ? releaseError.message : String(releaseError)}`
|
|
5837
5885
|
);
|
|
5838
5886
|
} finally {
|
|
@@ -5897,7 +5945,7 @@ var Session = class {
|
|
|
5897
5945
|
stopReason: result.stopReason
|
|
5898
5946
|
});
|
|
5899
5947
|
} catch (error) {
|
|
5900
|
-
|
|
5948
|
+
debugLogger7.warn(
|
|
5901
5949
|
"Failed to record branch checkpoint; completing the turn without a branch point",
|
|
5902
5950
|
error
|
|
5903
5951
|
);
|
|
@@ -5948,7 +5996,7 @@ var Session = class {
|
|
|
5948
5996
|
try {
|
|
5949
5997
|
await this.config.getLlmClient().setTools();
|
|
5950
5998
|
} catch (error) {
|
|
5951
|
-
|
|
5999
|
+
debugLogger7.warn(
|
|
5952
6000
|
"Failed to refresh Goal proposal availability",
|
|
5953
6001
|
error
|
|
5954
6002
|
);
|
|
@@ -6024,7 +6072,7 @@ var Session = class {
|
|
|
6024
6072
|
async continueLastTurn() {
|
|
6025
6073
|
const recovery = this.getRecoveryStatus();
|
|
6026
6074
|
if (!recovery.canContinue && recovery.kind !== "clean") {
|
|
6027
|
-
|
|
6075
|
+
debugLogger7.debug("[Session] recovery canContinue vetoed", {
|
|
6028
6076
|
kind: recovery.kind,
|
|
6029
6077
|
closing: this.closing,
|
|
6030
6078
|
pendingPrompt: Boolean(this.pendingPrompt),
|
|
@@ -6083,7 +6131,7 @@ var Session = class {
|
|
|
6083
6131
|
const conversationHistory = chat.getHistoryTail(40, true);
|
|
6084
6132
|
const lastEntry = conversationHistory[conversationHistory.length - 1];
|
|
6085
6133
|
if (!lastEntry || lastEntry.role !== "model") {
|
|
6086
|
-
|
|
6134
|
+
debugLogger7.debug(
|
|
6087
6135
|
"Skipping followup suggestion: last history entry is not model"
|
|
6088
6136
|
);
|
|
6089
6137
|
return;
|
|
@@ -6123,9 +6171,9 @@ var Session = class {
|
|
|
6123
6171
|
}
|
|
6124
6172
|
} catch (error) {
|
|
6125
6173
|
if (ac.signal.aborted) {
|
|
6126
|
-
|
|
6174
|
+
debugLogger7.debug("Follow-up suggestion generation aborted");
|
|
6127
6175
|
} else {
|
|
6128
|
-
|
|
6176
|
+
debugLogger7.warn("Follow-up suggestion generation failed", error);
|
|
6129
6177
|
}
|
|
6130
6178
|
} finally {
|
|
6131
6179
|
if (this.followupAbort === ac) {
|
|
@@ -6198,7 +6246,7 @@ var Session = class {
|
|
|
6198
6246
|
goalId: current.goalId,
|
|
6199
6247
|
revision: current.revision
|
|
6200
6248
|
};
|
|
6201
|
-
|
|
6249
|
+
debugLogger7.warn(
|
|
6202
6250
|
"Failed to pause the cancelled Goal proposal",
|
|
6203
6251
|
error
|
|
6204
6252
|
);
|
|
@@ -6208,7 +6256,7 @@ var Session = class {
|
|
|
6208
6256
|
}
|
|
6209
6257
|
}
|
|
6210
6258
|
} else if (!result.applied) {
|
|
6211
|
-
|
|
6259
|
+
debugLogger7.debug(
|
|
6212
6260
|
`Dropping an approved Goal proposal: ${result.reason}`
|
|
6213
6261
|
);
|
|
6214
6262
|
await this.messageEmitter.emitAgentMessage(
|
|
@@ -6216,7 +6264,7 @@ var Session = class {
|
|
|
6216
6264
|
);
|
|
6217
6265
|
}
|
|
6218
6266
|
} catch (error) {
|
|
6219
|
-
|
|
6267
|
+
debugLogger7.warn("Failed to apply an approved Goal proposal", error);
|
|
6220
6268
|
await this.messageEmitter.emitAgentMessage(
|
|
6221
6269
|
formatProposeGoalRecoveryFailed(proposal.objective)
|
|
6222
6270
|
);
|
|
@@ -6313,7 +6361,7 @@ var Session = class {
|
|
|
6313
6361
|
} else if (isContinue) {
|
|
6314
6362
|
const recoveryPlan = this.#getRecoveryPlan(true);
|
|
6315
6363
|
if (!recoveryPlan?.continuation) {
|
|
6316
|
-
|
|
6364
|
+
debugLogger7.warn(
|
|
6317
6365
|
`[Session] continue ${promptId}: no interrupted turn on re-detection, nothing to continue`
|
|
6318
6366
|
);
|
|
6319
6367
|
logConversationFinishedEvent(
|
|
@@ -6511,10 +6559,10 @@ var Session = class {
|
|
|
6511
6559
|
this.config.getChatRecordingService()?.recordFileHistorySnapshot(latestSnapshot);
|
|
6512
6560
|
}
|
|
6513
6561
|
} catch (e) {
|
|
6514
|
-
|
|
6562
|
+
debugLogger7.error(`FileHistory: recordSnapshot failed: ${e}`);
|
|
6515
6563
|
}
|
|
6516
6564
|
} catch (e) {
|
|
6517
|
-
|
|
6565
|
+
debugLogger7.error(`FileHistory: makeSnapshot failed: ${e}`);
|
|
6518
6566
|
}
|
|
6519
6567
|
}
|
|
6520
6568
|
const systemReminders = await this.#buildInitialSystemReminders();
|
|
@@ -6829,7 +6877,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
6829
6877
|
const hooksEnabledForStopFailure = !this.config.getDisableAllHooks?.();
|
|
6830
6878
|
if (hooksEnabledForStopFailure && hookSystem && this.config.hasHooksForEvent?.("StopFailure")) {
|
|
6831
6879
|
hookSystem.fireStopFailureEvent(errorType, errorMessage).catch((err) => {
|
|
6832
|
-
|
|
6880
|
+
debugLogger7.warn(`StopFailure hook failed: ${err}`);
|
|
6833
6881
|
});
|
|
6834
6882
|
}
|
|
6835
6883
|
if (errorStatus === 429) {
|
|
@@ -7225,7 +7273,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7225
7273
|
this.todoStopGuard.suspend();
|
|
7226
7274
|
blockGoalProposalSettlement();
|
|
7227
7275
|
await this.messageEmitter.emitAgentMessage(warning);
|
|
7228
|
-
|
|
7276
|
+
debugLogger7.warn(warning);
|
|
7229
7277
|
return { stopReason: "end_turn" };
|
|
7230
7278
|
}
|
|
7231
7279
|
if (!externalReason && !guardContinuation) {
|
|
@@ -7683,7 +7731,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7683
7731
|
const hookSystem = this.config.getHookSystem?.();
|
|
7684
7732
|
if (!this.config.getDisableAllHooks?.() && hookSystem && this.config.hasHooksForEvent?.("StopFailure")) {
|
|
7685
7733
|
hookSystem.fireStopFailureEvent(errorType, errorMessage).catch((err) => {
|
|
7686
|
-
|
|
7734
|
+
debugLogger7.warn(`StopFailure hook failed: ${err}`);
|
|
7687
7735
|
});
|
|
7688
7736
|
}
|
|
7689
7737
|
if (errorStatus === 429) {
|
|
@@ -7850,7 +7898,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7850
7898
|
}
|
|
7851
7899
|
});
|
|
7852
7900
|
} catch (error) {
|
|
7853
|
-
|
|
7901
|
+
debugLogger7.warn(
|
|
7854
7902
|
`Failed to emit Todo Stop Guard status: ${this.#formatError(error)}`
|
|
7855
7903
|
);
|
|
7856
7904
|
}
|
|
@@ -7999,7 +8047,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
7999
8047
|
await recording.recordingService?.flush();
|
|
8000
8048
|
}
|
|
8001
8049
|
} catch (recordError) {
|
|
8002
|
-
|
|
8050
|
+
debugLogger7.warn(
|
|
8003
8051
|
`Failed to record turn result: ${this.#formatError(recordError)}`
|
|
8004
8052
|
);
|
|
8005
8053
|
}
|
|
@@ -8033,7 +8081,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8033
8081
|
return new MessageDisplayDispatcher(
|
|
8034
8082
|
messageBus,
|
|
8035
8083
|
signal,
|
|
8036
|
-
(message) =>
|
|
8084
|
+
(message) => debugLogger7.warn(message)
|
|
8037
8085
|
);
|
|
8038
8086
|
}
|
|
8039
8087
|
/**
|
|
@@ -8054,7 +8102,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8054
8102
|
message = decision.message;
|
|
8055
8103
|
}
|
|
8056
8104
|
if (abortSignal.aborted) {
|
|
8057
|
-
|
|
8105
|
+
debugLogger7.debug(
|
|
8058
8106
|
`Send aborted after pre-compression preparation for prompt ${promptId}`
|
|
8059
8107
|
);
|
|
8060
8108
|
return { responseStream: null, stopReason: "cancelled" };
|
|
@@ -8083,26 +8131,26 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8083
8131
|
}
|
|
8084
8132
|
} catch (compressionError) {
|
|
8085
8133
|
if (abortSignal.aborted) {
|
|
8086
|
-
|
|
8134
|
+
debugLogger7.debug(`Auto-compression aborted for prompt ${promptId}`);
|
|
8087
8135
|
return { responseStream: null, stopReason: "cancelled" };
|
|
8088
8136
|
}
|
|
8089
8137
|
if (this.#isAbortError(compressionError)) {
|
|
8090
8138
|
throw compressionError;
|
|
8091
8139
|
}
|
|
8092
|
-
|
|
8140
|
+
debugLogger7.warn(
|
|
8093
8141
|
`Auto-compression failed for prompt ${promptId}; proceeding without compression: ` + this.#formatError(compressionError)
|
|
8094
8142
|
);
|
|
8095
8143
|
compressionFailed = true;
|
|
8096
8144
|
}
|
|
8097
8145
|
}
|
|
8098
8146
|
if (abortSignal.aborted) {
|
|
8099
|
-
|
|
8147
|
+
debugLogger7.debug(`Auto-compression aborted for prompt ${promptId}`);
|
|
8100
8148
|
return { responseStream: null, stopReason: "cancelled" };
|
|
8101
8149
|
}
|
|
8102
8150
|
const model = options.getModelOverride?.() ?? options.modelOverride ?? this.config.getModel();
|
|
8103
8151
|
const requestRouteKey = await this.#requestRouteKeyForModel(model);
|
|
8104
8152
|
if (abortSignal.aborted) {
|
|
8105
|
-
|
|
8153
|
+
debugLogger7.debug(
|
|
8106
8154
|
`Send aborted after request route key resolution for prompt ${promptId}`
|
|
8107
8155
|
);
|
|
8108
8156
|
return { responseStream: null, stopReason: "cancelled" };
|
|
@@ -8119,7 +8167,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8119
8167
|
requestRouteKey
|
|
8120
8168
|
);
|
|
8121
8169
|
if (lastPromptTokenCount > sessionTokenLimit) {
|
|
8122
|
-
|
|
8170
|
+
debugLogger7.warn(
|
|
8123
8171
|
`Session token limit exceeded for prompt ${promptId}: ${lastPromptTokenCount} > ${sessionTokenLimit}. requestRoute=${requestRouteKey}, activeModel=${this.config.getModel()}. Send dropped.`
|
|
8124
8172
|
);
|
|
8125
8173
|
await this.#emitAgentDiagnosticMessageSafely(
|
|
@@ -8136,7 +8184,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8136
8184
|
);
|
|
8137
8185
|
}
|
|
8138
8186
|
if (abortSignal.aborted) {
|
|
8139
|
-
|
|
8187
|
+
debugLogger7.debug(
|
|
8140
8188
|
`Send aborted after compression diagnostic for prompt ${promptId}`
|
|
8141
8189
|
);
|
|
8142
8190
|
return { responseStream: null, stopReason: "cancelled" };
|
|
@@ -8149,7 +8197,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8149
8197
|
message = decision.message;
|
|
8150
8198
|
}
|
|
8151
8199
|
if (abortSignal.aborted) {
|
|
8152
|
-
|
|
8200
|
+
debugLogger7.debug(
|
|
8153
8201
|
`Send aborted after pre-send validation for prompt ${promptId}`
|
|
8154
8202
|
);
|
|
8155
8203
|
return { responseStream: null, stopReason: "cancelled" };
|
|
@@ -8194,7 +8242,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8194
8242
|
) ?? [];
|
|
8195
8243
|
const droppedParts = (message.parts?.length ?? 0) - functionResponseParts.length;
|
|
8196
8244
|
if (droppedParts > 0) {
|
|
8197
|
-
|
|
8245
|
+
debugLogger7.debug(
|
|
8198
8246
|
`Dropping ${droppedParts} non-functionResponse part(s) from unsent ACP message after send was skipped.`
|
|
8199
8247
|
);
|
|
8200
8248
|
}
|
|
@@ -8275,7 +8323,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8275
8323
|
history,
|
|
8276
8324
|
config: this.config
|
|
8277
8325
|
}).catch((error) => {
|
|
8278
|
-
|
|
8326
|
+
debugLogger7.warn(
|
|
8279
8327
|
"Failed to schedule ACP managed auto-memory extraction.",
|
|
8280
8328
|
error
|
|
8281
8329
|
);
|
|
@@ -8285,7 +8333,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8285
8333
|
sessionId: this.config.getSessionId(),
|
|
8286
8334
|
config: this.config
|
|
8287
8335
|
}).catch((error) => {
|
|
8288
|
-
|
|
8336
|
+
debugLogger7.warn(
|
|
8289
8337
|
"Failed to schedule ACP managed auto-memory dream.",
|
|
8290
8338
|
error
|
|
8291
8339
|
);
|
|
@@ -8293,7 +8341,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8293
8341
|
}
|
|
8294
8342
|
async #buildNextMessageAfterToolRun(toolRun, abortSignal, promptId, toolLoopState, onFullTurnModel, rejectOnLoopDetected = false) {
|
|
8295
8343
|
if (toolRun.loopDetected) {
|
|
8296
|
-
|
|
8344
|
+
debugLogger7.debug("Stopping ACP turn after daemon loop detection.");
|
|
8297
8345
|
return { message: null, hadMidTurnUserInput: false };
|
|
8298
8346
|
}
|
|
8299
8347
|
const drained = await this.#drainMidTurnInput(abortSignal, {
|
|
@@ -8351,7 +8399,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8351
8399
|
toolLoopState.repeatedToolFailureState = repeatedToolFailureDecision.state;
|
|
8352
8400
|
if (repeatedToolFailureDecision.kind !== "none") {
|
|
8353
8401
|
const { state } = repeatedToolFailureDecision;
|
|
8354
|
-
|
|
8402
|
+
debugLogger7.debug(
|
|
8355
8403
|
`[repeated-tool-failure-guard] mode=${toolLoopState.repeatedToolFailureMode} decision=${repeatedToolFailureDecision.kind} phase=${state.phase} candidate=${state.candidateOrdinal} failures=${state.failureCount} batches=${state.batchCount}`
|
|
8356
8404
|
);
|
|
8357
8405
|
}
|
|
@@ -8389,7 +8437,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8389
8437
|
REPEATED_TOOL_FAILURE_STOP_MESSAGE
|
|
8390
8438
|
);
|
|
8391
8439
|
} catch (error) {
|
|
8392
|
-
|
|
8440
|
+
debugLogger7.warn(
|
|
8393
8441
|
`Failed to emit repeated tool failure stop message: ${this.#formatError(error)}`
|
|
8394
8442
|
);
|
|
8395
8443
|
}
|
|
@@ -8543,7 +8591,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8543
8591
|
try {
|
|
8544
8592
|
await this.#emitAgentDiagnosticMessage(text);
|
|
8545
8593
|
} catch (notifyError) {
|
|
8546
|
-
|
|
8594
|
+
debugLogger7.warn(`${failureContext}: ${this.#formatError(notifyError)}`);
|
|
8547
8595
|
}
|
|
8548
8596
|
}
|
|
8549
8597
|
async #emitAgentDiagnosticMessage(text) {
|
|
@@ -8616,7 +8664,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8616
8664
|
if (isPermanentError) {
|
|
8617
8665
|
this.midTurnDrainUnavailable = true;
|
|
8618
8666
|
}
|
|
8619
|
-
|
|
8667
|
+
debugLogger7.warn(
|
|
8620
8668
|
`Mid-turn queue drain ${isPermanentError ? "permanently " : ""}unavailable [session ${this.sessionId}]: ${errorMessage}`
|
|
8621
8669
|
);
|
|
8622
8670
|
return {
|
|
@@ -8662,14 +8710,14 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8662
8710
|
clearTimeout(timer);
|
|
8663
8711
|
}
|
|
8664
8712
|
if (late === expired) {
|
|
8665
|
-
|
|
8713
|
+
debugLogger7.warn(
|
|
8666
8714
|
`[mid-turn] dropped a drain response that arrived after the ${MID_TURN_QUEUE_RECOVERY_TIMEOUT_MS}ms recovery deadline [session ${this.sessionId}]`
|
|
8667
8715
|
);
|
|
8668
8716
|
return;
|
|
8669
8717
|
}
|
|
8670
8718
|
const lateMessages = parseMidTurnDrainResponse(late);
|
|
8671
8719
|
if (lateMessages.length > 0) {
|
|
8672
|
-
|
|
8720
|
+
debugLogger7.debug(
|
|
8673
8721
|
`[mid-turn] recovered ${lateMessages.length} message(s) from a timed-out drain [session ${this.sessionId}]`
|
|
8674
8722
|
);
|
|
8675
8723
|
this.midTurnRecoveredMessages.push(...lateMessages);
|
|
@@ -8714,7 +8762,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8714
8762
|
}
|
|
8715
8763
|
if (!abortSignal.aborted) {
|
|
8716
8764
|
const errorMessage = this.#formatError(messageError);
|
|
8717
|
-
|
|
8765
|
+
debugLogger7.warn(
|
|
8718
8766
|
`Failed to resolve mid-turn message: ${errorMessage}`
|
|
8719
8767
|
);
|
|
8720
8768
|
}
|
|
@@ -8761,7 +8809,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8761
8809
|
try {
|
|
8762
8810
|
await scheduler.enableDurable(this.sessionId);
|
|
8763
8811
|
} catch (err) {
|
|
8764
|
-
|
|
8812
|
+
debugLogger7.warn(
|
|
8765
8813
|
`Durable cron init failed \u2014 persistent tasks will not fire in this session: ${err}`
|
|
8766
8814
|
);
|
|
8767
8815
|
}
|
|
@@ -8801,7 +8849,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8801
8849
|
const record = /* @__PURE__ */ __name(async (outcome) => {
|
|
8802
8850
|
if (!job.id || firedAt === void 0) return;
|
|
8803
8851
|
await scheduler.annotateRunSession(job.id, firedAt, outcome).catch((error) => {
|
|
8804
|
-
|
|
8852
|
+
debugLogger7.warn(
|
|
8805
8853
|
`Scheduled task ${taskId} could not record its run session: ${error instanceof Error ? error.message : String(error)}`
|
|
8806
8854
|
);
|
|
8807
8855
|
});
|
|
@@ -8811,18 +8859,18 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8811
8859
|
try {
|
|
8812
8860
|
const restored = await scheduler.restoreConsumedOneShot(job.id);
|
|
8813
8861
|
if (!restored) {
|
|
8814
|
-
|
|
8862
|
+
debugLogger7.warn(
|
|
8815
8863
|
`Scheduled task ${taskId} could not find its consumed one-shot to restore`
|
|
8816
8864
|
);
|
|
8817
8865
|
}
|
|
8818
8866
|
} catch (error) {
|
|
8819
|
-
|
|
8867
|
+
debugLogger7.warn(
|
|
8820
8868
|
`Scheduled task ${taskId} could not restore its unexecuted one-shot: ${error instanceof Error ? error.message : String(error)}`
|
|
8821
8869
|
);
|
|
8822
8870
|
}
|
|
8823
8871
|
}, "restoreOneShot");
|
|
8824
8872
|
if (job.modelServiceId !== void 0 && !isValidCronTaskRoutingId(job.modelServiceId) || job.groupId !== void 0 && !isValidCronTaskRoutingId(job.groupId)) {
|
|
8825
|
-
|
|
8873
|
+
debugLogger7.warn(
|
|
8826
8874
|
`Scheduled task ${taskId} has invalid model or group routing; it was not dispatched`
|
|
8827
8875
|
);
|
|
8828
8876
|
await record({ dispatchFailed: true });
|
|
@@ -8867,7 +8915,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8867
8915
|
} catch (error) {
|
|
8868
8916
|
const requiresFreshSessionRouting = job.modelServiceId !== void 0 || job.groupId !== void 0;
|
|
8869
8917
|
const errorMessage = error instanceof Error ? error.message : typeof error === "object" && error !== null && typeof error["message"] === "string" ? error["message"] : String(error);
|
|
8870
|
-
|
|
8918
|
+
debugLogger7.warn(
|
|
8871
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}`
|
|
8872
8920
|
);
|
|
8873
8921
|
await record(
|
|
@@ -8932,7 +8980,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8932
8980
|
unrelatedCount--;
|
|
8933
8981
|
}
|
|
8934
8982
|
if (evictedTaskIds.length > 0) {
|
|
8935
|
-
|
|
8983
|
+
debugLogger7.warn(
|
|
8936
8984
|
`Cron queue overflow while automatic work is deferred: evicted ${evictedTaskIds.length} unrelated task(s): ${evictedTaskIds.join(", ")}`
|
|
8937
8985
|
);
|
|
8938
8986
|
}
|
|
@@ -8967,7 +9015,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
8967
9015
|
try {
|
|
8968
9016
|
await this.assertCanStartTurn();
|
|
8969
9017
|
} catch (error) {
|
|
8970
|
-
|
|
9018
|
+
debugLogger7.warn(
|
|
8971
9019
|
`Cron turn rejected [session ${this.sessionId}]: ${error instanceof Error ? error.message : String(error)}`
|
|
8972
9020
|
);
|
|
8973
9021
|
return;
|
|
@@ -9090,7 +9138,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9090
9138
|
loopTick = await resolver.resolve(loopMode, trustedAtResolve);
|
|
9091
9139
|
} catch (resolveErr) {
|
|
9092
9140
|
const code = resolveErr.code ?? "unknown";
|
|
9093
|
-
|
|
9141
|
+
debugLogger7.warn(
|
|
9094
9142
|
`loop.md sentinel resolution failed (mode=${loopMode}, code=${code}) \u2014 check .o1-code/loop.md permissions/IO`,
|
|
9095
9143
|
resolveErr
|
|
9096
9144
|
);
|
|
@@ -9113,7 +9161,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9113
9161
|
}
|
|
9114
9162
|
const modelText = loopTick ? loopTick.modelText : prompt;
|
|
9115
9163
|
if (loopTick) {
|
|
9116
|
-
|
|
9164
|
+
debugLogger7.debug(
|
|
9117
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}`
|
|
9118
9166
|
);
|
|
9119
9167
|
}
|
|
@@ -9324,7 +9372,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9324
9372
|
}
|
|
9325
9373
|
this.todoStopGuard.pauseForTrustedRetry();
|
|
9326
9374
|
cronHadError = true;
|
|
9327
|
-
|
|
9375
|
+
debugLogger7.error("Error processing cron prompt:", error);
|
|
9328
9376
|
const msg = error instanceof Error ? error.message : String(error);
|
|
9329
9377
|
await this.messageEmitter.emitAgentMessage(
|
|
9330
9378
|
`[${item.source} error] ${msg}`
|
|
@@ -9517,7 +9565,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9517
9565
|
);
|
|
9518
9566
|
if (admission.action === "drop") {
|
|
9519
9567
|
const incomingIsRelated = this.#notificationContinuesTodoStopGuardWorkChain(item);
|
|
9520
|
-
|
|
9568
|
+
debugLogger7.warn(
|
|
9521
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`
|
|
9522
9570
|
);
|
|
9523
9571
|
this.droppedNotifications.record(toAdmissibleNotification(item));
|
|
@@ -9525,7 +9573,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9525
9573
|
}
|
|
9526
9574
|
if (admission.action === "push") break;
|
|
9527
9575
|
const [evicted] = this.notificationQueue.splice(admission.index, 1);
|
|
9528
|
-
|
|
9576
|
+
debugLogger7.warn(
|
|
9529
9577
|
`Notification queue overflow: evicting task=${evicted?.taskId ?? "unknown"} kind=${evicted?.kind ?? "unknown"}`
|
|
9530
9578
|
);
|
|
9531
9579
|
if (evicted) {
|
|
@@ -9548,7 +9596,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9548
9596
|
item,
|
|
9549
9597
|
"background_task_completed"
|
|
9550
9598
|
).catch((error) => {
|
|
9551
|
-
|
|
9599
|
+
debugLogger7.warn("Failed to publish background task completion:", error);
|
|
9552
9600
|
});
|
|
9553
9601
|
this.#activeWorkChanged();
|
|
9554
9602
|
void this.#drainNotificationQueue();
|
|
@@ -9595,7 +9643,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9595
9643
|
}
|
|
9596
9644
|
);
|
|
9597
9645
|
} catch (error) {
|
|
9598
|
-
|
|
9646
|
+
debugLogger7.warn(
|
|
9599
9647
|
`Daemon notification persistence rejected [session ${this.sessionId}, task ${item.taskId}]: ${error instanceof Error ? error.message : String(error)}`
|
|
9600
9648
|
);
|
|
9601
9649
|
return false;
|
|
@@ -9631,7 +9679,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9631
9679
|
try {
|
|
9632
9680
|
await this.#emitDroppedNotificationSummary(droppedSummary);
|
|
9633
9681
|
} catch (error) {
|
|
9634
|
-
|
|
9682
|
+
debugLogger7.warn(
|
|
9635
9683
|
"Failed to display dropped notification summary:",
|
|
9636
9684
|
error
|
|
9637
9685
|
);
|
|
@@ -9651,7 +9699,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9651
9699
|
try {
|
|
9652
9700
|
await this.#emitBackgroundNotificationDisplay(item);
|
|
9653
9701
|
} catch (error) {
|
|
9654
|
-
|
|
9702
|
+
debugLogger7.warn(
|
|
9655
9703
|
"Failed to display consumed background result:",
|
|
9656
9704
|
error
|
|
9657
9705
|
);
|
|
@@ -9716,7 +9764,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9716
9764
|
try {
|
|
9717
9765
|
await this.assertCanStartTurn();
|
|
9718
9766
|
} catch (error) {
|
|
9719
|
-
|
|
9767
|
+
debugLogger7.warn(
|
|
9720
9768
|
`Notification turn rejected [session ${this.sessionId}]: ${error instanceof Error ? error.message : String(error)}`
|
|
9721
9769
|
);
|
|
9722
9770
|
const index = this.#nextNotificationQueueIndex();
|
|
@@ -9829,7 +9877,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
9829
9877
|
await this.messageRewriter?.flushTurn(ac.signal);
|
|
9830
9878
|
await this.messageRewriter?.waitForPendingRewrites();
|
|
9831
9879
|
} catch (error) {
|
|
9832
|
-
|
|
9880
|
+
debugLogger7.warn(
|
|
9833
9881
|
`Failed to complete background notification response: ${this.#formatError(error)}`
|
|
9834
9882
|
);
|
|
9835
9883
|
}
|
|
@@ -10129,7 +10177,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10129
10177
|
} catch (error) {
|
|
10130
10178
|
if (!admitted) {
|
|
10131
10179
|
this.#deferBackgroundAdmission(item);
|
|
10132
|
-
|
|
10180
|
+
debugLogger7.warn(
|
|
10133
10181
|
"Background turn could not start; retaining result:",
|
|
10134
10182
|
error
|
|
10135
10183
|
);
|
|
@@ -10141,14 +10189,14 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10141
10189
|
return;
|
|
10142
10190
|
}
|
|
10143
10191
|
this.todoStopGuard.pauseForTrustedRetry();
|
|
10144
|
-
|
|
10192
|
+
debugLogger7.error("Error processing background notification:", error);
|
|
10145
10193
|
const msg = error instanceof Error ? error.message : String(error);
|
|
10146
10194
|
try {
|
|
10147
10195
|
await this.messageEmitter.emitAgentMessage(
|
|
10148
10196
|
`[notification error] ${msg}`
|
|
10149
10197
|
);
|
|
10150
10198
|
} catch (emitError) {
|
|
10151
|
-
|
|
10199
|
+
debugLogger7.error(
|
|
10152
10200
|
"Failed to emit background notification error:",
|
|
10153
10201
|
emitError
|
|
10154
10202
|
);
|
|
@@ -10233,7 +10281,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10233
10281
|
source: "background_notification"
|
|
10234
10282
|
});
|
|
10235
10283
|
} catch (error) {
|
|
10236
|
-
|
|
10284
|
+
debugLogger7.debug(
|
|
10237
10285
|
`Background notification end-turn extNotification dropped: ${this.#formatError(error)}`
|
|
10238
10286
|
);
|
|
10239
10287
|
}
|
|
@@ -10251,7 +10299,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10251
10299
|
source: "goal"
|
|
10252
10300
|
});
|
|
10253
10301
|
} catch (error) {
|
|
10254
|
-
|
|
10302
|
+
debugLogger7.debug(
|
|
10255
10303
|
`Goal start-turn extNotification dropped: ${this.#formatError(error)}`
|
|
10256
10304
|
);
|
|
10257
10305
|
}
|
|
@@ -10265,7 +10313,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10265
10313
|
promptId: this.config.getSessionId() + "########" + String(this.turn)
|
|
10266
10314
|
});
|
|
10267
10315
|
} catch (error) {
|
|
10268
|
-
|
|
10316
|
+
debugLogger7.debug(
|
|
10269
10317
|
`Goal end-turn extNotification dropped: ${this.#formatError(error)}`
|
|
10270
10318
|
);
|
|
10271
10319
|
}
|
|
@@ -10274,7 +10322,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10274
10322
|
try {
|
|
10275
10323
|
await this.sendAvailableCommandsUpdateOrThrow();
|
|
10276
10324
|
} catch (error) {
|
|
10277
|
-
|
|
10325
|
+
debugLogger7.error("Error sending available commands update:", error);
|
|
10278
10326
|
}
|
|
10279
10327
|
}
|
|
10280
10328
|
async refreshSkillsFromSettings(options = {}) {
|
|
@@ -10296,7 +10344,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10296
10344
|
await skillManager.notifyConfigChanged();
|
|
10297
10345
|
} catch (error) {
|
|
10298
10346
|
if (!updateFailed) throw error;
|
|
10299
|
-
|
|
10347
|
+
debugLogger7.error(
|
|
10300
10348
|
"SkillManager refresh failed after command update failure:",
|
|
10301
10349
|
error
|
|
10302
10350
|
);
|
|
@@ -10385,6 +10433,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10385
10433
|
}
|
|
10386
10434
|
const previousApprovalMode = this.config.getApprovalMode();
|
|
10387
10435
|
this.config.setApprovalMode(approvalMode);
|
|
10436
|
+
void recordDaemonSessionApprovalModeFromConfig(this.config);
|
|
10388
10437
|
if (previousApprovalMode !== approvalMode && (previousApprovalMode === "plan" /* PLAN */ || approvalMode === "plan" /* PLAN */)) {
|
|
10389
10438
|
this.clearActiveTodoPlanRevision();
|
|
10390
10439
|
}
|
|
@@ -10399,7 +10448,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10399
10448
|
planExecutionMode: this.config.getPlanExecutionMode?.() ?? this.config.getPrePlanMode?.()
|
|
10400
10449
|
} : {}
|
|
10401
10450
|
}).catch((error) => {
|
|
10402
|
-
|
|
10451
|
+
debugLogger7.debug("mode-update extNotification failed", error);
|
|
10403
10452
|
});
|
|
10404
10453
|
}
|
|
10405
10454
|
/**
|
|
@@ -10462,7 +10511,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10462
10511
|
sessionId: this.sessionId,
|
|
10463
10512
|
currentModelId: currentAcpModelId
|
|
10464
10513
|
}).catch((error) => {
|
|
10465
|
-
|
|
10514
|
+
debugLogger7.debug("model-update extNotification failed", error);
|
|
10466
10515
|
});
|
|
10467
10516
|
if (persistDefault) {
|
|
10468
10517
|
const persistScope = getPersistScopeForModelSelection(this.settings);
|
|
@@ -10538,7 +10587,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10538
10587
|
);
|
|
10539
10588
|
} catch (rollbackError) {
|
|
10540
10589
|
this.settings.reloadScopeFromDisk(previousWrite.scope);
|
|
10541
|
-
|
|
10590
|
+
debugLogger7.warn(
|
|
10542
10591
|
`Failed to roll back reasoning preference: ${rollbackError instanceof Error ? rollbackError.message : String(rollbackError)}`
|
|
10543
10592
|
);
|
|
10544
10593
|
}
|
|
@@ -10577,7 +10626,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10577
10626
|
try {
|
|
10578
10627
|
this.persistReasoningSelection(REASONING_EFFORT_DEFAULT);
|
|
10579
10628
|
} catch (error) {
|
|
10580
|
-
|
|
10629
|
+
debugLogger7.warn(
|
|
10581
10630
|
`Failed to clear incompatible reasoning preference: ${error instanceof Error ? error.message : String(error)}`
|
|
10582
10631
|
);
|
|
10583
10632
|
}
|
|
@@ -10620,7 +10669,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10620
10669
|
await this.sendUpdate(update);
|
|
10621
10670
|
legacyFrameSent = true;
|
|
10622
10671
|
} catch (error) {
|
|
10623
|
-
|
|
10672
|
+
debugLogger7.debug("current_mode_update notification failed", error);
|
|
10624
10673
|
}
|
|
10625
10674
|
try {
|
|
10626
10675
|
await this.client.extNotification("o1code/notify/session/mode-update", {
|
|
@@ -10633,7 +10682,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10633
10682
|
legacyFrameSent
|
|
10634
10683
|
});
|
|
10635
10684
|
} catch (error) {
|
|
10636
|
-
|
|
10685
|
+
debugLogger7.debug("mode-update extNotification failed", error);
|
|
10637
10686
|
}
|
|
10638
10687
|
}
|
|
10639
10688
|
/**
|
|
@@ -10785,7 +10834,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10785
10834
|
}
|
|
10786
10835
|
await this.toolCallEmitter.emitError(callId, toolName, error);
|
|
10787
10836
|
} catch (recordError) {
|
|
10788
|
-
|
|
10837
|
+
debugLogger7.error("Failed to record skipped tool call:", recordError);
|
|
10789
10838
|
}
|
|
10790
10839
|
return part;
|
|
10791
10840
|
}, "recordSkippedToolCall");
|
|
@@ -10819,7 +10868,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10819
10868
|
toolLoopState
|
|
10820
10869
|
);
|
|
10821
10870
|
} else {
|
|
10822
|
-
|
|
10871
|
+
debugLogger7.warn(message);
|
|
10823
10872
|
}
|
|
10824
10873
|
await Promise.all(
|
|
10825
10874
|
dedupedFunctionCalls.map(
|
|
@@ -10845,7 +10894,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10845
10894
|
this.duplicateProviderToolCallResponseIds
|
|
10846
10895
|
);
|
|
10847
10896
|
const response = createDuplicateProviderToolCallResponse(request);
|
|
10848
|
-
|
|
10897
|
+
debugLogger7.debug(
|
|
10849
10898
|
`[Session.runToolCalls] Suppressing duplicate provider tool-call id: ${providerCallId} (tool: ${request.name})`
|
|
10850
10899
|
);
|
|
10851
10900
|
batches.push({ kind: "duplicate", fc, request, response });
|
|
@@ -10891,7 +10940,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10891
10940
|
});
|
|
10892
10941
|
}
|
|
10893
10942
|
} catch (emitError) {
|
|
10894
|
-
|
|
10943
|
+
debugLogger7.debug(
|
|
10895
10944
|
"[Session.runToolCalls] Failed to emit duplicate tool update",
|
|
10896
10945
|
emitError
|
|
10897
10946
|
);
|
|
@@ -10995,13 +11044,13 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
10995
11044
|
memoryWriteCandidates,
|
|
10996
11045
|
this.config.getProjectRoot()
|
|
10997
11046
|
);
|
|
10998
|
-
|
|
11047
|
+
debugLogger7.debug(
|
|
10999
11048
|
`ACP session ${this.sessionId} checked marked context-file memory tool batch; matched=${matchedContextFileWrite}`
|
|
11000
11049
|
);
|
|
11001
11050
|
if (!matchedContextFileWrite) {
|
|
11002
11051
|
return;
|
|
11003
11052
|
}
|
|
11004
|
-
|
|
11053
|
+
debugLogger7.debug(
|
|
11005
11054
|
`ACP session ${this.sessionId} refreshing memory after context-file memory write`
|
|
11006
11055
|
);
|
|
11007
11056
|
await refreshMemoryInstruction(this.config, {
|
|
@@ -11062,7 +11111,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11062
11111
|
results[idx] = r;
|
|
11063
11112
|
if (r.loopDetected && executing.size > 1 && !warnedWaitingForInFlight) {
|
|
11064
11113
|
warnedWaitingForInFlight = true;
|
|
11065
|
-
|
|
11114
|
+
debugLogger7.warn(
|
|
11066
11115
|
`Loop detection stopped this ACP turn; waiting for ${executing.size - 1} in-flight tool call(s) to settle before returning.`
|
|
11067
11116
|
);
|
|
11068
11117
|
}
|
|
@@ -11342,7 +11391,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11342
11391
|
mcp_server_name: mcpServerName
|
|
11343
11392
|
});
|
|
11344
11393
|
} catch (telemetryError) {
|
|
11345
|
-
|
|
11394
|
+
debugLogger7.debug(
|
|
11346
11395
|
"[Session.runTool] Failed to record terminal tool telemetry",
|
|
11347
11396
|
telemetryError
|
|
11348
11397
|
);
|
|
@@ -11385,7 +11434,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11385
11434
|
await this.toolCallEmitter.emitError(callId, toolName2, error);
|
|
11386
11435
|
}
|
|
11387
11436
|
} catch (emitError) {
|
|
11388
|
-
|
|
11437
|
+
debugLogger7.debug(
|
|
11389
11438
|
"[Session.runTool] Failed to emit terminal tool update",
|
|
11390
11439
|
emitError
|
|
11391
11440
|
);
|
|
@@ -11794,7 +11843,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11794
11843
|
forceAutoReviewForAllow
|
|
11795
11844
|
);
|
|
11796
11845
|
if (finalPermission === "allow" && forceAutoReviewForAllow) {
|
|
11797
|
-
|
|
11846
|
+
debugLogger7.info(
|
|
11798
11847
|
`Auto mode: L4 allow overridden by protected-write guard for ${policyToolName}`
|
|
11799
11848
|
);
|
|
11800
11849
|
}
|
|
@@ -11863,7 +11912,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11863
11912
|
autoModeAllowed = true;
|
|
11864
11913
|
break;
|
|
11865
11914
|
case "blocked":
|
|
11866
|
-
|
|
11915
|
+
debugLogger7.warn(
|
|
11867
11916
|
`Auto mode blocked (${outcome.reason}): tool=${policyToolName}, ` + formatDenialStateLog(denialState)
|
|
11868
11917
|
);
|
|
11869
11918
|
return earlyErrorResponse(
|
|
@@ -11884,7 +11933,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11884
11933
|
};
|
|
11885
11934
|
}
|
|
11886
11935
|
if (wasAutoModeManualFallback) {
|
|
11887
|
-
|
|
11936
|
+
debugLogger7.warn(
|
|
11888
11937
|
`Auto mode fallback to manual approval (${outcome.reason}): ` + formatDenialStateLog(denialState)
|
|
11889
11938
|
);
|
|
11890
11939
|
}
|
|
@@ -11907,7 +11956,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11907
11956
|
"cancel" /* Cancel */
|
|
11908
11957
|
);
|
|
11909
11958
|
} catch (error) {
|
|
11910
|
-
|
|
11959
|
+
debugLogger7.warn(
|
|
11911
11960
|
`Failed to cancel stale plan approval: ${this.#formatError(error)}`
|
|
11912
11961
|
);
|
|
11913
11962
|
}
|
|
@@ -11930,12 +11979,12 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
11930
11979
|
const before = this.config.getAutoModeDenialState();
|
|
11931
11980
|
const after = recordFallbackApprove(before);
|
|
11932
11981
|
if (after === before) {
|
|
11933
|
-
|
|
11982
|
+
debugLogger7.warn(
|
|
11934
11983
|
`Auto mode denial counters already clear after fallback approval: ` + formatDenialStateLog(before)
|
|
11935
11984
|
);
|
|
11936
11985
|
return;
|
|
11937
11986
|
}
|
|
11938
|
-
|
|
11987
|
+
debugLogger7.warn(
|
|
11939
11988
|
`Auto mode denial counters reset after fallback approval: ${formatDenialStateLog(before)} -> ${formatDenialStateLog(after)}`
|
|
11940
11989
|
);
|
|
11941
11990
|
this.config.setAutoModeDenialState(after);
|
|
@@ -12220,7 +12269,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12220
12269
|
offeredPermissionOptions
|
|
12221
12270
|
);
|
|
12222
12271
|
} catch (error) {
|
|
12223
|
-
|
|
12272
|
+
debugLogger7.error(
|
|
12224
12273
|
`Permission request failed for tool ${toolName}:`,
|
|
12225
12274
|
error
|
|
12226
12275
|
);
|
|
@@ -12229,7 +12278,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12229
12278
|
"cancel" /* Cancel */
|
|
12230
12279
|
);
|
|
12231
12280
|
} catch (confirmError) {
|
|
12232
|
-
|
|
12281
|
+
debugLogger7.error(
|
|
12233
12282
|
`Failed to cancel tool ${toolName} after permission request failure:`,
|
|
12234
12283
|
confirmError
|
|
12235
12284
|
);
|
|
@@ -12310,7 +12359,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12310
12359
|
if (outcome !== "cancel" /* Cancel */) {
|
|
12311
12360
|
throw error;
|
|
12312
12361
|
}
|
|
12313
|
-
|
|
12362
|
+
debugLogger7.error(
|
|
12314
12363
|
`Failed to confirm cancellation for tool ${toolName}:`,
|
|
12315
12364
|
error
|
|
12316
12365
|
);
|
|
@@ -12385,7 +12434,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12385
12434
|
try {
|
|
12386
12435
|
await this.toolCallEmitter.emitStart(startParams);
|
|
12387
12436
|
} catch (emitError) {
|
|
12388
|
-
|
|
12437
|
+
debugLogger7.debug(
|
|
12389
12438
|
"[Session.runTool] Failed to emit tool start update",
|
|
12390
12439
|
emitError
|
|
12391
12440
|
);
|
|
@@ -12415,7 +12464,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12415
12464
|
`\u2717 **PreToolUse blocked**: ${toolName} - ${blockReason}`
|
|
12416
12465
|
);
|
|
12417
12466
|
} catch (emitError) {
|
|
12418
|
-
|
|
12467
|
+
debugLogger7.debug(
|
|
12419
12468
|
"[Session.runTool] Failed to emit PreToolUse block message",
|
|
12420
12469
|
emitError
|
|
12421
12470
|
);
|
|
@@ -12429,7 +12478,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12429
12478
|
});
|
|
12430
12479
|
}
|
|
12431
12480
|
if (preHookResult.additionalContext) {
|
|
12432
|
-
|
|
12481
|
+
debugLogger7.debug(
|
|
12433
12482
|
`PreToolUse hook additional context for ${toolName}: ${preHookResult.additionalContext}`
|
|
12434
12483
|
);
|
|
12435
12484
|
}
|
|
@@ -12527,7 +12576,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12527
12576
|
toolCallId: callId,
|
|
12528
12577
|
_meta: { toolName, subagentSessionReady: true }
|
|
12529
12578
|
}).catch((err) => {
|
|
12530
|
-
|
|
12579
|
+
debugLogger7.debug(
|
|
12531
12580
|
`[Session.runTool] subagent readiness update failed for ${callId}: ${err}`
|
|
12532
12581
|
);
|
|
12533
12582
|
});
|
|
@@ -12541,7 +12590,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12541
12590
|
status: "in_progress",
|
|
12542
12591
|
_meta: { toolName, shellProgress: chunk }
|
|
12543
12592
|
}).catch((err) => {
|
|
12544
|
-
|
|
12593
|
+
debugLogger7.debug(
|
|
12545
12594
|
`[Session.runTool] heartbeat update failed for ${callId}: ${err}`
|
|
12546
12595
|
);
|
|
12547
12596
|
});
|
|
@@ -12568,7 +12617,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12568
12617
|
invocation.params
|
|
12569
12618
|
);
|
|
12570
12619
|
} catch {
|
|
12571
|
-
|
|
12620
|
+
debugLogger7.debug(
|
|
12572
12621
|
"[Session.runTool] Failed to record tool arguments telemetry"
|
|
12573
12622
|
);
|
|
12574
12623
|
}
|
|
@@ -12751,7 +12800,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12751
12800
|
);
|
|
12752
12801
|
let status = aborted ? "cancelled" : toolResult.error ? "error" : "success";
|
|
12753
12802
|
if (status === "success" && !nestedPermissionCancelled && tool.mediaPolicyDescriptor && toolResult.artifacts && toolResult.artifacts.length > 0) {
|
|
12754
|
-
const { collectModelPolicyCall } = await import("./model-call-collection-
|
|
12803
|
+
const { collectModelPolicyCall } = await import("./model-call-collection-RJ3QGO3O.js");
|
|
12755
12804
|
await collectModelPolicyCall({
|
|
12756
12805
|
config: this.config,
|
|
12757
12806
|
batch: {
|
|
@@ -12809,7 +12858,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12809
12858
|
}
|
|
12810
12859
|
if (postHookResult.shouldStop) {
|
|
12811
12860
|
const stopMessage = postHookResult.stopReason || "Execution stopped by PostToolUse hook";
|
|
12812
|
-
|
|
12861
|
+
debugLogger7.info(
|
|
12813
12862
|
`PostToolUse hook requested stop for ${toolName}: ${stopMessage}`
|
|
12814
12863
|
);
|
|
12815
12864
|
this.todoStopGuard.suspend();
|
|
@@ -12849,7 +12898,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12849
12898
|
elapsedExecutionMs()
|
|
12850
12899
|
);
|
|
12851
12900
|
if (failureHookResult.additionalContext) {
|
|
12852
|
-
|
|
12901
|
+
debugLogger7.debug(
|
|
12853
12902
|
`PostToolUseFailure hook additional context for ${toolName}: ${failureHookResult.additionalContext}`
|
|
12854
12903
|
);
|
|
12855
12904
|
}
|
|
@@ -12860,14 +12909,14 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12860
12909
|
artifacts: failureHookResult.artifacts
|
|
12861
12910
|
});
|
|
12862
12911
|
} catch (hookError) {
|
|
12863
|
-
|
|
12912
|
+
debugLogger7.debug(
|
|
12864
12913
|
"[Session.runTool] PostToolUseFailure hook failed",
|
|
12865
12914
|
hookError
|
|
12866
12915
|
);
|
|
12867
12916
|
}
|
|
12868
12917
|
}
|
|
12869
12918
|
if (this.config.isOmniEnabled?.()) {
|
|
12870
|
-
const { processToolResultOmniMedia } = await import("./omni-
|
|
12919
|
+
const { processToolResultOmniMedia } = await import("./omni-EANTWQG5.js");
|
|
12871
12920
|
responseParts = await processToolResultOmniMedia(
|
|
12872
12921
|
responseParts,
|
|
12873
12922
|
this.config,
|
|
@@ -12887,7 +12936,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12887
12936
|
try {
|
|
12888
12937
|
await this.messageEmitter.emitAgentMessage(visionBridgeNotice);
|
|
12889
12938
|
} catch (emitError) {
|
|
12890
|
-
|
|
12939
|
+
debugLogger7.debug(
|
|
12891
12940
|
"[Session.runTool] Failed to emit vision bridge notice",
|
|
12892
12941
|
emitError
|
|
12893
12942
|
);
|
|
@@ -12917,7 +12966,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12917
12966
|
try {
|
|
12918
12967
|
await this.planEmitter.emitPlan(plan, callId);
|
|
12919
12968
|
} catch (emitError) {
|
|
12920
|
-
|
|
12969
|
+
debugLogger7.debug(
|
|
12921
12970
|
"[Session.runTool] Failed to emit plan update",
|
|
12922
12971
|
emitError
|
|
12923
12972
|
);
|
|
@@ -12937,7 +12986,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12937
12986
|
persistedOutputFiles: settledPersistedOutputFiles
|
|
12938
12987
|
});
|
|
12939
12988
|
} catch (emitError) {
|
|
12940
|
-
|
|
12989
|
+
debugLogger7.debug(
|
|
12941
12990
|
"[Session.runTool] Failed to emit terminal tool update",
|
|
12942
12991
|
emitError
|
|
12943
12992
|
);
|
|
@@ -12968,7 +13017,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
12968
13017
|
mcp_server_name: mcpServerName
|
|
12969
13018
|
});
|
|
12970
13019
|
} catch (telemetryError) {
|
|
12971
|
-
|
|
13020
|
+
debugLogger7.debug(
|
|
12972
13021
|
"[Session.runTool] Failed to record terminal tool telemetry",
|
|
12973
13022
|
telemetryError
|
|
12974
13023
|
);
|
|
@@ -13000,7 +13049,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
13000
13049
|
try {
|
|
13001
13050
|
addToolCallResultAttributes(this.config, toolSpan, result);
|
|
13002
13051
|
} catch {
|
|
13003
|
-
|
|
13052
|
+
debugLogger7.debug(
|
|
13004
13053
|
"[Session.runTool] Failed to record tool result telemetry"
|
|
13005
13054
|
);
|
|
13006
13055
|
}
|
|
@@ -13044,7 +13093,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
13044
13093
|
elapsedExecutionMs()
|
|
13045
13094
|
);
|
|
13046
13095
|
if (failureHookResult.additionalContext) {
|
|
13047
|
-
|
|
13096
|
+
debugLogger7.debug(
|
|
13048
13097
|
`PostToolUseFailure hook additional context for ${toolName}: ${failureHookResult.additionalContext}`
|
|
13049
13098
|
);
|
|
13050
13099
|
}
|
|
@@ -13055,7 +13104,7 @@ ${this.pendingRecoveredAgentsNotice}
|
|
|
13055
13104
|
artifacts: failureHookResult.artifacts
|
|
13056
13105
|
});
|
|
13057
13106
|
} catch (hookError) {
|
|
13058
|
-
|
|
13107
|
+
debugLogger7.debug(
|
|
13059
13108
|
"[Session.runTool] PostToolUseFailure hook failed",
|
|
13060
13109
|
hookError
|
|
13061
13110
|
);
|
|
@@ -13450,7 +13499,7 @@ ${contextPart.text}`
|
|
|
13450
13499
|
formatFullTurnVisionNotice(fullTurnModel)
|
|
13451
13500
|
);
|
|
13452
13501
|
} catch (error) {
|
|
13453
|
-
|
|
13502
|
+
debugLogger7.debug(
|
|
13454
13503
|
`full-turn vision: failed to emit notice; continuing error=${error instanceof Error ? error.message : String(error)}`
|
|
13455
13504
|
);
|
|
13456
13505
|
}
|
|
@@ -13459,19 +13508,19 @@ ${contextPart.text}`
|
|
|
13459
13508
|
}
|
|
13460
13509
|
let bridgeResult;
|
|
13461
13510
|
try {
|
|
13462
|
-
|
|
13511
|
+
debugLogger7.debug("vision bridge: gate matched, running conversion");
|
|
13463
13512
|
bridgeResult = await runVisionBridge({
|
|
13464
13513
|
config: this.config,
|
|
13465
13514
|
parts,
|
|
13466
13515
|
signal: abortSignal
|
|
13467
13516
|
});
|
|
13468
13517
|
} catch (error) {
|
|
13469
|
-
|
|
13518
|
+
debugLogger7.debug(
|
|
13470
13519
|
`vision bridge: failed before replacement; falling back to text-only parts error=${String(error instanceof Error ? error.message : error)}`
|
|
13471
13520
|
);
|
|
13472
13521
|
return splitImageParts(parts).nonImageParts;
|
|
13473
13522
|
}
|
|
13474
|
-
|
|
13523
|
+
debugLogger7.debug(
|
|
13475
13524
|
`vision bridge: status=${bridgeResult.status} applied=${bridgeResult.applied} model=${bridgeResult.modelId ?? "(none)"}${bridgeResult.error ? ` error=${bridgeResult.error}` : ""}`
|
|
13476
13525
|
);
|
|
13477
13526
|
if (bridgeResult.status !== "skipped" || bridgeResult.egressOccurred) {
|
|
@@ -13481,13 +13530,13 @@ ${contextPart.text}`
|
|
|
13481
13530
|
bridgeResult
|
|
13482
13531
|
);
|
|
13483
13532
|
} catch (error) {
|
|
13484
|
-
|
|
13533
|
+
debugLogger7.debug(
|
|
13485
13534
|
`vision bridge: failed to emit notice; continuing with bridge result error=${String(error instanceof Error ? error.message : error)}`
|
|
13486
13535
|
);
|
|
13487
13536
|
}
|
|
13488
13537
|
}
|
|
13489
13538
|
if (abortSignal.aborted) {
|
|
13490
|
-
|
|
13539
|
+
debugLogger7.debug("vision bridge: turn aborted after bridge returned");
|
|
13491
13540
|
return splitImageParts(parts).nonImageParts;
|
|
13492
13541
|
}
|
|
13493
13542
|
if (bridgeResult.applied && bridgeResult.parts != null) {
|
|
@@ -13501,7 +13550,7 @@ ${contextPart.text}`
|
|
|
13501
13550
|
}
|
|
13502
13551
|
const voiceModel = readVoiceModel(this.settings);
|
|
13503
13552
|
if (!voiceModel) {
|
|
13504
|
-
|
|
13553
|
+
debugLogger7.debug(
|
|
13505
13554
|
"voice bridge: no voice model configured; replacing audio with note"
|
|
13506
13555
|
);
|
|
13507
13556
|
return parts.map(
|
|
@@ -13520,14 +13569,14 @@ ${contextPart.text}`
|
|
|
13520
13569
|
}
|
|
13521
13570
|
const inlineData = part.inlineData;
|
|
13522
13571
|
if (approxBase64Bytes(inlineData.data) > MAX_AUDIO_BYTES) {
|
|
13523
|
-
|
|
13572
|
+
debugLogger7.debug(
|
|
13524
13573
|
"voice bridge: audio too large; replacing audio with note"
|
|
13525
13574
|
);
|
|
13526
13575
|
converted.push({ text: buildVoiceUnavailableBlock("audio too large") });
|
|
13527
13576
|
continue;
|
|
13528
13577
|
}
|
|
13529
13578
|
try {
|
|
13530
|
-
|
|
13579
|
+
debugLogger7.debug(`voice bridge: transcribing audio via ${voiceModel}`);
|
|
13531
13580
|
const transcript = (await transcribeVoiceAudio(
|
|
13532
13581
|
{
|
|
13533
13582
|
data: new Uint8Array(Buffer2.from(inlineData.data, "base64")),
|
|
@@ -13544,7 +13593,7 @@ ${contextPart.text}`
|
|
|
13544
13593
|
}
|
|
13545
13594
|
)).trim();
|
|
13546
13595
|
if (abortSignal.aborted) {
|
|
13547
|
-
|
|
13596
|
+
debugLogger7.debug("voice bridge: turn aborted after transcription");
|
|
13548
13597
|
return converted;
|
|
13549
13598
|
}
|
|
13550
13599
|
if (transcript.length > 0) {
|
|
@@ -13557,10 +13606,10 @@ ${contextPart.text}`
|
|
|
13557
13606
|
});
|
|
13558
13607
|
} catch (error) {
|
|
13559
13608
|
if (abortSignal.aborted) {
|
|
13560
|
-
|
|
13609
|
+
debugLogger7.debug("voice bridge: transcription cancelled");
|
|
13561
13610
|
return converted;
|
|
13562
13611
|
}
|
|
13563
|
-
|
|
13612
|
+
debugLogger7.debug(
|
|
13564
13613
|
`voice bridge: transcription failed; replacing audio with note error=${sanitizeVoiceErrorMessage(String(error instanceof Error ? error.message : error))}`
|
|
13565
13614
|
);
|
|
13566
13615
|
converted.push({
|
|
@@ -13574,7 +13623,7 @@ ${contextPart.text}`
|
|
|
13574
13623
|
transcribedCount > 0 ? this.#formatVoiceBridgeNotice(voiceModel, transcribedCount) : this.#formatVoiceBridgeEgressNotice(voiceModel, egressCount)
|
|
13575
13624
|
);
|
|
13576
13625
|
} catch (error) {
|
|
13577
|
-
|
|
13626
|
+
debugLogger7.debug(
|
|
13578
13627
|
`voice bridge: failed to emit notice; continuing with bridge result error=${String(error instanceof Error ? error.message : error)}`
|
|
13579
13628
|
);
|
|
13580
13629
|
}
|
|
@@ -13635,7 +13684,7 @@ ${contextPart.text}`
|
|
|
13635
13684
|
}
|
|
13636
13685
|
debug(msg) {
|
|
13637
13686
|
if (this.config.getDebugMode()) {
|
|
13638
|
-
|
|
13687
|
+
debugLogger7.warn(msg);
|
|
13639
13688
|
}
|
|
13640
13689
|
}
|
|
13641
13690
|
async emitHookArtifactsNotification(args) {
|
|
@@ -13678,7 +13727,7 @@ ${contextPart.text}`
|
|
|
13678
13727
|
}
|
|
13679
13728
|
);
|
|
13680
13729
|
}).catch((err) => {
|
|
13681
|
-
|
|
13730
|
+
debugLogger7.debug(
|
|
13682
13731
|
`ACP terminalSequence notification dropped (session=${this.sessionId}): ${err instanceof Error ? err.message : String(err)}`
|
|
13683
13732
|
);
|
|
13684
13733
|
});
|
|
@@ -13687,7 +13736,7 @@ ${contextPart.text}`
|
|
|
13687
13736
|
|
|
13688
13737
|
// packages/cli/src/acp-integration/active-work-reporter.ts
|
|
13689
13738
|
init_esbuild_shims();
|
|
13690
|
-
var
|
|
13739
|
+
var debugLogger8 = createDebugLogger("ACTIVE_WORK");
|
|
13691
13740
|
var ActiveWorkReporter = class {
|
|
13692
13741
|
constructor(send, listSources, intervalMs, enabledCategories) {
|
|
13693
13742
|
this.send = send;
|
|
@@ -13763,7 +13812,7 @@ var ActiveWorkReporter = class {
|
|
|
13763
13812
|
});
|
|
13764
13813
|
}
|
|
13765
13814
|
} catch (error) {
|
|
13766
|
-
|
|
13815
|
+
debugLogger8.warn(
|
|
13767
13816
|
`active-work snapshot collection failed; skipping this report: ${error instanceof Error ? error.message : String(error)}`
|
|
13768
13817
|
);
|
|
13769
13818
|
return;
|
|
@@ -13906,7 +13955,7 @@ import { Readable, Writable as Writable2 } from "node:stream";
|
|
|
13906
13955
|
import { pipeline } from "node:stream/promises";
|
|
13907
13956
|
import * as path4 from "node:path";
|
|
13908
13957
|
import { createGunzip } from "node:zlib";
|
|
13909
|
-
var
|
|
13958
|
+
var debugLogger9 = createDebugLogger("ACP_AGENT");
|
|
13910
13959
|
function toRecord(value) {
|
|
13911
13960
|
return !!value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
13912
13961
|
}
|
|
@@ -14338,7 +14387,7 @@ async function downloadGitHubSkillDirectory(githubUrl, directoryPath) {
|
|
|
14338
14387
|
githubUrl,
|
|
14339
14388
|
directoryPath
|
|
14340
14389
|
).catch((error) => {
|
|
14341
|
-
|
|
14390
|
+
debugLogger9.warn(
|
|
14342
14391
|
"GitHub API directory listing failed, falling back to archive download:",
|
|
14343
14392
|
error
|
|
14344
14393
|
);
|
|
@@ -15181,14 +15230,14 @@ async function startSessionOwnedWorkflow(tool, params, workflowName) {
|
|
|
15181
15230
|
result = await invocation.execute(new AbortController().signal);
|
|
15182
15231
|
} catch (error) {
|
|
15183
15232
|
if (error instanceof WorkflowJournalUnavailableError) {
|
|
15184
|
-
|
|
15233
|
+
debugLogger10.debug(error.message);
|
|
15185
15234
|
throw RequestError.invalidParams(
|
|
15186
15235
|
{ errorKind: "workflow_journal_unavailable" },
|
|
15187
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.`
|
|
15188
15237
|
);
|
|
15189
15238
|
}
|
|
15190
15239
|
if (error instanceof WorkflowCheckpointUnwritableError) {
|
|
15191
|
-
|
|
15240
|
+
debugLogger10.debug(error.message);
|
|
15192
15241
|
throw RequestError.invalidParams(
|
|
15193
15242
|
{ errorKind: "workflow_not_recorded" },
|
|
15194
15243
|
error.message
|
|
@@ -15205,7 +15254,7 @@ async function startSessionOwnedWorkflow(tool, params, workflowName) {
|
|
|
15205
15254
|
return result;
|
|
15206
15255
|
}
|
|
15207
15256
|
__name(startSessionOwnedWorkflow, "startSessionOwnedWorkflow");
|
|
15208
|
-
var
|
|
15257
|
+
var debugLogger10 = createDebugLogger("ACP_AGENT");
|
|
15209
15258
|
var ACP_EVENT_LOOP_STALL_SUSPEND_MS = 5 * 60 * 1e3;
|
|
15210
15259
|
var O1CODE_ACP_LOCAL_READ_ROOTS_ENV = "O1CODE_ACP_LOCAL_READ_ROOTS";
|
|
15211
15260
|
var POSIX_TMP_LOCAL_READ_ROOT = "/tmp";
|
|
@@ -15437,7 +15486,7 @@ async function beginSessionCloseAfterCurrentGate(session, timeoutMs) {
|
|
|
15437
15486
|
}
|
|
15438
15487
|
}
|
|
15439
15488
|
__name(beginSessionCloseAfterCurrentGate, "beginSessionCloseAfterCurrentGate");
|
|
15440
|
-
var logWorkspaceMemoryExtractionError = createWorkspaceMemoryExtractionErrorLogger(
|
|
15489
|
+
var logWorkspaceMemoryExtractionError = createWorkspaceMemoryExtractionErrorLogger(debugLogger10);
|
|
15441
15490
|
function parseAcpLocalReadRootsEnv(raw = process.env[O1CODE_ACP_LOCAL_READ_ROOTS_ENV]) {
|
|
15442
15491
|
if (!raw) return [];
|
|
15443
15492
|
return raw.split(path7.delimiter).map((entry) => entry.trim()).filter((entry) => entry.length > 0 && path7.isAbsolute(entry));
|
|
@@ -15627,7 +15676,7 @@ function appendGoalUpdatesWithinLimits(sessionId, envelope, goalUpdates, enforce
|
|
|
15627
15676
|
validateLoadReplayEnvelope(sessionId, withGoal, enforceLimits);
|
|
15628
15677
|
} catch (error) {
|
|
15629
15678
|
if (!(error instanceof HistoryReplayLimitError)) throw error;
|
|
15630
|
-
|
|
15679
|
+
debugLogger10.debug(
|
|
15631
15680
|
`Kept ${goalUpdates.length} Goal update(s) off a full replay page: ${error.message}`
|
|
15632
15681
|
);
|
|
15633
15682
|
return false;
|
|
@@ -16480,7 +16529,7 @@ function readMcpServers(source, scope) {
|
|
|
16480
16529
|
const server = toMcpServerConfig(value);
|
|
16481
16530
|
return server ? { name, scope, server: redactMcpServerSecrets(server) } : void 0;
|
|
16482
16531
|
} catch (error) {
|
|
16483
|
-
|
|
16532
|
+
debugLogger10.warn(
|
|
16484
16533
|
`Skipping malformed MCP server config [${scope}:${name}]:`,
|
|
16485
16534
|
error
|
|
16486
16535
|
);
|
|
@@ -16576,7 +16625,7 @@ function readHooks(source, scope, extensionName) {
|
|
|
16576
16625
|
extensionName
|
|
16577
16626
|
});
|
|
16578
16627
|
} catch (error) {
|
|
16579
|
-
|
|
16628
|
+
debugLogger10.warn(
|
|
16580
16629
|
`Skipping malformed hook entry [${scope}:${event}:${index}]:`,
|
|
16581
16630
|
error
|
|
16582
16631
|
);
|
|
@@ -16898,7 +16947,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
16898
16947
|
void preloadContentGenerator(
|
|
16899
16948
|
session.getConfig().getContentGenerator()
|
|
16900
16949
|
).catch((error) => {
|
|
16901
|
-
|
|
16950
|
+
debugLogger10.debug(
|
|
16902
16951
|
`[ACP] Session provider preload failed for ${sessionId}: ${error instanceof Error ? error.message : String(error)}`
|
|
16903
16952
|
);
|
|
16904
16953
|
});
|
|
@@ -16946,7 +16995,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
16946
16995
|
drainPoolPromise ??= agentInstance.shutdownMcpPool(8e3);
|
|
16947
16996
|
await drainPoolPromise;
|
|
16948
16997
|
} catch (err) {
|
|
16949
|
-
|
|
16998
|
+
debugLogger10.error(`[ACP] MCP pool drain (${label}) error:`, err);
|
|
16950
16999
|
if (strict) throw err;
|
|
16951
17000
|
}
|
|
16952
17001
|
}, "drainPoolBeforeExit");
|
|
@@ -17002,7 +17051,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17002
17051
|
);
|
|
17003
17052
|
}
|
|
17004
17053
|
for (const failure of failures) {
|
|
17005
|
-
|
|
17054
|
+
debugLogger10.warn(
|
|
17006
17055
|
`SessionEnd hook failed: ${failure instanceof Error ? failure.message : String(failure)}`
|
|
17007
17056
|
);
|
|
17008
17057
|
}
|
|
@@ -17030,7 +17079,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17030
17079
|
await terminal.writerShutdown;
|
|
17031
17080
|
} catch (error) {
|
|
17032
17081
|
failures.push(error);
|
|
17033
|
-
|
|
17082
|
+
debugLogger10.error("[ACP] Managed writer shutdown error:", error);
|
|
17034
17083
|
const retainedLockPaths = terminal.configs.flatMap((config2) => {
|
|
17035
17084
|
if (typeof config2.getSessionRuntimeBaseDir !== "function" || typeof config2.getSessionId !== "function") {
|
|
17036
17085
|
return [];
|
|
@@ -17057,7 +17106,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17057
17106
|
await agent.finishManagedShutdown(terminal.configs);
|
|
17058
17107
|
} catch (error) {
|
|
17059
17108
|
failures.push(error);
|
|
17060
|
-
|
|
17109
|
+
debugLogger10.error("[ACP] Managed resource shutdown error:", error);
|
|
17061
17110
|
}
|
|
17062
17111
|
try {
|
|
17063
17112
|
await drainPoolBeforeExit(label, true);
|
|
@@ -17068,7 +17117,7 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17068
17117
|
await runExitCleanup();
|
|
17069
17118
|
} catch (error) {
|
|
17070
17119
|
failures.push(error);
|
|
17071
|
-
|
|
17120
|
+
debugLogger10.error("[ACP] Cleanup error:", error);
|
|
17072
17121
|
}
|
|
17073
17122
|
if (failures.length > 0) {
|
|
17074
17123
|
throw new AggregateError(failures, "Managed ACP shutdown failed");
|
|
@@ -17080,14 +17129,14 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17080
17129
|
if (shuttingDown) return;
|
|
17081
17130
|
shuttingDown = true;
|
|
17082
17131
|
prepareFileWatchersForProcessExit();
|
|
17083
|
-
|
|
17132
|
+
debugLogger10.debug("[ACP] Shutdown signal received, closing streams");
|
|
17084
17133
|
if (agentInstance?.isTrustedManagedParent()) {
|
|
17085
17134
|
let exitCode = 0;
|
|
17086
17135
|
try {
|
|
17087
17136
|
await shutdownManagedAgent("other" /* Other */, "signal");
|
|
17088
17137
|
} catch (err) {
|
|
17089
17138
|
exitCode = 1;
|
|
17090
|
-
|
|
17139
|
+
debugLogger10.error("[ACP] Managed shutdown error:", err);
|
|
17091
17140
|
} finally {
|
|
17092
17141
|
eventLoopMonitor.dispose();
|
|
17093
17142
|
}
|
|
@@ -17112,12 +17161,12 @@ async function runAcpAgent(config, settings, argv, options) {
|
|
|
17112
17161
|
}
|
|
17113
17162
|
await drainPoolBeforeExit("signal");
|
|
17114
17163
|
} catch (err) {
|
|
17115
|
-
|
|
17164
|
+
debugLogger10.error("[ACP] Shutdown error:", err);
|
|
17116
17165
|
} finally {
|
|
17117
17166
|
eventLoopMonitor.dispose();
|
|
17118
17167
|
}
|
|
17119
17168
|
runExitCleanup().catch((err) => {
|
|
17120
|
-
|
|
17169
|
+
debugLogger10.error("[ACP] Cleanup error:", err);
|
|
17121
17170
|
}).finally(() => {
|
|
17122
17171
|
process.exit(0);
|
|
17123
17172
|
});
|
|
@@ -17613,12 +17662,12 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
17613
17662
|
try {
|
|
17614
17663
|
session.beginCloseIfAvailable();
|
|
17615
17664
|
} catch (error) {
|
|
17616
|
-
|
|
17665
|
+
debugLogger10.debug(
|
|
17617
17666
|
`Session ${session.getId()} admission close during managed shutdown failed: ${error instanceof Error ? error.message : String(error)}`
|
|
17618
17667
|
);
|
|
17619
17668
|
}
|
|
17620
17669
|
void session.cancelPendingPrompt().catch((error) => {
|
|
17621
|
-
|
|
17670
|
+
debugLogger10.debug(
|
|
17622
17671
|
`Session ${session.getId()} cancel during managed shutdown failed: ${error instanceof Error ? error.message : String(error)}`
|
|
17623
17672
|
);
|
|
17624
17673
|
});
|
|
@@ -17773,7 +17822,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
17773
17822
|
await run();
|
|
17774
17823
|
}).catch((err) => {
|
|
17775
17824
|
this.workspaceMcpDiscoveryError = err instanceof Error ? err.message : String(err);
|
|
17776
|
-
|
|
17825
|
+
debugLogger10.error(
|
|
17777
17826
|
`Workspace MCP ${label} failed: ${err instanceof Error ? err.message : String(err)}`
|
|
17778
17827
|
);
|
|
17779
17828
|
}).finally(() => {
|
|
@@ -17972,7 +18021,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
17972
18021
|
try {
|
|
17973
18022
|
const result = await this.mcpPool.drainAll({ force: true, timeoutMs });
|
|
17974
18023
|
if (result.forced > 0 || result.errors.length > 0) {
|
|
17975
|
-
|
|
18024
|
+
debugLogger10.warn(
|
|
17976
18025
|
`MCP pool drain: ${result.drained} clean, ${result.forced} timed out, ${result.errors.length} errors`
|
|
17977
18026
|
);
|
|
17978
18027
|
throw new Error(
|
|
@@ -17980,7 +18029,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
17980
18029
|
);
|
|
17981
18030
|
}
|
|
17982
18031
|
} catch (err) {
|
|
17983
|
-
|
|
18032
|
+
debugLogger10.error(
|
|
17984
18033
|
`MCP pool drainAll failed: ${err instanceof Error ? err.message : String(err)}`
|
|
17985
18034
|
);
|
|
17986
18035
|
throw err;
|
|
@@ -18025,14 +18074,14 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18025
18074
|
this.detachedWorkflowRegistries.add(registry);
|
|
18026
18075
|
}
|
|
18027
18076
|
} catch (error) {
|
|
18028
|
-
|
|
18077
|
+
debugLogger10.warn(
|
|
18029
18078
|
`Session ${sessionId}: could not retain its workflow registry for liveness checks:`,
|
|
18030
18079
|
error
|
|
18031
18080
|
);
|
|
18032
18081
|
}
|
|
18033
18082
|
this.activeWorkReporter?.notifyChanged();
|
|
18034
18083
|
if (cleanupErrors.length > 0) {
|
|
18035
|
-
|
|
18084
|
+
debugLogger10.warn(
|
|
18036
18085
|
`Session ${sessionId} closed after ${cleanupErrors.length} cleanup failure(s): ${cleanupErrors.map(
|
|
18037
18086
|
(error) => error instanceof Error ? error.message : String(error)
|
|
18038
18087
|
).join("; ")}`
|
|
@@ -18086,7 +18135,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18086
18135
|
try {
|
|
18087
18136
|
await cleanup();
|
|
18088
18137
|
} catch (cleanupError) {
|
|
18089
|
-
|
|
18138
|
+
debugLogger10.warn(
|
|
18090
18139
|
`Session cleanup failed while preserving the original request error: ${cleanupError instanceof Error ? cleanupError.message : String(cleanupError)}`
|
|
18091
18140
|
);
|
|
18092
18141
|
}
|
|
@@ -18137,7 +18186,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18137
18186
|
await this.cleanupUnstoredConfig(config);
|
|
18138
18187
|
} catch (error) {
|
|
18139
18188
|
if (config.getSessionId() === requiredSessionId) throw error;
|
|
18140
|
-
|
|
18189
|
+
debugLogger10.warn(
|
|
18141
18190
|
`Deferred Config cleanup retry failed for session ${config.getSessionId()}: ${error instanceof Error ? error.message : String(error)}`
|
|
18142
18191
|
);
|
|
18143
18192
|
}
|
|
@@ -18185,7 +18234,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18185
18234
|
try {
|
|
18186
18235
|
await session.cancelPendingPrompt();
|
|
18187
18236
|
} catch (err) {
|
|
18188
|
-
|
|
18237
|
+
debugLogger10.debug(
|
|
18189
18238
|
`Session ${sessionId} cancel during close failed: ${err instanceof Error ? err.message : String(err)}`
|
|
18190
18239
|
);
|
|
18191
18240
|
}
|
|
@@ -18298,7 +18347,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18298
18347
|
}
|
|
18299
18348
|
return messaging;
|
|
18300
18349
|
} catch (error) {
|
|
18301
|
-
|
|
18350
|
+
debugLogger10.error(
|
|
18302
18351
|
"[ACP] cross-session messaging failed to start:",
|
|
18303
18352
|
error
|
|
18304
18353
|
);
|
|
@@ -18316,7 +18365,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18316
18365
|
try {
|
|
18317
18366
|
await (await pending)?.close();
|
|
18318
18367
|
} catch (error) {
|
|
18319
|
-
|
|
18368
|
+
debugLogger10.debug(
|
|
18320
18369
|
`[ACP] closing cross-session messaging failed: ${error instanceof Error ? error.message : String(error)}`
|
|
18321
18370
|
);
|
|
18322
18371
|
}
|
|
@@ -18450,7 +18499,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18450
18499
|
finalizeDanglingForRestore(session, turnIdleBeforeRead) {
|
|
18451
18500
|
const idleAtReplay = session?.isTurnIdle() ?? true;
|
|
18452
18501
|
const finalize = turnIdleBeforeRead && idleAtReplay;
|
|
18453
|
-
|
|
18502
|
+
debugLogger10.debug(
|
|
18454
18503
|
`[ACP] restore replay finalizeDangling=${finalize} (idleBeforeRead=${turnIdleBeforeRead}, idleAtReplay=${idleAtReplay}) session=${session?.getId() ?? "(non-live)"}`
|
|
18455
18504
|
);
|
|
18456
18505
|
return finalize;
|
|
@@ -18490,7 +18539,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18490
18539
|
scope: "workspace",
|
|
18491
18540
|
...event
|
|
18492
18541
|
}).catch((err) => {
|
|
18493
|
-
|
|
18542
|
+
debugLogger10.debug(
|
|
18494
18543
|
`MCP workspace budget event delivery to session ${sid} failed (kind=${event.kind}): ${err instanceof Error ? err.message : String(err)}`
|
|
18495
18544
|
);
|
|
18496
18545
|
});
|
|
@@ -18527,7 +18576,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18527
18576
|
const authMethods = pickAuthMethodsForAuthRequired(
|
|
18528
18577
|
this.config.getCurrentAuthType?.() ?? this.config.getAuthType?.()
|
|
18529
18578
|
);
|
|
18530
|
-
const version = "0.
|
|
18579
|
+
const version = "0.5.1";
|
|
18531
18580
|
const response = {
|
|
18532
18581
|
protocolVersion: PROTOCOL_VERSION,
|
|
18533
18582
|
agentInfo: {
|
|
@@ -18884,7 +18933,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18884
18933
|
maxUpdates: LOAD_REPLAY_MAX_UPDATES
|
|
18885
18934
|
}
|
|
18886
18935
|
} : {},
|
|
18887
|
-
logger:
|
|
18936
|
+
logger: debugLogger10
|
|
18888
18937
|
})
|
|
18889
18938
|
);
|
|
18890
18939
|
addDaemonRequestAttribute(
|
|
@@ -18898,7 +18947,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18898
18947
|
replayPage.records
|
|
18899
18948
|
);
|
|
18900
18949
|
} catch (error) {
|
|
18901
|
-
|
|
18950
|
+
debugLogger10.debug(
|
|
18902
18951
|
`Failed to render the legacy Goal supersession: ${error instanceof Error ? error.message : String(error)}`
|
|
18903
18952
|
);
|
|
18904
18953
|
return [];
|
|
@@ -18919,7 +18968,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18919
18968
|
try {
|
|
18920
18969
|
await liveSession.sendUpdate(update);
|
|
18921
18970
|
} catch (error) {
|
|
18922
|
-
|
|
18971
|
+
debugLogger10.debug(
|
|
18923
18972
|
`Failed to send the legacy Goal supersession: ${error instanceof Error ? error.message : String(error)}`
|
|
18924
18973
|
);
|
|
18925
18974
|
}
|
|
@@ -18998,6 +19047,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
18998
19047
|
config.suppressRestorableAskUserQuestionPreservation();
|
|
18999
19048
|
}
|
|
19000
19049
|
const projection = config.consumeSessionRestoreProjection?.();
|
|
19050
|
+
applyRestoredSessionApprovalMode(config, projection);
|
|
19001
19051
|
const suppressRecoveredGoalPresentation = projection?.runtime.goalRecoverySourceUuid !== void 0 && projection.runtime.goalRecoverySourceUuid !== projection.replay?.goalRecoverySourceUuid;
|
|
19002
19052
|
const bulkReplay = isBulkLoadReplayRequest(params);
|
|
19003
19053
|
let replayEnvelope;
|
|
@@ -19076,7 +19126,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19076
19126
|
maxUpdates: LOAD_REPLAY_MAX_UPDATES
|
|
19077
19127
|
}
|
|
19078
19128
|
} : {},
|
|
19079
|
-
logger:
|
|
19129
|
+
logger: debugLogger10
|
|
19080
19130
|
})
|
|
19081
19131
|
);
|
|
19082
19132
|
addDaemonRequestAttribute(
|
|
@@ -19110,7 +19160,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19110
19160
|
}
|
|
19111
19161
|
).catch((error) => {
|
|
19112
19162
|
if (suppressRecoveredGoalPresentation) throw error;
|
|
19113
|
-
|
|
19163
|
+
debugLogger10.debug(
|
|
19114
19164
|
`Failed to render recovered Goal state: ${error instanceof Error ? error.message : String(error)}`
|
|
19115
19165
|
);
|
|
19116
19166
|
return {
|
|
@@ -19194,7 +19244,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19194
19244
|
await createdSession.sendUpdate(update);
|
|
19195
19245
|
}
|
|
19196
19246
|
} catch (error) {
|
|
19197
|
-
|
|
19247
|
+
debugLogger10.debug(
|
|
19198
19248
|
`Failed to publish recovered Goal state: ${error instanceof Error ? error.message : String(error)}`
|
|
19199
19249
|
);
|
|
19200
19250
|
}
|
|
@@ -19337,6 +19387,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19337
19387
|
config.suppressRestorableAskUserQuestionPreservation();
|
|
19338
19388
|
}
|
|
19339
19389
|
const projection = config.consumeSessionRestoreProjection?.();
|
|
19390
|
+
applyRestoredSessionApprovalMode(config, projection);
|
|
19340
19391
|
let response;
|
|
19341
19392
|
try {
|
|
19342
19393
|
if (!provisionalStandalone) {
|
|
@@ -19441,7 +19492,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19441
19492
|
session.pendingWorktreeNotice = restored.contextMessage;
|
|
19442
19493
|
}
|
|
19443
19494
|
} catch (error) {
|
|
19444
|
-
|
|
19495
|
+
debugLogger10.warn(`ACP worktree restore failed: ${error}`);
|
|
19445
19496
|
}
|
|
19446
19497
|
}
|
|
19447
19498
|
async #restoreBackgroundAgentsOnResume(config, session) {
|
|
@@ -19835,7 +19886,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19835
19886
|
await extensionManager.refreshCache();
|
|
19836
19887
|
extensions = extensionManager.getLoadedExtensions();
|
|
19837
19888
|
} catch (error) {
|
|
19838
|
-
|
|
19889
|
+
debugLogger10.warn(
|
|
19839
19890
|
"Extension loading failed, continuing without extensions:",
|
|
19840
19891
|
error
|
|
19841
19892
|
);
|
|
@@ -19969,7 +20020,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
19969
20020
|
pm.addPersistentRule(rule, ruleType);
|
|
19970
20021
|
}
|
|
19971
20022
|
} catch (error) {
|
|
19972
|
-
|
|
20023
|
+
debugLogger10.warn(
|
|
19973
20024
|
`Failed to sync permission rules to a live session: ${error instanceof Error ? error.message : String(error)}`
|
|
19974
20025
|
);
|
|
19975
20026
|
}
|
|
@@ -20561,7 +20612,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
20561
20612
|
if (!changed) return;
|
|
20562
20613
|
await config.getSkillManager()?.refreshCache();
|
|
20563
20614
|
} catch (error) {
|
|
20564
|
-
|
|
20615
|
+
debugLogger10.warn("Extension source revalidation failed:", error);
|
|
20565
20616
|
}
|
|
20566
20617
|
}
|
|
20567
20618
|
async buildWorkspaceSkillsStatus(config, settings = this.settings) {
|
|
@@ -21639,7 +21690,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
21639
21690
|
"o1code/session/sources/copy"
|
|
21640
21691
|
].includes(method)) {
|
|
21641
21692
|
if (!(error instanceof SessionSourceError)) {
|
|
21642
|
-
|
|
21693
|
+
debugLogger10.error("[ACP] Session source ext-method error:", error);
|
|
21643
21694
|
}
|
|
21644
21695
|
return {
|
|
21645
21696
|
sourceError: error instanceof SessionSourceError ? { code: error.code, message: error.message } : {
|
|
@@ -22140,7 +22191,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22140
22191
|
config,
|
|
22141
22192
|
finalizeDangling: !activePromptBeforeRead && !this.activePromptCalls.has(sessionId2),
|
|
22142
22193
|
encodeCursor: /* @__PURE__ */ __name((state) => encodeSessionTranscriptCursor(state, cwd), "encodeCursor"),
|
|
22143
|
-
logger:
|
|
22194
|
+
logger: debugLogger10
|
|
22144
22195
|
});
|
|
22145
22196
|
return {
|
|
22146
22197
|
v: 1,
|
|
@@ -22430,7 +22481,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22430
22481
|
);
|
|
22431
22482
|
if (childSignal.aborted) {
|
|
22432
22483
|
const timeoutCode = "remember_timeout";
|
|
22433
|
-
|
|
22484
|
+
debugLogger10.error("Workspace memory remember timed out:", {
|
|
22434
22485
|
projectRoot,
|
|
22435
22486
|
code: timeoutCode,
|
|
22436
22487
|
details: diagnostics.debugDetails,
|
|
@@ -22442,7 +22493,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22442
22493
|
workspaceMemoryErrorData(timeoutCode, diagnostics)
|
|
22443
22494
|
);
|
|
22444
22495
|
}
|
|
22445
|
-
|
|
22496
|
+
debugLogger10.error("Workspace memory remember failed:", {
|
|
22446
22497
|
projectRoot,
|
|
22447
22498
|
code,
|
|
22448
22499
|
details: diagnostics.debugDetails,
|
|
@@ -22521,7 +22572,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22521
22572
|
);
|
|
22522
22573
|
if (childSignal.aborted) {
|
|
22523
22574
|
const timeoutCode = "forget_timeout";
|
|
22524
|
-
|
|
22575
|
+
debugLogger10.error("Workspace memory forget timed out:", {
|
|
22525
22576
|
projectRoot,
|
|
22526
22577
|
code: timeoutCode,
|
|
22527
22578
|
details: diagnostics.debugDetails,
|
|
@@ -22533,7 +22584,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22533
22584
|
workspaceMemoryErrorData(timeoutCode, diagnostics)
|
|
22534
22585
|
);
|
|
22535
22586
|
}
|
|
22536
|
-
|
|
22587
|
+
debugLogger10.error("Workspace memory forget failed:", {
|
|
22537
22588
|
projectRoot,
|
|
22538
22589
|
code,
|
|
22539
22590
|
details: diagnostics.debugDetails,
|
|
@@ -22601,7 +22652,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22601
22652
|
);
|
|
22602
22653
|
if (childSignal.aborted) {
|
|
22603
22654
|
const timeoutCode = "dream_timeout";
|
|
22604
|
-
|
|
22655
|
+
debugLogger10.error("Workspace memory dream timed out:", {
|
|
22605
22656
|
projectRoot,
|
|
22606
22657
|
code: timeoutCode,
|
|
22607
22658
|
details: diagnostics.debugDetails,
|
|
@@ -22613,7 +22664,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
22613
22664
|
workspaceMemoryErrorData(timeoutCode, diagnostics)
|
|
22614
22665
|
);
|
|
22615
22666
|
}
|
|
22616
|
-
|
|
22667
|
+
debugLogger10.error("Workspace memory dream failed:", {
|
|
22617
22668
|
projectRoot,
|
|
22618
22669
|
code,
|
|
22619
22670
|
details: diagnostics.debugDetails,
|
|
@@ -23023,7 +23074,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23023
23074
|
error: error instanceof Error ? error.message : String(error)
|
|
23024
23075
|
});
|
|
23025
23076
|
rejectStarted(error);
|
|
23026
|
-
|
|
23077
|
+
debugLogger10.warn(
|
|
23027
23078
|
`MCP OAuth authentication failed for ${serverName}:`,
|
|
23028
23079
|
error
|
|
23029
23080
|
);
|
|
@@ -23035,7 +23086,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23035
23086
|
"discover"
|
|
23036
23087
|
);
|
|
23037
23088
|
} catch (error) {
|
|
23038
|
-
|
|
23089
|
+
debugLogger10.warn(
|
|
23039
23090
|
`MCP OAuth authenticated for ${serverName}, but tool synchronization failed:`,
|
|
23040
23091
|
error
|
|
23041
23092
|
);
|
|
@@ -23226,7 +23277,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23226
23277
|
try {
|
|
23227
23278
|
await this.cleanupUnstoredConfig(temporaryConfig);
|
|
23228
23279
|
} catch (error) {
|
|
23229
|
-
|
|
23280
|
+
debugLogger10.warn("Failed to clean up source copy config:", error);
|
|
23230
23281
|
}
|
|
23231
23282
|
}
|
|
23232
23283
|
}
|
|
@@ -23893,6 +23944,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23893
23944
|
}
|
|
23894
23945
|
throw err;
|
|
23895
23946
|
}
|
|
23947
|
+
void recordDaemonSessionApprovalModeFromConfig(config);
|
|
23896
23948
|
const current = config.getApprovalMode();
|
|
23897
23949
|
if (current === "plan") {
|
|
23898
23950
|
if (previous !== "plan") {
|
|
@@ -23948,7 +24000,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23948
24000
|
try {
|
|
23949
24001
|
await setLanguageAsync(language);
|
|
23950
24002
|
} catch (err) {
|
|
23951
|
-
|
|
24003
|
+
debugLogger10.warn("setLanguageAsync failed:", err);
|
|
23952
24004
|
throw new RequestError(
|
|
23953
24005
|
-32603,
|
|
23954
24006
|
`Failed to switch UI language: ${err instanceof Error ? err.message : String(err)}`
|
|
@@ -23962,7 +24014,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23962
24014
|
language
|
|
23963
24015
|
);
|
|
23964
24016
|
} catch (err) {
|
|
23965
|
-
|
|
24017
|
+
debugLogger10.warn("Failed to persist UI language setting:", err);
|
|
23966
24018
|
}
|
|
23967
24019
|
let outputLanguage = null;
|
|
23968
24020
|
let refreshed = false;
|
|
@@ -23976,7 +24028,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23976
24028
|
);
|
|
23977
24029
|
fileWriteOk = true;
|
|
23978
24030
|
} catch (err) {
|
|
23979
|
-
|
|
24031
|
+
debugLogger10.warn("Failed to write output-language.md:", err);
|
|
23980
24032
|
}
|
|
23981
24033
|
if (fileWriteOk) {
|
|
23982
24034
|
try {
|
|
@@ -23986,7 +24038,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
23986
24038
|
settingValue
|
|
23987
24039
|
);
|
|
23988
24040
|
} catch (err) {
|
|
23989
|
-
|
|
24041
|
+
debugLogger10.warn(
|
|
23990
24042
|
"Failed to persist output language setting:",
|
|
23991
24043
|
err
|
|
23992
24044
|
);
|
|
@@ -24006,7 +24058,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24006
24058
|
writeOutputLanguageAndRegisterPath(settingValue, cfg);
|
|
24007
24059
|
}
|
|
24008
24060
|
} catch (err) {
|
|
24009
|
-
|
|
24061
|
+
debugLogger10.warn(
|
|
24010
24062
|
`Failed to write output-language.md for session ${s.getId()} (path=${sessionPath ?? "global-default"}):`,
|
|
24011
24063
|
err
|
|
24012
24064
|
);
|
|
@@ -24019,7 +24071,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24019
24071
|
(r) => r.status === "rejected"
|
|
24020
24072
|
).length;
|
|
24021
24073
|
if (failedCount > 0) {
|
|
24022
|
-
|
|
24074
|
+
debugLogger10.warn(
|
|
24023
24075
|
`Language refresh failed for ${failedCount}/${results.length} session(s)`
|
|
24024
24076
|
);
|
|
24025
24077
|
}
|
|
@@ -24045,7 +24097,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24045
24097
|
try {
|
|
24046
24098
|
await setLanguageAsync(language);
|
|
24047
24099
|
} catch (err) {
|
|
24048
|
-
|
|
24100
|
+
debugLogger10.warn("setLanguageAsync failed:", err);
|
|
24049
24101
|
throw new RequestError(
|
|
24050
24102
|
-32603,
|
|
24051
24103
|
`Failed to switch UI language: ${err instanceof Error ? err.message : String(err)}`
|
|
@@ -24067,7 +24119,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24067
24119
|
sessions = results.length;
|
|
24068
24120
|
failed = results.filter((r) => r.status === "rejected").length;
|
|
24069
24121
|
if (failed > 0) {
|
|
24070
|
-
|
|
24122
|
+
debugLogger10.warn(
|
|
24071
24123
|
`User language refresh failed for ${failed}/${results.length} session(s)`
|
|
24072
24124
|
);
|
|
24073
24125
|
}
|
|
@@ -24082,14 +24134,14 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24082
24134
|
"Invalid or missing sessionId"
|
|
24083
24135
|
);
|
|
24084
24136
|
}
|
|
24085
|
-
|
|
24137
|
+
debugLogger10.debug(`recap ext-method received for session=${sessionId2}`);
|
|
24086
24138
|
const session = this.sessionOrThrow(sessionId2);
|
|
24087
24139
|
const config = session.getConfig();
|
|
24088
24140
|
const recap = await generateSessionRecap(
|
|
24089
24141
|
config,
|
|
24090
24142
|
new AbortController().signal
|
|
24091
24143
|
);
|
|
24092
|
-
|
|
24144
|
+
debugLogger10.debug(
|
|
24093
24145
|
`recap ext-method completed for session=${sessionId2} result=${recap ? `len=${recap.length}` : "null"}`
|
|
24094
24146
|
);
|
|
24095
24147
|
return { sessionId: sessionId2, recap };
|
|
@@ -24171,7 +24223,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24171
24223
|
const config = session.getConfig();
|
|
24172
24224
|
const cacheSafeParams = buildBtwCacheSafeParams(config);
|
|
24173
24225
|
if (!cacheSafeParams) {
|
|
24174
|
-
|
|
24226
|
+
debugLogger10.debug(`btw: no cacheSafeParams for session=${sessionId2}`);
|
|
24175
24227
|
return { sessionId: sessionId2, answer: null };
|
|
24176
24228
|
}
|
|
24177
24229
|
const childSignal = AbortSignal.timeout(BTW_CHILD_TIMEOUT_MS);
|
|
@@ -24225,7 +24277,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24225
24277
|
try {
|
|
24226
24278
|
hasHistory = (config.getLlmClient().getHistoryShallow() ?? []).length > 0;
|
|
24227
24279
|
} catch (error) {
|
|
24228
|
-
|
|
24280
|
+
debugLogger10.debug("Failed to read history before /fork:", error);
|
|
24229
24281
|
}
|
|
24230
24282
|
if (!hasHistory) {
|
|
24231
24283
|
throw RequestError.invalidParams(
|
|
@@ -24267,7 +24319,7 @@ var O1CodeAgent = class _O1CodeAgent {
|
|
|
24267
24319
|
]
|
|
24268
24320
|
});
|
|
24269
24321
|
} catch (error) {
|
|
24270
|
-
|
|
24322
|
+
debugLogger10.debug("Failed to record fork event in history:", error);
|
|
24271
24323
|
}
|
|
24272
24324
|
return { sessionId: sessionId2, description, launched: true };
|
|
24273
24325
|
}
|
|
@@ -24330,7 +24382,7 @@ ${outputText}
|
|
|
24330
24382
|
'taskKind must be "agent", "shell", "monitor", or "workflow"'
|
|
24331
24383
|
);
|
|
24332
24384
|
}
|
|
24333
|
-
|
|
24385
|
+
debugLogger10.info(
|
|
24334
24386
|
`sessionTaskCancel requested sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind}`
|
|
24335
24387
|
);
|
|
24336
24388
|
const session = this.sessionOrThrow(sessionId2);
|
|
@@ -24340,7 +24392,7 @@ ${outputText}
|
|
|
24340
24392
|
const task = config.getBackgroundTaskRegistry().get(taskId);
|
|
24341
24393
|
if (!task || task.status !== "running" && task.status !== "paused") {
|
|
24342
24394
|
const reason = task ? "not_running" : "not_found";
|
|
24343
|
-
|
|
24395
|
+
debugLogger10.info(
|
|
24344
24396
|
`sessionTaskCancel skipped sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} reason=${reason} status=${task?.status ?? "missing"}`
|
|
24345
24397
|
);
|
|
24346
24398
|
return { cancelled: false, reason, status: task?.status };
|
|
@@ -24350,7 +24402,7 @@ ${outputText}
|
|
|
24350
24402
|
} else {
|
|
24351
24403
|
config.getBackgroundTaskRegistry().cancel(taskId);
|
|
24352
24404
|
}
|
|
24353
|
-
|
|
24405
|
+
debugLogger10.info(
|
|
24354
24406
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=${task.status}`
|
|
24355
24407
|
);
|
|
24356
24408
|
return { cancelled: true, status: task.status };
|
|
@@ -24359,13 +24411,13 @@ ${outputText}
|
|
|
24359
24411
|
const task = config.getBackgroundShellRegistry().get(taskId);
|
|
24360
24412
|
if (!task || task.status !== "running") {
|
|
24361
24413
|
const reason = task ? "not_running" : "not_found";
|
|
24362
|
-
|
|
24414
|
+
debugLogger10.info(
|
|
24363
24415
|
`sessionTaskCancel skipped sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} reason=${reason} status=${task?.status ?? "missing"}`
|
|
24364
24416
|
);
|
|
24365
24417
|
return { cancelled: false, reason, status: task?.status };
|
|
24366
24418
|
}
|
|
24367
24419
|
config.getBackgroundShellRegistry().requestCancel(taskId);
|
|
24368
|
-
|
|
24420
|
+
debugLogger10.info(
|
|
24369
24421
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=${task.status}`
|
|
24370
24422
|
);
|
|
24371
24423
|
return { cancelled: true, status: task.status };
|
|
@@ -24374,13 +24426,13 @@ ${outputText}
|
|
|
24374
24426
|
const task = config.getMonitorRegistry().get(taskId);
|
|
24375
24427
|
if (!task || task.status !== "running") {
|
|
24376
24428
|
const reason = task ? "not_running" : "not_found";
|
|
24377
|
-
|
|
24429
|
+
debugLogger10.info(
|
|
24378
24430
|
`sessionTaskCancel skipped sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} reason=${reason} status=${task?.status ?? "missing"}`
|
|
24379
24431
|
);
|
|
24380
24432
|
return { cancelled: false, reason, status: task?.status };
|
|
24381
24433
|
}
|
|
24382
24434
|
config.getMonitorRegistry().cancel(taskId);
|
|
24383
|
-
|
|
24435
|
+
debugLogger10.info(
|
|
24384
24436
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=${task.status}`
|
|
24385
24437
|
);
|
|
24386
24438
|
return { cancelled: true, status: task.status };
|
|
@@ -24393,14 +24445,14 @@ ${outputText}
|
|
|
24393
24445
|
const task = registry.get(taskId);
|
|
24394
24446
|
if ((!task || isTerminalWorkflowStatus(task.status)) && registry.isStarting?.(taskId)) {
|
|
24395
24447
|
registry.cancelStarting(taskId);
|
|
24396
|
-
|
|
24448
|
+
debugLogger10.info(
|
|
24397
24449
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=starting`
|
|
24398
24450
|
);
|
|
24399
24451
|
return { cancelled: true, status: "cancelled" };
|
|
24400
24452
|
}
|
|
24401
24453
|
if (!task || task.status !== "running" && task.status !== "pausing" && task.status !== "paused") {
|
|
24402
24454
|
const reason = task ? "not_running" : "not_found";
|
|
24403
|
-
|
|
24455
|
+
debugLogger10.info(
|
|
24404
24456
|
`sessionTaskCancel skipped sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} reason=${reason} status=${task?.status ?? "missing"}`
|
|
24405
24457
|
);
|
|
24406
24458
|
return { cancelled: false, reason, status: task?.status };
|
|
@@ -24408,7 +24460,7 @@ ${outputText}
|
|
|
24408
24460
|
const handle = registry.getHandle(taskId);
|
|
24409
24461
|
registry.cancel(taskId, Date.now());
|
|
24410
24462
|
if (handle) await handle.completion;
|
|
24411
|
-
|
|
24463
|
+
debugLogger10.info(
|
|
24412
24464
|
`sessionTaskCancel completed sessionId=${sessionId2} taskId=${taskId} taskKind=${taskKind} status=${task.status}`
|
|
24413
24465
|
);
|
|
24414
24466
|
return { cancelled: true, status: task.status };
|
|
@@ -24598,7 +24650,7 @@ ${outputText}
|
|
|
24598
24650
|
runtime = await config.getGoalRuntimeReady();
|
|
24599
24651
|
} catch (error) {
|
|
24600
24652
|
if (!(error instanceof GoalPersistenceUnavailableError)) throw error;
|
|
24601
|
-
|
|
24653
|
+
debugLogger10.info(
|
|
24602
24654
|
`sessionGoalClear sessionId=${sessionId2} cleared=false (goal persistence unavailable)`
|
|
24603
24655
|
);
|
|
24604
24656
|
return {
|
|
@@ -24614,7 +24666,7 @@ ${outputText}
|
|
|
24614
24666
|
expectedGoalId: goal.goalId,
|
|
24615
24667
|
expectedRevision: goal.revision
|
|
24616
24668
|
}) : { snapshot: before };
|
|
24617
|
-
|
|
24669
|
+
debugLogger10.info(
|
|
24618
24670
|
`sessionGoalClear sessionId=${sessionId2} cleared=${!!goal} objective=${goal?.objective ?? "(none)"}`
|
|
24619
24671
|
);
|
|
24620
24672
|
return {
|
|
@@ -24770,7 +24822,7 @@ ${outputText}
|
|
|
24770
24822
|
}
|
|
24771
24823
|
const session = this.sessionOrThrow(sessionId2);
|
|
24772
24824
|
const result = await session.continueLastTurn();
|
|
24773
|
-
|
|
24825
|
+
debugLogger10.info(
|
|
24774
24826
|
`sessionContinue sessionId=${sessionId2} accepted=${result.accepted} interruption=${result.interruption}`
|
|
24775
24827
|
);
|
|
24776
24828
|
return result;
|
|
@@ -24792,7 +24844,7 @@ ${outputText}
|
|
|
24792
24844
|
request.runtimeClientId
|
|
24793
24845
|
);
|
|
24794
24846
|
} catch (sessionErr) {
|
|
24795
|
-
|
|
24847
|
+
debugLogger10.warn(
|
|
24796
24848
|
`workspaceMcpRuntimeAdd: failed to add runtime MCP server '${request.name}' to active session ${session.getConfig().getSessionId()}: ${sessionErr instanceof Error ? sessionErr.message : String(sessionErr)}`
|
|
24797
24849
|
);
|
|
24798
24850
|
}
|
|
@@ -24815,7 +24867,7 @@ ${outputText}
|
|
|
24815
24867
|
request.runtimeClientId
|
|
24816
24868
|
);
|
|
24817
24869
|
} catch (sessionErr) {
|
|
24818
|
-
|
|
24870
|
+
debugLogger10.warn(
|
|
24819
24871
|
`workspaceMcpRuntimeRemove: failed to remove runtime MCP server '${request.name}' from active session ${session.getConfig().getSessionId()}: ${sessionErr instanceof Error ? sessionErr.message : String(sessionErr)}`
|
|
24820
24872
|
);
|
|
24821
24873
|
}
|
|
@@ -24943,7 +24995,7 @@ ${outputText}
|
|
|
24943
24995
|
}
|
|
24944
24996
|
);
|
|
24945
24997
|
if (success) {
|
|
24946
|
-
fireSessionDeleteHook(this.config, sessionId2,
|
|
24998
|
+
fireSessionDeleteHook(this.config, sessionId2, debugLogger10);
|
|
24947
24999
|
}
|
|
24948
25000
|
return { success };
|
|
24949
25001
|
}
|
|
@@ -25089,7 +25141,7 @@ ${outputText}
|
|
|
25089
25141
|
filesFailed = fileResult.filesFailed;
|
|
25090
25142
|
} catch (err) {
|
|
25091
25143
|
const reason = err instanceof Error ? err.message : String(err);
|
|
25092
|
-
|
|
25144
|
+
debugLogger10.error(
|
|
25093
25145
|
`[ACP] File-history rewind failed for session=${sessionId2} promptId=${promptId}: ${reason}`
|
|
25094
25146
|
);
|
|
25095
25147
|
filesFailed = [`file-history-rewind: ${reason}`];
|
|
@@ -25121,7 +25173,7 @@ ${outputText}
|
|
|
25121
25173
|
} catch (err) {
|
|
25122
25174
|
const reason = err instanceof Error ? err.message : String(err);
|
|
25123
25175
|
artifactSnapshotUnavailable = "artifact snapshot unavailable after rewind";
|
|
25124
|
-
|
|
25176
|
+
debugLogger10.warn(
|
|
25125
25177
|
`[ACP] Failed to rebuild artifact snapshot after rewind for session=${sessionId2}: ${reason}`
|
|
25126
25178
|
);
|
|
25127
25179
|
}
|
|
@@ -25180,7 +25232,7 @@ ${outputText}
|
|
|
25180
25232
|
records: sessionData.conversation.messages,
|
|
25181
25233
|
gaps: sessionData.historyGaps,
|
|
25182
25234
|
cumulativeUsage: createReplayCumulativeUsage(),
|
|
25183
|
-
logger:
|
|
25235
|
+
logger: debugLogger10,
|
|
25184
25236
|
// Read-only history dump never re-hangs the question. Skip
|
|
25185
25237
|
// finalize only on load/resume that will actually restore.
|
|
25186
25238
|
suppressRestoreAskUserQuestion: true,
|
|
@@ -25571,7 +25623,7 @@ ${outputText}
|
|
|
25571
25623
|
"User" /* User */,
|
|
25572
25624
|
"Workspace" /* Workspace */
|
|
25573
25625
|
])) {
|
|
25574
|
-
|
|
25626
|
+
debugLogger10.warn("Model-provider settings reload failed");
|
|
25575
25627
|
return { configsRefreshed: 0, configsFailed: 1 };
|
|
25576
25628
|
}
|
|
25577
25629
|
const reloadRevision = ++this.modelProviderReloadRevision;
|
|
@@ -25591,7 +25643,7 @@ ${outputText}
|
|
|
25591
25643
|
configsRefreshed += 1;
|
|
25592
25644
|
} catch {
|
|
25593
25645
|
configsFailed += 1;
|
|
25594
|
-
|
|
25646
|
+
debugLogger10.warn(`Model-provider reload failed for ${id}`);
|
|
25595
25647
|
}
|
|
25596
25648
|
}, "reloadConfig");
|
|
25597
25649
|
await reloadConfig(this.config, "bootstrap");
|
|
@@ -25606,7 +25658,7 @@ ${outputText}
|
|
|
25606
25658
|
configsRefreshed += 1;
|
|
25607
25659
|
} catch {
|
|
25608
25660
|
configsFailed += 1;
|
|
25609
|
-
|
|
25661
|
+
debugLogger10.warn(`Model-provider reload failed for session ${id}`);
|
|
25610
25662
|
}
|
|
25611
25663
|
}
|
|
25612
25664
|
return {
|
|
@@ -25635,7 +25687,7 @@ ${outputText}
|
|
|
25635
25687
|
newMerged.tools?.approvalMode
|
|
25636
25688
|
);
|
|
25637
25689
|
if (reloadedApprovalMode === void 0) {
|
|
25638
|
-
|
|
25690
|
+
debugLogger10.warn(
|
|
25639
25691
|
"reload: tools.approvalMode holds a value boot would reject; live sessions keep their current modes until the file is corrected"
|
|
25640
25692
|
);
|
|
25641
25693
|
}
|
|
@@ -25654,7 +25706,7 @@ ${outputText}
|
|
|
25654
25706
|
content: { type: "text", text: reasoningError },
|
|
25655
25707
|
_meta: { o1codeDiscreteMessage: true }
|
|
25656
25708
|
}).catch(
|
|
25657
|
-
(error) =>
|
|
25709
|
+
(error) => debugLogger10.warn("Reasoning notice delivery failed", error)
|
|
25658
25710
|
);
|
|
25659
25711
|
if (!session.isIdle()) {
|
|
25660
25712
|
skipped.push(id);
|
|
@@ -25670,7 +25722,7 @@ ${outputText}
|
|
|
25670
25722
|
newMerged.providerProtocol ?? {}
|
|
25671
25723
|
);
|
|
25672
25724
|
} catch (err) {
|
|
25673
|
-
|
|
25725
|
+
debugLogger10.warn(
|
|
25674
25726
|
`reload: reloadModelProvidersConfig failed for session ${id}: ${err}`
|
|
25675
25727
|
);
|
|
25676
25728
|
}
|
|
@@ -25678,7 +25730,7 @@ ${outputText}
|
|
|
25678
25730
|
try {
|
|
25679
25731
|
await config.setImageModel(newMerged.imageModel);
|
|
25680
25732
|
} catch (err) {
|
|
25681
|
-
|
|
25733
|
+
debugLogger10.warn(
|
|
25682
25734
|
`reload: setImageModel failed for session ${id}: ${err}`
|
|
25683
25735
|
);
|
|
25684
25736
|
}
|
|
@@ -25688,7 +25740,7 @@ ${outputText}
|
|
|
25688
25740
|
await config.switchModel(authType, newModelName);
|
|
25689
25741
|
session.reloadReasoningSelection();
|
|
25690
25742
|
} catch (err) {
|
|
25691
|
-
|
|
25743
|
+
debugLogger10.warn(
|
|
25692
25744
|
`reload: switchModel failed for session ${id}: ${err}`
|
|
25693
25745
|
);
|
|
25694
25746
|
}
|
|
@@ -25702,7 +25754,7 @@ ${outputText}
|
|
|
25702
25754
|
);
|
|
25703
25755
|
session.reloadReasoningSelection();
|
|
25704
25756
|
} catch (err) {
|
|
25705
|
-
|
|
25757
|
+
debugLogger10.warn(
|
|
25706
25758
|
`reload: refreshAuth failed for session ${id}: ${err}`
|
|
25707
25759
|
);
|
|
25708
25760
|
}
|
|
@@ -25721,7 +25773,7 @@ ${outputText}
|
|
|
25721
25773
|
try {
|
|
25722
25774
|
await session.sendAvailableCommandsUpdate();
|
|
25723
25775
|
} catch (err) {
|
|
25724
|
-
|
|
25776
|
+
debugLogger10.warn(
|
|
25725
25777
|
`reload: sendAvailableCommandsUpdate failed for session ${id}: ${err}`
|
|
25726
25778
|
);
|
|
25727
25779
|
}
|
|
@@ -25744,7 +25796,7 @@ ${outputText}
|
|
|
25744
25796
|
reloadedSessionMode
|
|
25745
25797
|
);
|
|
25746
25798
|
} catch (err) {
|
|
25747
|
-
|
|
25799
|
+
debugLogger10.warn(
|
|
25748
25800
|
`reload: setApprovalMode failed for session ${id}: ${err}`
|
|
25749
25801
|
);
|
|
25750
25802
|
}
|
|
@@ -25755,14 +25807,14 @@ ${outputText}
|
|
|
25755
25807
|
try {
|
|
25756
25808
|
await config.refreshHierarchicalMemory();
|
|
25757
25809
|
} catch (err) {
|
|
25758
|
-
|
|
25810
|
+
debugLogger10.warn(
|
|
25759
25811
|
`reload: refreshHierarchicalMemory failed for session ${id}: ${err}`
|
|
25760
25812
|
);
|
|
25761
25813
|
}
|
|
25762
25814
|
try {
|
|
25763
25815
|
await config.getLlmClient()?.refreshSystemInstruction();
|
|
25764
25816
|
} catch (err) {
|
|
25765
|
-
|
|
25817
|
+
debugLogger10.warn(
|
|
25766
25818
|
`reload: refreshSystemInstruction failed for session ${id}: ${err}`
|
|
25767
25819
|
);
|
|
25768
25820
|
}
|
|
@@ -25772,7 +25824,7 @@ ${outputText}
|
|
|
25772
25824
|
for (let i = 0; i < results.length; i++) {
|
|
25773
25825
|
if (results[i].status === "rejected") {
|
|
25774
25826
|
const reason = results[i].reason;
|
|
25775
|
-
|
|
25827
|
+
debugLogger10.warn(
|
|
25776
25828
|
`Session ${sessions[i][0]} reload failed: ${reason}`
|
|
25777
25829
|
);
|
|
25778
25830
|
skipped.push(sessions[i][0]);
|
|
@@ -25817,7 +25869,7 @@ ${outputText}
|
|
|
25817
25869
|
);
|
|
25818
25870
|
for (const result of configResults) {
|
|
25819
25871
|
if (result.status === "rejected") {
|
|
25820
|
-
|
|
25872
|
+
debugLogger10.warn(`Skill config refresh failed: ${result.reason}`);
|
|
25821
25873
|
}
|
|
25822
25874
|
}
|
|
25823
25875
|
}
|
|
@@ -25836,7 +25888,7 @@ ${outputText}
|
|
|
25836
25888
|
for (let i = 0; i < results.length; i++) {
|
|
25837
25889
|
if (results[i].status === "rejected") {
|
|
25838
25890
|
const reason2 = results[i].reason;
|
|
25839
|
-
|
|
25891
|
+
debugLogger10.warn(
|
|
25840
25892
|
`Session ${sessions[i].getId()} skill refresh failed: ${reason2}`
|
|
25841
25893
|
);
|
|
25842
25894
|
}
|
|
@@ -25880,12 +25932,12 @@ ${outputText}
|
|
|
25880
25932
|
disposeTranscriptReplayConfig(config) {
|
|
25881
25933
|
try {
|
|
25882
25934
|
void Promise.resolve(config.getToolRegistry()?.stop()).catch((err) => {
|
|
25883
|
-
|
|
25935
|
+
debugLogger10.debug(
|
|
25884
25936
|
`Transcript replay config tool registry stop failed: ${err instanceof Error ? err.message : String(err)}`
|
|
25885
25937
|
);
|
|
25886
25938
|
});
|
|
25887
25939
|
} catch (err) {
|
|
25888
|
-
|
|
25940
|
+
debugLogger10.debug(
|
|
25889
25941
|
`Transcript replay config tool registry stop failed: ${err instanceof Error ? err.message : String(err)}`
|
|
25890
25942
|
);
|
|
25891
25943
|
}
|
|
@@ -26175,7 +26227,7 @@ ${outputText}
|
|
|
26175
26227
|
sessionId: acpSessionId,
|
|
26176
26228
|
...event
|
|
26177
26229
|
}).catch((err) => {
|
|
26178
|
-
|
|
26230
|
+
debugLogger10.debug(
|
|
26179
26231
|
`MCP budget extNotification dropped (session=${acpSessionId}, kind=${event.kind}): ${err instanceof Error ? err.message : String(err)}`
|
|
26180
26232
|
);
|
|
26181
26233
|
});
|
|
@@ -26249,7 +26301,7 @@ ${outputText}
|
|
|
26249
26301
|
try {
|
|
26250
26302
|
await config.waitForMcpReady();
|
|
26251
26303
|
} catch (err) {
|
|
26252
|
-
|
|
26304
|
+
debugLogger10.error(
|
|
26253
26305
|
`MCP discovery readiness failed: ${err instanceof Error ? err.message : String(err)}`
|
|
26254
26306
|
);
|
|
26255
26307
|
return;
|
|
@@ -26301,7 +26353,7 @@ ${outputText}
|
|
|
26301
26353
|
selectedType
|
|
26302
26354
|
);
|
|
26303
26355
|
} catch (e) {
|
|
26304
|
-
|
|
26356
|
+
debugLogger10.error(`Authentication failed: ${e}`);
|
|
26305
26357
|
throw RequestError.authRequired(
|
|
26306
26358
|
{
|
|
26307
26359
|
authMethods: pickAuthMethodsForAuthRequired(selectedType)
|
|
@@ -26557,7 +26609,7 @@ ${outputText}
|
|
|
26557
26609
|
try {
|
|
26558
26610
|
await claimInterruptedWorkflowRuns(config);
|
|
26559
26611
|
} catch (error) {
|
|
26560
|
-
|
|
26612
|
+
debugLogger10.debug(`Claiming interrupted workflow runs failed: ${error}`);
|
|
26561
26613
|
}
|
|
26562
26614
|
const workflowHistory = await listWorkflowSnapshots(config);
|
|
26563
26615
|
const session = new Session(
|
|
@@ -26583,7 +26635,7 @@ ${outputText}
|
|
|
26583
26635
|
sessionData.conversation.messages
|
|
26584
26636
|
);
|
|
26585
26637
|
} catch (error) {
|
|
26586
|
-
|
|
26638
|
+
debugLogger10.debug(
|
|
26587
26639
|
`Failed to publish recovered Goal state: ${error instanceof Error ? error.message : String(error)}`
|
|
26588
26640
|
);
|
|
26589
26641
|
}
|
|
@@ -26599,7 +26651,7 @@ ${outputText}
|
|
|
26599
26651
|
if (settingsReloaded) {
|
|
26600
26652
|
reloadEnvironment(settings.merged, config.getTargetDir());
|
|
26601
26653
|
} else {
|
|
26602
|
-
|
|
26654
|
+
debugLogger10.warn(
|
|
26603
26655
|
"Deferred session settings reload failed; keeping current environment"
|
|
26604
26656
|
);
|
|
26605
26657
|
}
|
|
@@ -26650,7 +26702,7 @@ ${outputText}
|
|
|
26650
26702
|
"Unable to reload model-provider settings from disk."
|
|
26651
26703
|
);
|
|
26652
26704
|
}
|
|
26653
|
-
|
|
26705
|
+
debugLogger10.warn(
|
|
26654
26706
|
"Final model-provider settings reload failed; keeping current settings"
|
|
26655
26707
|
);
|
|
26656
26708
|
}
|
|
@@ -26728,7 +26780,7 @@ ${outputText}
|
|
|
26728
26780
|
try {
|
|
26729
26781
|
session.dispose();
|
|
26730
26782
|
} catch (disposeError) {
|
|
26731
|
-
|
|
26783
|
+
debugLogger10.warn(
|
|
26732
26784
|
`Failed to dispose unpublished session ${sessionId}: ${disposeError instanceof Error ? disposeError.message : String(disposeError)}`
|
|
26733
26785
|
);
|
|
26734
26786
|
}
|
|
@@ -26969,6 +27021,11 @@ export {
|
|
|
26969
27021
|
* Copyright 2026 Qwen
|
|
26970
27022
|
* SPDX-License-Identifier: Apache-2.0
|
|
26971
27023
|
*/
|
|
27024
|
+
/**
|
|
27025
|
+
* @license
|
|
27026
|
+
* Copyright 2026 o1-code contributors
|
|
27027
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
27028
|
+
*/
|
|
26972
27029
|
/**
|
|
26973
27030
|
* @license
|
|
26974
27031
|
* Copyright 2025 Qwen
|