Skip to content

themes: the bedroom sound mod test fails on Windows and blocks unrelated pushes #17823

Closed

Description

@kyle-sexton

Problem

On a Windows host, claude plugin test plugins/themes fails one test, and the pre-push check-affected job (its validate-plugins step runs every plugin's mod tests) then blocks pushes of branches that never touch plugins/themes.

hooks\bedroom\pieces\sound.test.ts:
(fail) in the plugin, sound off ends the playing child at once, and a change of weather, volume or recording swaps the loop
  Expected: /^sound is on, played by ffplay at volume 70/
  Received: "no player was found (looked for powershell.exe, ffplay, paplay, aplay on PATH; ...), so sound stays off"

87 pass, 1 fail, every run (3 of 3 in one session, reproduced again on a checkout of main at 34f4576). On main's CI, which runs on Linux, it passes.

What the test stubs

sound.test.ts lines 26-28 answer session.info with platform: 'linux', env.get('PATH') with /usr/bin, and fs.exists true only for /usr/bin/ffplay. sound.ts find() and onPath() build /usr/bin/ffplay from those answers, so with the stubs in force the player should be found. That it is not found on Windows suggests one of those stubs does not reach the engine there (for example, the real host PATH or filesystem answering instead). UNVERIFIED: not traced further.

Impact

A push from this Windows machine of a branch whose affected set includes this plugin's tests cannot pass the pre-push gate without a hook skip. Seen pushing fix/deepening-report-cards (#17798).

Done when

  • The test passes on a Windows host, or is marked platform-specific with the reason, and check-affected no longer blocks unrelated pushes from Windows.

Activity

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

    @github-actions
    Contributor

    Size: Small
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none
    Blast radius: the themes plugin's bedroom sound.test.ts and possibly sound.ts path lookup; anyone running the pre-push check-affected gate from a Windows host reads it.
    Reversible: yes; revert the test or source edit.
    Open questions: none

    I read this as a Windows-only failure in the themes bedroom sound test. The test stubs platform 'linux', PATH=/usr/bin and fs.exists for /usr/bin/ffplay, but on Windows the player lookup still reports no player, so the pre-push gate blocks pushes that never touch plugins/themes. The cause is untraced, as you note; reading how the stubs reach find() and onPath() on Windows should settle it (a path-separator or path.join difference is one possibility). The fix is either to make the test host-independent or to mark it platform-specific with the reason; both change only the test or its lookup helper.

    Confirming the pass on a Windows host is a step an unattended run cannot do; Linux CI alone will not show it.

    I found no open issue or merged PR that covers this. #17509 also concerns the themes bedroom but is about click areas in the shader source, so it is not a duplicate.

    Automated triage. A maintainer reviews it.

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

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; intake's refinement of this body is due and may supply them.

  5. melodic-automation-lanes commented on Nov 21, 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: The bedroom sound test passes on Windows hosts as well as Linux, or is skipped there with a stated reason, so check-affected no longer blocks unrelated pushes.

    Related work

    Open questions

    1. Why does the lookup find no player on Windows when the test stubs session.info, env.get and fs.exists? Does a stub fail to reach the engine, or does find() read something from the host such as the soundPlayer setting?
      RECOMMENDED: Trace it on a Windows host first: log the platform, PATH and fs.exists arguments that find() receives. If a stub is bypassed, fix how the test registers it. If a host setting is read, pin soundPlayer to empty in the test options. Basis: plugins/themes/hooks/bedroom/pieces/sound.ts:141-158 and plugins/themes/hooks/bedroom/pieces/sound.test.ts:26-28
    2. Should the fix make the test host-independent, or skip it on Windows with a reason?
      RECOMMENDED: Make it host-independent if the trace finds a fixable stub or setting. Skip on Windows only if the kit cannot stub the engine there, and give that reason in the skip. Basis: judgment
    3. How is the Windows pass confirmed, since Linux CI already passes and an unattended run cannot run Windows?
      RECOMMENDED: Make the Windows run of claude plugin test plugins/themes a check a person runs. The unattended run checks only that the Linux run still passes. Basis: judgment

    Sources read

    • plugins/themes/hooks/bedroom/pieces/sound.ts:135-158: onPath() and find() take platform from session.info, split PATH on ';' only when platform is windows, and look for players via fs.exists on dir/name
    • plugins/themes/hooks/bedroom/pieces/sound.ts:388-397: the 'no player was found' reply comes from engineCommand when find() returns undefined
    • plugins/themes/hooks/bedroom/pieces/sound.test.ts:26-28: stubs session.info platform linux, PATH /usr/bin, fs.exists true only for /usr/bin/ffplay
    • plugins/themes/hooks/bedroom/core/testing.ts:62-101: startRoom with fakes false registers no stub for session.info, env.get or fs.exists, so the test's own stubs are the only ones

    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.**.

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

    needs-owner-decision

    Priority

    high

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions