From 5db7478c986a2e92a56cb73ad48d46661b5e3d26 Mon Sep 17 00:00:00 2001 From: john Date: Fri, 7 Aug 2026 15:49:57 +0800 Subject: [PATCH] test(wechat-mp): expect stdio restore during session reconcile Reconcile now re-adds missing sandbox-fs before reply; update the dedicated session test to assert add_extension and restart are invoked. Co-authored-by: Cursor --- wechat-mp.test.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wechat-mp.test.mjs b/wechat-mp.test.mjs index 846310f..00fded1 100644 --- a/wechat-mp.test.mjs +++ b/wechat-mp.test.mjs @@ -2658,7 +2658,8 @@ test('wechat mp service reconciles existing dedicated session before reply', asy assert.equal(result.status, 200); await result.task; assert.equal(calls.some(([pathname]) => pathname === '/agent/update_working_dir'), true); - assert.equal(calls.some(([pathname]) => pathname === '/agent/add_extension'), false); + assert.equal(calls.some(([pathname]) => pathname === '/agent/add_extension'), true); + assert.equal(calls.some(([pathname]) => pathname === '/agent/restart'), true); assert.equal(calls.some(([pathname]) => pathname === '/sessions/session-1/reply'), true); } finally { crypto.randomUUID = originalRandomUuid;