Components Context Management Context Scope Selector
CM04 · Context Management

Context Scope Selector

Purpose Controls allowing users to choose which workspace, folder, or data source the AI should operate within. A scope button in the prompt toolbar surfaces the current context and lets users switch it from a dropdown — without leaving the input.
Use when The AI can operate across multiple workspaces, projects, or folders and the user should choose which one is active before running.
Do not use When there is only one possible context source or the scope is fixed by the product. Do not add a scope selector as decoration when the selection has no real effect on AI behavior.
Failure mode prevented The AI operates on the wrong project or includes irrelevant data because the system defaults to "everything available" with no visible indication of what is in scope.
Example Dark Academia
Dark Academia
The Atelier
Neon Tide
The Archive
Candlelight
The Conservatory
scope-btn-dropdown — scope button in prompt toolbar that opens a dropdown picker; the primary patternscope-selector-panel — expanded panel with checkboxes for complex multi-source environmentsscope-selector-date-range — scopes context to a time window rather than a document set

Override these CSS custom properties to apply your own visual treatment without touching the component's behavioral contracts.

Shared semantic tokens

Token Controls
--rad-surface-card Dropdown background
--rad-border-subtle Dropdown border and divider
--rad-color-text-primary Item names, button label
--rad-color-text-secondary Folder icons
--rad-color-text-meta Paths, section headers, chevron
--rad-color-approve Focus rings
--rad-radius-card Dropdown corner radius

Component-scoped tokens

Token Controls
--rad-scope-btn-bg Scope button background
--rad-scope-btn-border Scope button border
--rad-scope-btn-hover-bg Scope button hover
--rad-scope-check-color Checkmark color on active item
--rad-scope-item-hover Item hover background
--rad-scope-item-active-bg Active item background

"*The AI should use what the user chose — not everything it can reach.*"

← Previous Active Memory Panel

Intellectual Property

RAD is the original work of Jackie Curry. All rights reserved. No portion may be reproduced, adapted, or incorporated into any product or system without express written permission.

Permitted: citation in academic or editorial contexts with full attribution.

Licensing

© 2025 Jackie Curry. All rights reserved. Publication date: 2025.

For licensing inquiries, connect on LinkedIn →