Skip to content

fix(ws): resolve auth deadlock and binary frame handling#3

Merged
maczg merged 5 commits into
mainfrom
hotfix/fix-websocket-client
Feb 26, 2026
Merged

fix(ws): resolve auth deadlock and binary frame handling#3
maczg merged 5 commits into
mainfrom
hotfix/fix-websocket-client

Conversation

@maczg
Copy link
Copy Markdown
Owner

@maczg maczg commented Feb 26, 2026

Summary

  • Start receive loop before _authenticate() to prevent deadlock where auth responses are never processed
  • Skip binary WebSocket frames in _receive_loop and pass text messages directly without str() wrapping
  • Migrate .claude/commands/ templates from npm/Node.js to Python tooling (pytest, pyproject.toml)

Test plan

  • 15 new unit tests added covering event emitter, auth flow, binary frame skipping, disconnect, and error paths
  • All tests passing locally (pytest tests/unit/test_ws_client.py — 15/15)

… client

- Start receive loop before _authenticate() so auth responses are
  processed instead of deadlocking
- Skip binary WebSocket frames in _receive_loop and pass text messages
  directly without str() wrapping
- Add 15 unit tests covering event emitter, auth flow, binary frame
  skipping, disconnect, and error paths
…on bug

- Replace npm/package.json references with pytest/pyproject.toml across
  all Git Flow command files (hotfix, release, finish, flow-status)
- Fix $() command substitution in !-backtick lines that broke command
  execution
- Update .gitignore to exclude underscore-prefixed notebooks
- Update IDE configuration
- E731: replace lambda assignment with def
- F841: remove unused variable original_authenticate
- SIM117: combine nested with statements
@maczg maczg merged commit 775e758 into main Feb 26, 2026
5 checks passed
@maczg maczg deleted the hotfix/fix-websocket-client branch February 26, 2026 21:22
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