Commit 7ba94b9
committed
fix: isolate session and plugin-data env vars in tests
Three tests fail when CODEX_COMPANION_SESSION_ID is set in the
environment (e.g., inside a Claude Code session). The session filter
drops all test jobs because they lack a sessionId field. Similarly,
the resolveStateDir tmpdir test fails when CLAUDE_PLUGIN_DATA is set.
Strip CODEX_COMPANION_SESSION_ID from the subprocess env for tests
that don't exercise session filtering, and isolate CLAUDE_PLUGIN_DATA
in the state directory test.
Fixes 4 pre-existing test failures that appear when running tests
inside a Claude Code session.1 parent 594fd1e commit 7ba94b9
2 files changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
| 753 | + | |
| 754 | + | |
753 | 755 | | |
754 | | - | |
| 756 | + | |
| 757 | + | |
755 | 758 | | |
756 | 759 | | |
757 | 760 | | |
| |||
894 | 897 | | |
895 | 898 | | |
896 | 899 | | |
| 900 | + | |
| 901 | + | |
897 | 902 | | |
898 | | - | |
| 903 | + | |
| 904 | + | |
899 | 905 | | |
900 | 906 | | |
901 | 907 | | |
| |||
1017 | 1023 | | |
1018 | 1024 | | |
1019 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
1020 | 1028 | | |
1021 | | - | |
| 1029 | + | |
| 1030 | + | |
1022 | 1031 | | |
1023 | 1032 | | |
1024 | 1033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
17 | 28 | | |
18 | 29 | | |
19 | 30 | | |
| |||
0 commit comments