chore(web): narrow SCOPE_ORDER to 3 layers, drop builtin UI affordances #941
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#941
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a dashboard user, I want the agent-config scope ladder UI to stop showing a "Builtin" tier that the runtime no longer supports, so that the form options match what the API will accept.
After tracker #934's migration lands, every PUT that mentions
scope='builtin'returns a CHECK violation. Leaving the UI option in place creates phantom controls. The narrowing also simplifiesanchored-scope.tsand the MCP-tab read-only branch.Acceptance criteria
SCOPE_ORDERapps/web/src/features/agent-config/scope-ladder.tsx: drop"builtin"from theSCOPE_ORDERarray and fromSCOPE_LABEL. Resulting order:["global", "agent_type", "instance"]."builtin"(acase "builtin":branch inmcp-tab.tsx, the<option value="builtin">element, the read-only-when-builtin guard).anchored-scope.tsapps/web/src/features/agent-config/anchored-scope.ts:43-45and from the implementation. Updated ladders:instance → agent_type (matching type) → globalagent_type → globalglobal(no further fallback)Service-config UX
apps/web/src/routes/$locale/settings.service.tsx: replace "Reset all to builtin" with "Reset to factory defaults". Wire the buttons to the newPOST /api/service-config/reset-defaultsendpoint.Fields reset to builtin→Reset to factory defaults, etc.).scopes={["builtin", "global"]}array argument and thereadOnly={new Set(["builtin"])}props.Tests
mcp-tabandsettings.service(no"builtin"option rendered, factory-reset button calls the new endpoint).just qagreen.Out of scope
POST /service-config/reset-defaultsstory.References
apps/web/src/features/agent-config/scope-ladder.tsx,apps/web/src/features/agent-config/anchored-scope.ts,apps/web/src/features/agent-config/mcp-tab.tsx,apps/web/src/routes/$locale/settings.service.tsx,apps/web/src/routes/$locale/agents.$type.{index,$instance}.tsx