Skip to content

themes: make the bedroom's click areas disjoint in the shader source #17509

Closed as not planned

Description

@kyle-sexton

Problem

In the themes plugin's bedroom theme, three click areas overlap, so one click flips two switches:

  • console [1298,490,46,118] and the tape spine [1337,533,21,69]: x 1337-1344, y 533-602. A click on the console's right edge also starts the tape.
  • lava [1358,470,42,136] and light [1398,468,34,50]: x 1398-1400, y 470-518.
  • spine and lava share the edge x = 1358 (both tests are inclusive).

PR #17497 made the module record every switch the shader flips (switchesAt in plugins/themes/hooks/bedroom/register.tsx), so the saved state now matches the picture. The overlap itself is still there.

Why it is not fixed in the PR

The rectangles live in two places: HITS in plugins/themes/hooks/bedroom/scene/lib.ts and the HIT/HIT2 tables in plugins/themes/hooks/bedroom/lights.ts. lights.ts is generated from a GLSL source that is not in this repository, so its tables cannot be edited here without the next regeneration undoing it.

Done when

  • The GLSL source's tables and HITS are disjoint, for example console width 46 -> 38 (ends at 1336), spine width 21 -> 20 (ends at 1357), lava width 42 -> 39 (ends at 1397), and lights.ts is regenerated.
  • A test in register.test.tsx asserts that no two HITS rectangles intersect.

Activity

  1. added
    needs-triage
    on Nov 19, 2026
  2. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the bedroom theme's GLSL source and the generated lights.ts in the themes plugin; whoever regenerates the shader and anyone who uses the theme.
    Reversible: yes; revert the width edits and regenerate.
    Open questions: none

    Decision recorded. Done-check against #18032 (merged 2026-11-21) and answers to the refinement:

    • Done on main: HITS in scene/lib.ts uses the example widths (console 38, spine 20, lava 39); the HIT/HIT2 tables in lights.ts were edited to match; register.test.tsx asserts no two HITS rectangles meet, and plugins/themes/tests/shader-hits.test.sh asserts each shader row equals its HITS rectangle.
    • Q1: the GLSL source is not in this repository (git ls-files holds no lights.glsl and no glsl2dsl.mjs; lights.ts line 1 says it is generated from them), so no lane run can reach it.
    • Q2: moot; fix(themes): make the bedroom's click areas disjoint and show a covered room on the card #18032 kept both tables in step.
    • Q3: the example widths were used.

    What is left needs the GLSL source, so it goes to the host queue (host-run):

    • A person with the GLSL source sets the same three widths there and regenerates lights.ts, and shader-hits.test.sh still passes on the regenerated file.

    #17509 (comment)

    This settles the open questions. #18032 already covers the in-repo part. The one step left, editing the GLSL source and regenerating, can't be done by an unattended lane run, so it stays with the host-run queue.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 19, 2026
  4. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  5. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Shrink the console, spine and lava rectangles so no two bedroom click areas intersect in HITS and in the lights.ts tables, and add a register.test.tsx test asserting HITS rectangles are disjoint.

    Open questions

    1. Where is the GLSL source that generates lights.ts, and can an unattended run reach it and run the regeneration?
      RECOMMENDED: Treat the GLSL edit and regeneration as a step for a person, and limit the lane run to the HITS edit and the test, with a note that lights.ts still overlaps until then. Basis: judgment: the issue and triage both say the source is not in this repository.
    2. Is an HITS-only change acceptable, given that HITS and the lights.ts HIT/HIT2 tables would then disagree until regeneration?
      RECOMMENDED: No. Keep both in step: change HITS and lights.ts together, or hold the HITS edit until the source is reachable. Basis: judgment: the issue says a hand edit to lights.ts is undone by the next regeneration.
    3. Are the example widths (console 38, spine 20, lava 39) required, or may any disjoint set be used?
      RECOMMENDED: Use the example widths, since they end at 1336, 1357 and 1397 without overlap and the new test then checks the result. Basis: judgment: the triage comment calls them examples.

    Sources read

    • /home/runner/work/claude-code-plugins/claude-code-plugins/refine-data/context.json: the issue body, triage comment and candidate list. No candidate is a duplicate or a fix.
    • plugins/themes/hooks/bedroom/scene/lib.ts, register.tsx, lights.ts and register.test.tsx: not read. The .base checkout has no plugins/themes files, so I could not cite what they say now.

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  6. added
    host-run
    on Nov 22, 2026
  7. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Done-check against #18032 (merged 2026-11-21) and answers to the refinement:

    • Done on main: HITS in scene/lib.ts uses the example widths (console 38, spine 20, lava 39); the HIT/HIT2 tables in lights.ts were edited to match; register.test.tsx asserts no two HITS rectangles meet, and plugins/themes/tests/shader-hits.test.sh asserts each shader row equals its HITS rectangle.
    • Q1: the GLSL source is not in this repository (git ls-files holds no lights.glsl and no glsl2dsl.mjs; lights.ts line 1 says it is generated from them), so no lane run can reach it.
    • Q2: moot; fix(themes): make the bedroom's click areas disjoint and show a covered room on the card #18032 kept both tables in step.
    • Q3: the example widths were used.

    What is left needs the GLSL source, so it goes to the host queue (host-run):

    • A person with the GLSL source sets the same three widths there and regenerates lights.ts, and shader-hits.test.sh still passes on the regenerated file.
  8. updated Work status needs-triage and Priority medium on Nov 22, 2026
  9. kyle-sexton commented on Nov 23, 2026

    @kyle-sexton
    MemberAuthor

    Closing as covered by #17497, on the owner's decision (2026-11-22 ~8:2x PM EST, typed in session efebda6d: "go with recommendations", option C).

    #17497 records every switch the shader flips (switchesAt in plugins/themes/hooks/bedroom/register.tsx), so the saved state matches the picture. The overlap left is a few pixels on three edges. Removing it needs the GLSL source that generates lights.ts, which is not in this repository; editing the generated tables here would be undone on the next regeneration.

  10. removed
    host-run
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions