Files
magpie/internal
yetone 41e330bdf8 gui: an agent's settings sheet opens from the panel again (#6139)
22f2759d7 (11-11, Settings › General › Sidebar pages) added
renderNavPages, which read $("#nav").querySelectorAll before it
looked at the mode. The panel has no #nav (app.js removes it), so
every Settings draw in the panel threw once navpages.js had loaded.
The second draw is the one openAgentPrefs waits on (loadSettings), so
in the panel the "Claude Code settings" and "Grok Build settings"
menu items opened nothing. #6139 was filed 46 minutes after
22f2759d7 and was seen again twice with no owner (#6311 its
duplicate).

renderNavPages now hides its row and returns before it reads #nav
outside a window. Its siblings (navHides, markNav, show) already
check mode === "window".

Found with a pageerror stack: "Cannot read properties of null
(reading 'querySelectorAll') at window.renderNavPages
(navpages.js:9)". agent-prefs' "in the panel a Settings line and the
agent's menu open its sheet" was red in both engines and all five
languages at 35aaaa4b9^, 35aaaa4b9, 8c7328f3a and origin/main
5f1a642b4^ (timeout at agent-prefs.test.cjs:192).

Run (mica, at this tree): node --test agent-prefs.test.cjs pass 56
fail 0 (both engines, every language), nav-pages-hidden pass 2,
i18n-keys pass 4.
2026-11-13 02:10:55 +08:00
..
…
…
…
…
…
…
…
…
…
…
…
…