Repository navigation
Commit df75d2b
authored
fix: leave codex exec runs out of the session list without sessionIndex (spacering-net#639)
## Problem
A client without the `sessionIndex` extension gets its `session/list`
rows from `thread/list` with an explicit `sourceKinds` list. That list
included `exec`, so every `codex exec` and `codex review` run showed as
a chat row in the client. Users who run `codex review` saw their session
list fill up with review runs.
## Change
- The fallback `sourceKinds` no longer contains `exec`.
- The `sessionIndex` path already sends `sourceKinds: []`, which Codex
reads as the interactive sources. The Codex TUI does the same.
- The list test and two file snapshots now expect the list without
`exec`.
## Tests
- `tsc --noEmit` is clean.
- The `list-sessions`, `session-lifecycle-v2` and `session-index` tests
pass, except three `_session/list/subscribe` tests. These three also
fail on `main` on Windows, so this change does not cause them.1 parent 7c761c7 commit df75d2b
4 files changed
Lines changed: 1 addition & 5 deletions
File tree
- src
- __tests__/CodexACPAgent
- data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
| 1300 | + | |
1300 | 1301 | | |
1301 | 1302 | | |
1302 | 1303 | | |
1303 | | - | |
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| |||
0 commit comments