Skip to content

Incorporate verified upstream fixes (#1504, #1596, #1562)#6

Merged
ktenman merged 1 commit into
mainfrom
incorporate-upstream-1504-1596-1562
May 23, 2026
Merged

Incorporate verified upstream fixes (#1504, #1596, #1562)#6
ktenman merged 1 commit into
mainfrom
incorporate-upstream-1504-1596-1562

Conversation

@ktenman
Copy link
Copy Markdown
Owner

@ktenman ktenman commented May 23, 2026

Summary

Incorporates three fixes from obra/superpowers open PRs into this fork. Each was diff-reviewed against our current files and empirically verified before inclusion (not just trusted from the upstream description).

Files: server.cjs, start-server.sh, visual-companion.md, using-git-worktrees/SKILL.md, tests/brainstorm-server/server.test.js (+144/−13).

Test Plan

Notes

Internal incorporation PR against the fork — not a contribution to obra/superpowers. From the same triage, obra#1558 (ultrathink keyword) and obra#1097 (worktree timing) were evaluated and dropped: obra#1558 targets a non-existent problem (the keyword is lowercase/case-sensitive and fires on the user prompt) and obra#1097's worktree is created downstream at execution time by design.

…#1596, obra#1562)

Cherry-picks three verified fixes from obra/superpowers open PRs into the fork.

- obra#1504: guard handleMessage against null/primitive WebSocket payloads.
  JSON.parse('null') returns null; reading .choice on it threw a TypeError
  that escaped the socket 'data' handler and killed the server process.

- obra#1596: make the brainstorm server idle timeout configurable via
  --idle-timeout-minutes (BRAINSTORM_IDLE_TIMEOUT_MS) and raise the default
  from 30 minutes to 2 hours. Surface idle_timeout_ms in server-info.

- obra#1562: detect the package manager by lockfile in using-git-worktrees Step 3
  (pnpm/yarn/bun/npm for Node, uv/poetry/pip for Python) instead of running
  npm install / poetry install unconditionally.

Verified: brainstorm-server suite 32/32 green (includes new null-crash and
idle-timeout regression tests); --idle-timeout-minutes checked end-to-end
(5 -> 300000ms, default -> 7200000ms, 0/abc -> error + exit 1).
@ktenman ktenman merged commit 634ee1c into main May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant