You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(CLAUDE): Add critical warnings about Server() in doctests
Document the dangerous pattern where creating Server() directly in
doctests causes the user's tmux session to be killed:
1. conftest.py:44 overwrites Server with TestServer factory
2. TestServer tracks ALL created servers via on_init callback
3. TestServer finalizer kills ALL tracked servers at test suite end
4. socket_name="default" → kills user's actual tmux session!
Added warnings in two sections:
- Doctest Integration: Explains the root cause and safe patterns
- Writing Tests: Quick reference for test authors
This prevents the critical bug where running `uv run pytest` from
inside tmux would kill the user's session.
0 commit comments