Commit 997ada0
test(codex): cover explicit-file ScanRoot path through CodexConnector
New regression test
`codex_connector_scans_explicit_rollout_file_root` exercises the
case where the user points cass at a single rollout JSONL file
(rather than at a sessions directory the auto-detector picks up).
Pairs with the explicit-hinted-path fix in the indexer (29a5c02):
without that fix, the explicit file fell through classify_paths
and the connector saw nothing.
Setup: creates a `.codex/sessions/2026/05/08/rollout-explicit.jsonl`
under a TempDir with a 3-message session (session_meta + user
message + function_call_output), then drives the connector through
`ScanContext::with_explicit_paths(...)` pointing at the JSONL file
specifically.
Asserts: the connector produces exactly one conversation, with the
session id, cwd, cli_version, all 3 messages preserved (input_text
content, function_call_output output text), and the timestamps
ordered as written.
Imports `ScanRoot` from the connectors module since
`with_explicit_paths` needs it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 29a5c02 commit 997ada0
1 file changed
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
268 | 302 | | |
269 | 303 | | |
270 | 304 | | |
| |||
0 commit comments