<feed xmlns='http://www.w3.org/2005/Atom'>
<title>superpowers.git/tests, branch fix/windows-bash-discovery</title>
<subtitle>Agentic skills framework and development workflow
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/'/>
<entry>
<title>test(hooks): cover planted where, special and non-ASCII PATH entries, extensionless bash, unset SystemRoot</title>
<updated>2026-09-26T20:03:12+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-26T20:03:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=f126394c48a6b28c2c75138c16875a1830ec2d77'/>
<id>f126394c48a6b28c2c75138c16875a1830ec2d77</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test(hooks): cover the WindowsApps WSL stub</title>
<updated>2026-09-26T19:58:26+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-26T19:58:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=e3ccfeed92729a54aef5df909ece2ea8dc772aae'/>
<id>e3ccfeed92729a54aef5df909ece2ea8dc772aae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(hooks): run-hook.cmd finds per-user Git, skips WSL stubs and the current directory, keeps the exit code</title>
<updated>2026-09-26T19:58:06+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-26T19:58:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=5c9dbce021a2819a918fa9f39dbb246dcf30ec71'/>
<id>5c9dbce021a2819a918fa9f39dbb246dcf30ec71</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test(hooks): cover run-hook.cmd bash discovery and exit code on Windows</title>
<updated>2026-09-26T19:57:24+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-26T19:56:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=346fec12aafb23708283f268ad57f328bcd4c902'/>
<id>346fec12aafb23708283f268ad57f328bcd4c902</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(hooks): make SessionStart hooks resolve without external PATH lookups (#2349)</title>
<updated>2026-09-26T19:48:28+00:00</updated>
<author>
<name>ada-sen</name>
<email>ada.sen@primeradiant.com</email>
</author>
<published>2026-09-26T19:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=0a8cefe3e3db5c9abd9ebe11b836b829baad1466'/>
<id>0a8cefe3e3db5c9abd9ebe11b836b829baad1466</id>
<content type='text'>
* fix(hooks): make SessionStart hooks resolve without external PATH lookups

SessionStart:startup hooks can run before Claude Code's PATH is repaired
(anthropics/claude-code#43127), or ahead of a sibling PATH-fixing hook in
the same startup batch. hooks/session-start and the Unix half of
hooks/run-hook.cmd both shelled out to dirname, cat, and a PATH lookup for
bash itself, so an empty PATH made every SessionStart hook fail outright:

  hooks/session-start: line 7: dirname: command not found
  hooks/session-start: line 44: cat: command not found

None of those external calls are necessary:
- ${0%/*} replaces $(dirname "$0") for both scripts.
- ${BASH:-bash} replaces a bare 'bash' in run-hook.cmd's exec — bash always
  sets $BASH to its own absolute path once running, so no PATH lookup is
  needed to re-invoke it.
- $(&lt;file) (a bash builtin) replaces 'cat file' for reading the skill body.
- The trailing '| cat' after each printf branch was a no-op pass-through
  through another external binary; removed.

Adds a regression test in tests/hooks/test-session-start.sh that invokes
both hooks under an empty PATH.

Fixes #2310.

* Split $0 on / or \ so cmd-dispatched hooks find the plugin root

run-hook.cmd's Windows half starts bash with a backslash path
(C:\...\hooks\session-start). ${0%/*} found no slash there, so
session-start resolved the wrong plugin root and injected 'Error
reading using-superpowers skill' instead of the skill. MSYS dirname
handled backslashes, so dev was fine. Seen on Windows 11 + Git Bash
5.2.37 via cmd /c run-hook.cmd session-start.

---------

Co-authored-by: Jesse Vincent &lt;jesse@primeradiant.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fix(hooks): make SessionStart hooks resolve without external PATH lookups

SessionStart:startup hooks can run before Claude Code's PATH is repaired
(anthropics/claude-code#43127), or ahead of a sibling PATH-fixing hook in
the same startup batch. hooks/session-start and the Unix half of
hooks/run-hook.cmd both shelled out to dirname, cat, and a PATH lookup for
bash itself, so an empty PATH made every SessionStart hook fail outright:

  hooks/session-start: line 7: dirname: command not found
  hooks/session-start: line 44: cat: command not found

None of those external calls are necessary:
- ${0%/*} replaces $(dirname "$0") for both scripts.
- ${BASH:-bash} replaces a bare 'bash' in run-hook.cmd's exec — bash always
  sets $BASH to its own absolute path once running, so no PATH lookup is
  needed to re-invoke it.
- $(&lt;file) (a bash builtin) replaces 'cat file' for reading the skill body.
- The trailing '| cat' after each printf branch was a no-op pass-through
  through another external binary; removed.

Adds a regression test in tests/hooks/test-session-start.sh that invokes
both hooks under an empty PATH.

Fixes #2310.

* Split $0 on / or \ so cmd-dispatched hooks find the plugin root

run-hook.cmd's Windows half starts bash with a backslash path
(C:\...\hooks\session-start). ${0%/*} found no slash there, so
session-start resolved the wrong plugin root and injected 'Error
reading using-superpowers skill' instead of the skill. MSYS dirname
handled backslashes, so dev was fine. Seen on Windows 11 + Git Bash
5.2.37 via cmd /c run-hook.cmd session-start.

---------

Co-authored-by: Jesse Vincent &lt;jesse@primeradiant.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>fix(executing-plans): task-done no longer aborts when a passing test prints nothing (#2388)</title>
<updated>2026-09-26T19:36:39+00:00</updated>
<author>
<name>ada-sen</name>
<email>ada.sen@primeradiant.com</email>
</author>
<published>2026-09-26T19:36:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=907ad21ac21d0159ac3625c67537634bcb928c24'/>
<id>907ad21ac21d0159ac3625c67537634bcb928c24</id>
<content type='text'>
Under `set -euo pipefail`, task-done extracted the ledger's test-result
field with:

    last=$(grep -v '^[[:space:]]*$' "$log" | tail -n 1)

When the test command passes but the log is empty or blank-only, `grep -v`
matches no lines and exits 1; pipefail propagates that through the
pipeline, and set -e aborts the assignment before the ledger line is
written. A passing task is then silently not recorded: exit 1, no stderr,
no ledger entry — indistinguishable from the failure path the guard exists
to produce.

Make the no-match case non-fatal, falling back to a literal placeholder for
the ledger field:

    last=$(grep -v '^[[:space:]]*$' "$log" | tail -n 1) || last="(no output)"

The failure guard above this line (recording nothing when the test command
itself exits non-zero) is untouched.

Fixes #2385.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Under `set -euo pipefail`, task-done extracted the ledger's test-result
field with:

    last=$(grep -v '^[[:space:]]*$' "$log" | tail -n 1)

When the test command passes but the log is empty or blank-only, `grep -v`
matches no lines and exits 1; pipefail propagates that through the
pipeline, and set -e aborts the assignment before the ledger line is
written. A passing task is then silently not recorded: exit 1, no stderr,
no ledger entry — indistinguishable from the failure path the guard exists
to produce.

Make the no-match case non-fatal, falling back to a literal placeholder for
the ledger field:

    last=$(grep -v '^[[:space:]]*$' "$log" | tail -n 1) || last="(no output)"

The failure guard above this line (recording nothing when the test command
itself exits non-zero) is untouched.

Fixes #2385.</pre>
</div>
</content>
</entry>
<entry>
<title>test(brainstorm-server): stop orphaning the server when a test fails</title>
<updated>2026-09-26T19:32:23+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-26T19:32:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=bccb109316827b98f7c8676db1140cedbc207394'/>
<id>bccb109316827b98f7c8676db1140cedbc207394</id>
<content type='text'>
process.exit(1) ran inside the try, so the finally that kills the
spawned server never ran. The leftover server held port 3334 and the
next run died with 'preferred port is in use'. Set process.exitCode
instead so teardown runs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
process.exit(1) ran inside the try, so the finally that kills the
spawned server never ran. The leftover server held port 3334 and the
next run died with 'preferred port is in use'. Set process.exitCode
instead so teardown runs.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(brainstorming): preserve literal content replacement tokens (#2364)</title>
<updated>2026-09-26T19:28:21+00:00</updated>
<author>
<name>落尘</name>
<email>cuidong111@gmail.com</email>
</author>
<published>2026-09-26T19:28:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=ddd35ab181073c792781bcdfd646d73cf48e4d44'/>
<id>ddd35ab181073c792781bcdfd646d73cf48e4d44</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert movie skill import (#2214) (#2335)</title>
<updated>2026-09-18T21:27:57+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@ritter.dev</email>
</author>
<published>2026-09-18T21:27:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=b5d94eb0ae56250a73f7af6582b23946ff84230f'/>
<id>b5d94eb0ae56250a73f7af6582b23946ff84230f</id>
<content type='text'>
Remove the proving-it-works-with-a-movie import at Drew Ritter’s request because its code quality does not meet the release bar.

Reverts merge dd53fe0b57223bbbbb8ceae0bda2ba8a26d1c29a and the dependent movie test adjustment in 3979a17bda8691d72bfc5963e5437174c399db67. Remove the later Muse registration and update the unreleased notes so neither advertises the removed skill. Version changes are left for a separate release step.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the proving-it-works-with-a-movie import at Drew Ritter’s request because its code quality does not meet the release bar.

Reverts merge dd53fe0b57223bbbbb8ceae0bda2ba8a26d1c29a and the dependent movie test adjustment in 3979a17bda8691d72bfc5963e5437174c399db67. Remove the later Muse registration and update the unreleased notes so neither advertises the removed skill. Version changes are left for a separate release step.</pre>
</div>
</content>
</entry>
<entry>
<title>test(movie): expect 8 frames from the slow-capture film test (#2329)</title>
<updated>2026-09-18T18:30:01+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-09-18T18:30:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=3979a17bda8691d72bfc5963e5437174c399db67'/>
<id>3979a17bda8691d72bfc5963e5437174c399db67</id>
<content type='text'>
42486db made film() fill every grid slot before the endpoint, but this
test kept its old count of 7. Its fake clock advances 0.01 s per capture
and 0.02 s per sleep, so the prompt is seen at 1.01 s, the 0.4 s hold
ends at 1.41 s, and slots 0.0-1.4 s make 8 frames. The test has failed
on every run since 42486db.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
42486db made film() fill every grid slot before the endpoint, but this
test kept its old count of 7. Its fake clock advances 0.01 s per capture
and 0.02 s per sleep, so the prompt is seen at 1.01 s, the 0.4 s hold
ends at 1.41 s, and slots 0.0-1.4 s make 8 frames. The test has failed
on every run since 42486db.</pre>
</div>
</content>
</entry>
</feed>
