fix(wechat): avoid image_url session poison on report follow-ups

Store image-only WeChat messages without running Agent, scrub assistant image_url history, and retry historical-image failures with text-only prompts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-15 08:21:28 +08:00
parent 4c2bc95462
commit 67b9478155
6 changed files with 147 additions and 127 deletions
+1 -1
View File
@@ -1569,7 +1569,7 @@ test('submitSessionReplyForUser rotates when assistant history still has image_u
},
{ requireHistoricalImageIsolation: true },
),
/historical_image_session_update_unsupported:image_url_content_present/,
/historical_image_session_update_unsupported:(405|image_url_content_present)/,
);
assert.equal(replyBodies.length, 0);
}, {