Files
pad/internal/cli
xarmian 6e37c69934 test(cli): arm-state tests own the session pid env (BUG-4025) (#2298)
* test(cli): arm-state tests own the session pid env (BUG-4025, BUG-4057)

armStateTestEnv reset HOME and the messaging socket but not PAD_SESSION_PID
or CLAUDE_PID, which CaptureSessionOwner prefers over this process. A gate
inherits them from the harness that started it, and when that session is
relaunched mid-run the dead pid made TestArmState_HeadlessLivePid read
disarmed. The helper now clears both. TestArmStateTestEnv_IgnoresAmbientSessionPID
plants a dead pid first, so the guard holds in CI too, where CLAUDE_PID is
never set.

Claude-Session: https://claude.ai/code/session_01KYZ6vrKNro953q9kfdSGFd

* test(cli): put HeadlessLivePid's doc comment back on it (BUG-4025, r1)

Lead ruling on r1: the new test had been inserted between
TestArmState_HeadlessLivePid and its doc comment. Comment-only.

Claude-Session: https://claude.ai/code/session_01KYZ6vrKNro953q9kfdSGFd
2026-10-24 04:22:21 -04:00
..
2026-03-26 01:52:36 +00:00
2026-03-26 01:52:36 +00:00
2026-03-26 01:52:36 +00:00