You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Main is red: settings registry check fails on the approval mode for new chats row #47829
P2P2: broken, but a workaround exists or few users are hitclaim:outsideClaimed by an outside contributor with /claimclaimedAn automated fix is in progresstier:T1Bug: behaviour does not match intent; fix keeps the design
[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:
feat(guide): open a guide link's place in one press #47580 (753020c) added website/src/guide/guideLinkRule.ts. Its LINK_EXCLUDED_IDS copies the gateway's _EXCLUDED_SETTING_IDS in src/kiro_crew/guide_catalog.py, and npm run gen:settings writes the guidable flag from it.
feat: add an approval mode for new chats row to chat settings #42608 (695f379) added the Approval Mode for New Chats row and kept agent guides off it: it added the id to _EXCLUDED_SETTING_IDS and to SENSITIVE_IDS in website/src/guide/findTargetPolicy.ts. Its base did not have guideLinkRule.ts, so LINK_EXCLUDED_IDS never got the id.
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.
[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:
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.
[operator: bolichen97] Reproduced on Ubuntu 24.04 (x86_64) at main74d0e37:
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.
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.
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.
[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.
P2P2: broken, but a workaround exists or few users are hitclaim:outsideClaimed by an outside contributor with /claimclaimedAn automated fix is in progresstier:T1Bug: behaviour does not match intent; fix keeps the design
Activity
bolichen97 commentedon Dec 5, 2026
[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), andCoverage Gatefails closed behind it:Both read the checked-in
settings-registry.generated.json; onmainat e392fe2,chat.approval-mode-for-new-chatsis still the only one of its 376 entries with noguidablekey. A fix that regenerates the registry should show these two tests green as well.bolichen97 commentedon Dec 5, 2026
[operator: bolichen97] Reproduced on Ubuntu 24.04 (x86_64) at
main74d0e37:npm --prefix website run buildexits 1 atgen-ui-indexwith the registry mismatch above.settingsRegistry.test.ts"checked-in JSON matches live extraction" fails: the live extraction has"guidable": trueonchat.approval-mode-for-new-chats.test/test_guide_link_routes.pyfails 2 of 27:test_the_registry_flag_is_the_gateways_own_rule_for_every_settingandtest_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_IDSinwebsite/src/guide/guideLinkRule.tsand"guidable": falseon the entry, the build and the first two tests pass, andnpm run gen:settingsleaves the tree unchanged. The full gate run is still going; the PR follows.amadsalmon commentedon Dec 5, 2026
/claim
Claiming this one and opening the fix PR now: add
chat.approval-mode-for-new-chatstoLINK_EXCLUDED_IDSinwebsite/src/guide/guideLinkRule.ts, so the browser rule matches the gateway's_EXCLUDED_SETTING_IDSand the checked-in registry (noguidableflag) stays as it is. It blocks #46603.KiroCrewCaptain commentedon Dec 5, 2026
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 extendonce for 7 more days, or/unclaimto hand it back.bolichen97 commentedon Dec 5, 2026
[operator: bolichen97] #47844 makes the same fix: it adds
chat.approval-mode-for-new-chatstoLINK_EXCLUDED_IDSand writes"guidable": falseon 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.tsandtest/test_guide_link_routes.pypass,npm run gen:settingsleaves 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.
amadsalmon commentedon Dec 5, 2026
Dropping my claim: #47844 makes the same fix, so no PR will come from me. #46603 rebases onto main once #47844 lands.