From 32b9fc4a4a823d1cd3ec6e949da25ddccb252e7d Mon Sep 17 00:00:00 2001 From: DennisYu07 <617072224@qq.com> Date: Wed, 8 Jul 2026 10:18:23 +0800 Subject: [PATCH] fix(test): add TERM_PROGRAM_VERSION to OSC 8 detection tests iTerm.app and vscode version-gated detection requires TERM_PROGRAM_VERSION to be set. The beforeEach cleanup deletes it, causing supportsOsc8Hyperlinks() to return false and the OSC 8 envelope to not be emitted. --- packages/core/src/qwen/qwenOAuth2.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/qwen/qwenOAuth2.test.ts b/packages/core/src/qwen/qwenOAuth2.test.ts index ad563182d1..ad0dde7bcd 100644 --- a/packages/core/src/qwen/qwenOAuth2.test.ts +++ b/packages/core/src/qwen/qwenOAuth2.test.ts @@ -2458,6 +2458,7 @@ describe('showFallbackMessage', () => { configurable: true, }); process.env['TERM_PROGRAM'] = 'iTerm.app'; + process.env['TERM_PROGRAM_VERSION'] = '3.5.0'; showFallbackMessage('https://chat.qwen.ai/device?code=ABC123'); @@ -2562,6 +2563,7 @@ describe('showFallbackMessage', () => { configurable: true, }); process.env['TERM_PROGRAM'] = 'vscode'; + process.env['TERM_PROGRAM_VERSION'] = '1.85.0'; showFallbackMessage('https://chat.qwen.ai/device?code=ABC123');