fix(desktop-wake): never inject SearchResultWindow2 (1.2.9)
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 32s

Soft-wake search popup only; n2-wake on float crashed WeCom via wecom_wake.dll.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-02 21:32:23 +08:00
parent 17ac1b4e11
commit 24384d70ba
11 changed files with 69 additions and 24 deletions

View File

@@ -34,10 +34,11 @@ class ProfileTests(unittest.TestCase):
self.assertIn("search_result", p.warm_markers)
self.assertIn("user_item", p.warm_markers)
self.assertFalse(p.activate_maximize)
# 1.2.8+:对浮层本身 n2-wake(多窗子类化);不再改注主窗
# 1.2.9+:浮层禁止 n2-wake/注入(会崩企微);仅进程外软唤醒
self.assertFalse((p.native_hwnd_class or "").strip())
self.assertIn("native_helper", p.wake_strategies)
self.assertIn("n2-wake", p.native_args or [])
self.assertNotIn("native_helper", p.wake_strategies)
self.assertIn("wm_getobject", p.wake_strategies)
self.assertIn("msaa_from_window", p.wake_strategies)
def test_resolve_native_hwnd_fallback_without_class(self):
from jiangchang_desktop_wake.wake import resolve_native_hwnd