From aaa9ce6b9932b439f67a96b5d72db0bb11930448 Mon Sep 17 00:00:00 2001 From: gaopengbin <1804287165@qq.com> Date: Sat, 1 Aug 2026 13:28:47 +0800 Subject: [PATCH] Fix Codex 535 root landmark --- src/adapters/codex.mjs | 3 ++- tests/adapters.test.mjs | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/adapters/codex.mjs b/src/adapters/codex.mjs index c5ea629..bbb2f1e 100644 --- a/src/adapters/codex.mjs +++ b/src/adapters/codex.mjs @@ -7,6 +7,7 @@ const codex = { defaultPort: 9335, lastVerified: { darwin: { appVersion: "26.707.72221", build: "5307", verifiedAt: "2026-07-16" }, + win32: { appVersion: "26.727.6591", build: "535", verifiedAt: "2026-08-01" }, }, rendererProfiles: { [codexThemeV1Profile.id]: codexThemeV1Profile, @@ -39,7 +40,7 @@ const codex = { // The root landmark is the only blocking check: it doubles as the // "app finished booting" signal and the minimal app fingerprint. Everything // else warns — the sidebar collapses, and CSS is inert on absent nodes. - rootAny: ["main.main-surface"], + rootAny: ["main.main-surface", "#root main"], recommended: [ { name: "sidebar", any: ["aside.app-shell-left-panel"] }, { name: "composer", any: [".composer-surface-chrome"] }, diff --git a/tests/adapters.test.mjs b/tests/adapters.test.mjs index 1017c12..62b87d6 100644 --- a/tests/adapters.test.mjs +++ b/tests/adapters.test.mjs @@ -30,7 +30,12 @@ test("Codex verification keeps only current cross-route landmarks", () => { build: "5307", verifiedAt: "2026-07-16", }); - assert.deepEqual(adapter.verification.rootAny, ["main.main-surface"]); + assert.deepEqual(adapter.lastVerified.win32, { + appVersion: "26.727.6591", + build: "535", + verifiedAt: "2026-08-01", + }); + assert.deepEqual(adapter.verification.rootAny, ["main.main-surface", "#root main"]); // Only the root landmark blocks: the sidebar collapses and other panels are // route-dependent, so every other landmark is warning-level. assert.equal(adapter.verification.required, undefined);