Repository navigation
feat(themes): add the themes plugin with the bedroom theme - #17497
Conversation
A theme mod whose backdrop is a teenager's bedroom at dusk, drawn as one SVG with a lighting shader at 30 frames a second; clicks on the television, VCR, console, computer and lights are answered by the shader, and /bedroom switches, dims, titles and calibrates it. The published defaults are made up: plain posters, a made-up team on the pennant, and the titles FAR MERIDIAN and ROOFTOP, which /bedroom title replaces locally. The TV sound call and its sound files are left out, so the mod is silent. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d variable Co-Authored-By: Claude Opus 5.5 <[email protected]>
… generated shader excluded Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 547eb216ba
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review: PR #17497, incremental since
|
|
claude-review reviewed Code review:
|
The plugin becomes `themes`, a home for desktop backdrop themes, with bedroom as its first theme under hooks/bedroom/ and a thin top-level module that registers it. The bedroom's store key is now bedroom:saved. /bedroom title pennant and /bedroom title pennant-top set the pennant's two lines, in capitals, capped at 12 and 16 characters; with no text they go back to the made-up default. The room is byte-identical to the previous head when no pennant title is set. Review fixes: - re-seed the shader's switch values from the saved state when it starts again after drawing the room alone (Codex) - a click on overlapping hit areas records every switch the shader flips (Codex, claude-review) - titles are substituted with replacer functions, so a $ is literal (claude-review) - no telemetry.json writes; stats stay in memory (claude-review) - the shader is spell-checked again, with its two short identifiers listed in _typos.toml (claude-review) - hooks.json carries a description (Check Plugins) Co-Authored-By: Claude Opus 5.5 <[email protected]>
_typos.toml is synced from the standards repository, so PR Check Managed Files refuses an edit to it. The shader's two short identifiers are instead exempted on the four lines that use them with spellchecker:disable-line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…l check thw becomes thalf and k_ba becomes k_band, on the four lines that use them, so the shader needs no spellchecker marker. claude plugin validate reports the same compiled shader (3402 steps, 7799 bits). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…evision that reacts to Claude and sound (#17675) No related issue: the next step for the bedroom theme after #17497 and #17528. ## Summary The bedroom theme gains time of day, weather, a hallway outside the door, a television that reacts to Claude working, and sound (off by default). The settings card gains controls for them. Draft on purpose: the owner is hand-testing this build in the desktop app, and more fixes to the sound and the outdoor art follow on this branch before it is marked ready. ## Fix - Time of day: the room follows the local clock (`/bedroom time auto`), or holds one of eight named hours. The view outside the window keeps the dusk scene's shapes at every hour, with a moon and stars at night. - Weather: clear, overcast, rain, downpour and storm in the window, each a different weight; `auto` changes every three hours and never picks a storm. `/bedroom weather strike` forces one lightning pulse in a storm. - Hallway: a passer-by's shadow crosses the door's gap now and then, and a hall light comes on some evenings. `/bedroom hall pass` and `/bedroom hall light` trigger them. - The television dims and flickers slightly while a turn runs (`/bedroom signal`). - Sound, off by default (`/bedroom sound on`): cicadas in dry weather from dusk through night, rain, downpour and storm beds, thunder, and the television's switch. One looping player per bed that stops at once; a volume setting; two recordings per kind to choose between. Each recording's source and licence statement is in `plugins/themes/sounds/bedroom/SOURCES.md`. - The wall switch's lever shows the ceiling light's state. - The shader's dusk reads more of the furniture in shadow, and the desk lamp lights part of the desk. - The card: six rows, the time row in order through the day, a `titles` toggle for the title fields, volume steps, and no shader button. - The code moves under `hooks/bedroom/core` and `hooks/bedroom/pieces`. `lights.ts` is generated and excluded from the size check. - Settings saved by 0.2.1 under `bedroom:saved` load unchanged. ## Verification - `claude plugin test plugins/themes`: 88 pass, 0 fail. - `claude plugin validate plugins/themes`: passes with warnings; shader cost 2.25 ms a frame and 2.49 ms the first frame. - `scripts/check-affected.sh`: 17 passed, 3 skipped. - Hand-tested by the owner in the desktop app on this head: time of day, the hallway triggers, the wall switch, evening and night, and the default cicadas accepted. - Known and still open on this branch: the daytime trees read as flat; the downpour and storm beds sound too close; one-shot sounds play late; the titles row overflows the card's width; no card buttons yet for the three triggers; thunder does not yet follow a forced strike. ## Related - #17497 - #17528 - #17575 - #17509 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: publishes an owner-built desktop mod as a new plugin, ahead of a demo.
Summary
Adds
themes, a home for backdrop themes for the Claude Code desktop app. Its first theme, bedroom, is a dark theme whose backdrop is a teenager's bedroom at dusk, drawn as one SVG with a lighting shader at 30 frames a second. Clicks on the television, VCR, console, computer and lights are answered by the shader without sending the room again, and/bedroomswitches, dims, titles and calibrates it. The plugin installs disabled (defaultEnabled: false), because the backdrop takes over the window. More bedrooms, one per decade, are planned as further themes in the same plugin.This is the owner-accepted build of the mod as it runs today, published with made-up defaults in place of anything personal or real-world.
Fix
plugins/themes/hooks/register.tsx: the modulehooks.jsonloads; it registers the bedroom theme. Each theme's own files sit in their own folder, so a second theme adds a folder without moving these.plugins/themes/hooks/bedroom/: the bedroom's module, scene parts, shader and tests, unchanged in behaviour except:/bedroom postersaccepts onlyplain), and the cat's name in the click toast. The console and tape titles default to FAR MERIDIAN and ROOFTOP and the pennant to LANTERN HILL NIGHTJARS, all made up;/bedroom title console|tape|pennant|pennant-top <text>sets your own, kept in the plugin's local store underbedroom:saved. The pennant's lines are written in capitals and capped at 12 characters (big line) and 16 (top line), what the taper fits at the drawn size; every title is escaped for the SVG.$in a title is written as typed; the module writes notelemetry.json(its render counts stay in memory for/bedroom stats).lights.ts(built from a GLSL source by a build script outside this repository) andmake-colors.js(Anthropic's theme helper, which the built-inplugin-authoringskill says to copy unchanged) carry an@generatedmarker. The shader is spell-checked with no suppression: six comment words use US spelling and two locals are renamed (thwtothalf,k_batok_band);claude plugin validatereports the same compiled shader. The GLSL source needs the same edits before the next regeneration.hooks/hooks.jsoncarries the description the hooks-description check asks for.0.0.0with a minor fragment in.changes/themes/, header-onlyCHANGELOG.md, README with the install lines, requirements and the/bedroomcommands; marketplace entry,docs/catalog.mdline andscripts/fragment-plugins.txtregistration.Verification
547eb216ba. Rendered with headless Chromium, a 12-character pennant line and a 16-character top line both sit inside the taper.claude plugin test plugins/themes: 8 pass, 0 fail (overlapping clicks, pennant set, reset, capitals and cap, escaping of all four titles,$in a title).claude plugin validate plugins/themes(2.1.328): passed with warnings, the same TypeScript warning kinds as before plus one for the new top-level import, and ICON_MISSING.claude plugin validate --stricton the repository root: passed._typos.toml: clean, with no suppression in the shader.Related
None: the first release of this plugin. A user who already runs a local mod that registers
/bedroomshould turn it off before enabling this one; settings from such a mod do not carry over.🤖 Generated with Claude Code