feat: upgrade Spotlight agent selector & live step-trace AgentPlan UI (#399) #423
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 319 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #423"
general
weight: 0.35
qwts
Closes #399
Part of #394
Summary
AgentSpotlightBar(src/components/AgentSpotlightBar.jsx):- Adds a compact
<select id="agent-spotlight-select">bound to enabled agent profiles fromuseAgentConfigright after the query input so the#340focus trap continues landing focus on the input first.- Preserves Escape
stopPropagation(), scrim dismissal, focus restoration, and deferred 150ms exit (cutting immediately on bothprefers-reduced-motionanddata-ui-motion="reduce", with timer cleanup on unmount).- Adds an inline
role="alert"provider-readiness notice inside Spotlight when the chosen profile's effective provider is not ready, whileCmd/Ctrl+Kcontinues opening Spotlight whenever any enabled profile is configured (anyAgentConfigured).AgentPlan(src/components/AgentPlan.jsx+src/utils/agentSteps.js):- Renders in-flight
aria-live="polite"agent progress ({agent} · {step}…) with a Stop button wired touseAgentEngine.cancel().- Renders plain-text (
dir="auto", never HTML injection) replies/error summaries with dismiss controls, collapsible step traces showing localized canonical tool labels and outcome badges (Done,Staged for review,Skipped,Denied,Error), and legacy active filter projections with an independent Clear agent filter button.- Updated
src/index.csswith--ui-*tokens and logical RTL properties (padding-inline-start,margin-inline-start,text-align: start) while keepingsrc/index.css.test.jscoarse-pointer ordering intact.- Added stories (
AgentPlan.stories.jsx, updatedAgentSpotlightBar.stories.jsx), updatedDESIGN.md, added.changeset/spotlight-agent-ui.md, and added tests (src/utils/agentSteps.test.js,src/components/AgentPlan.test.jsx,src/components/AgentSpotlightBar.test.jsx,src/components/DialogEscape.test.jsx,src/components/BookmarkApp.shell.test.jsx).Verification
npm run cipassed cleanly locally (132test files /1657tests, ESLint--max-warnings=0, Prettier, Chrome build + chunk laziness check, Storybook build).<!-- agent-bot-write: ghw_256cfce24e1773f6 session=210bdd5e08f0 bot=trueline-antigravity-agent[bot] conversation_id=e99b26b3-53f9-4d7f-8337-fb33257bb240 conversation_id_source=self-reported -->