feat(playground): settings popover + logout#1
Merged
Conversation
Adds a settings popover (model, layout, logout) to the playground. Captures DOM/CSS layout-preset strategy, localStorage schema, and the Basic Auth poison-cache logout flow before implementation.
11 TDD-style tasks covering vitest scope, settings data layer, model resolution helper, agent model override, logout endpoint, layout DOM/CSS, resize engine, popover UI, request body wiring, logout flow, and the final ship gate.
…blocked contexts readSettings() called localStorage.getItem directly for three top-level keys, which throws SecurityError in private browsing or when storage is disabled by site settings. Wrap in a small getItem helper so readSettings degrades to defaults instead of crashing applyLayout on load.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a ⚙️ gear in the playground header that opens a popover with three sections:
Custom…free-text. Sent in every/api/agentPOST; server validates viaresolveModelregex and falls back toAI_MODELenv./api/logout(401), poisons Chrome's Basic Auth cache, reloads.Spec:
docs/superpowers/specs/2026-04-22-settings-and-logout-design.mdPlan:
docs/superpowers/plans/2026-04-22-settings-and-logout.mdTest plan
bun run lintclean (biome)bun run typecheckcleanbun run test— 92 passed (new: 5 settings + 7 resolveModel + 1 private-mode storage)bun run build— library tsup build cleanbun run playground:build— vite build cleanBASIC_AUTH_PASSset — confirm browser re-prompts