Skip to content

Main is red: settings registry check fails on the approval mode for new chats row #47829

Todo

Description

@bolichen97

[operator: bolichen97] Found on the merge ref of #47826, which touches no website/ or settings registry file.

Symptom

The frontend build fails on current main (74d0e37) before tsc runs:

> node scripts/gen-ui-index.mjs --check --warn-if-stale ...
gen-ui-index: 1 problem(s); the index was not written:
  settings-registry.generated.json does not match the live settings extraction; run npm run gen:settings

So Build / Build Wheel, Build / Build Desktop (ubuntu-22.04) and (ubuntu-22.04-arm), and both CI / E2E (stub ACP backend, offline) shards fail at npm run build, and CI / Frontend Tests fails settingsRegistry.test.ts "checked-in JSON matches live extraction". The one entry that differs is chat.approval-mode-for-new-chats: the live extraction writes "guidable": true on it, and the checked-in JSON leaves the flag off.

Cause

Two PRs merged 60 minutes apart, each green on its own base:

The gateway leaves the row out, so the checked-in JSON (no flag) is right. The browser rule is the one that lags.

Done when

  • npm run gen:settings leaves settings-registry.generated.json unchanged on main, and npm run build gets past gen-ui-index.
  • A guide link still cannot open chat.approval-mode-for-new-chats, in the gateway and in the tab.

Activity

  1. added
    tier:T1
    on Dec 5, 2026
  2. bolichen97 commented on Dec 5, 2026

    @bolichen97
    ContributorAuthor

    [operator: bolichen97] The same missing flag also fails two backend tests, so CI / Backend Tests (3.12, 3) is red on #47826 too (run 47534484817, job 145721126570), and Coverage Gate fails closed behind it:

    FAILED test/test_guide_link_routes.py::test_the_registry_flag_is_the_gateways_own_rule_for_every_setting - assert False
    FAILED test/test_guide_link_routes.py::test_every_setting_the_gateway_leaves_out_is_refused_and_has_no_fallback - KeyError: 'guidable'
    

    Both read the checked-in settings-registry.generated.json; on main at e392fe2, chat.approval-mode-for-new-chats is still the only one of its 376 entries with no guidable key. A fix that regenerates the registry should show these two tests green as well.

  3. bolichen97 commented on Dec 5, 2026

    @bolichen97
    ContributorAuthor

    [operator: bolichen97] Reproduced on Ubuntu 24.04 (x86_64) at main 74d0e37:

    • npm --prefix website run build exits 1 at gen-ui-index with the registry mismatch above.
    • settingsRegistry.test.ts "checked-in JSON matches live extraction" fails: the live extraction has "guidable": true on chat.approval-mode-for-new-chats.
    • test/test_guide_link_routes.py fails 2 of 27: test_the_registry_flag_is_the_gateways_own_rule_for_every_setting and test_every_setting_the_gateway_leaves_out_is_refused_and_has_no_fallback (KeyError: 'guidable', since the entry has no flag).
    • uiIndex.test.ts "wires the flag and the env into the real generator" (Frontend Tests shard 1) fails for the same reason: the real generator exits 1 on that mismatch.

    With the id added to LINK_EXCLUDED_IDS in website/src/guide/guideLinkRule.ts and "guidable": false on the entry, the build and the first two tests pass, and npm run gen:settings leaves the tree unchanged. The full gate run is still going; the PR follows.

  4. added
    P2
    on Dec 5, 2026
  5. amadsalmon commented on Dec 5, 2026

    @amadsalmon
    Member

    /claim

    Claiming this one and opening the fix PR now: add chat.approval-mode-for-new-chats to LINK_EXCLUDED_IDS in website/src/guide/guideLinkRule.ts, so the browser rule matches the gateway's _EXCLUDED_SETTING_IDS and the checked-in registry (no guidable flag) stays as it is. It blocks #46603.

  6. added
    claimed
    claim:outside
    on Dec 5, 2026
  7. KiroCrewCaptain commented on Dec 5, 2026

    @KiroCrewCaptain
    Collaborator

    Claimed by @amadsalmon. Our automation will leave this issue to you until 2026-12-12.

    Linking a pull request (a draft is fine) or pushing to it restarts the 7 days. Comment /claim extend once for 7 more days, or /unclaim to hand it back.

  8. bolichen97 commented on Dec 5, 2026

    @bolichen97
    ContributorAuthor

    [operator: bolichen97] #47844 makes the same fix: it adds chat.approval-mode-for-new-chats to LINK_EXCLUDED_IDS and writes "guidable": false on the entry, which is the JSON the generator writes. So no second PR will come from here.

    The same two-line change was also checked on Ubuntu 24.04 (x86_64). The build, settingsRegistry.test.ts and test/test_guide_link_routes.py pass, npm run gen:settings leaves the tree unchanged, and the static gates and semgrep are clean. The run was stopped before the frontend gates once #47844 appeared.

    This issue can close when #47844 merges.

  9. amadsalmon commented on Dec 5, 2026

    @amadsalmon
    Member

    Dropping my claim: #47844 makes the same fix, so no PR will come from me. #46603 rebases onto main once #47844 lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2claim:outsideclaimedtier:T1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions