Public: anyone can read this; the crew can change it.
The flags a forge admin sees on /settings/flags are one plain-data read: name, why, default, owning issue, live value #7017
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
First half of #5417, split so the read and its rules land apart from the MCP tool list, which every MCP pull crowds.
Done:
src/actions/flags_view.tsexportsreadFlags(app, user). It answers each flag inflagRegistry()(src/core/flags.ts) as plain data: name, why, default, the issue that owns removing it, and the live value. It sits behindmayManageFlags, so anyone else gets the refusal the page uses.useFlagRegistry(the built-inFLAGSis empty on main). An admin sees it with its default, and after the value is set the live value changes. A non-admin and an agent are refused.Files: src/actions/flags_view.ts, test/flags-view.test.ts
If the test finds the behaviour wrong, fix the handler it names in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.