Commit e0c8fa0
Remaining reader-module cleanups deferred from #352:
- codex.rs / opencode.rs: replace the manual repack of the incremental
result with `From<ParseCodexIncrementalResult> for ParseCodexResult`
(and the opencode equivalent), and have `parse_*_session` delegate via
`.map(...::from)`.
- codex.rs: drop the two `let _ = (...)` blocks at the tail of
`parse_codex_buffer`. The audit confirms each `committed_*` snapshot
is read by either the resume state or the emitted records, so the
trailing working values are genuinely dead and removing the silencing
blocks introduces no compiler warnings.
- codex.rs: rename `memchr_newline` to `find_newline` so the name no
longer implies a `memchr`-crate optimization that isn't there.
The claude.rs parser-duplication item from #346 stays deferred: the
non-incremental `ParseState` emits in-progress turns (records with
`stop_reason.is_none()`), while `run_incremental` deliberately defers
them to keep the next call's start cursor honest. Collapsing the two
paths needs a flag on `run_incremental` and broader fixture validation;
out of scope for this safe-subset PR.
https://claude.ai/code/session_01GHEd4Sv87QoUTd1BN6FbAF
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2c352ea commit e0c8fa0
2 files changed
Lines changed: 30 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
| |||
389 | 394 | | |
390 | 395 | | |
391 | 396 | | |
392 | | - | |
| 397 | + | |
393 | 398 | | |
394 | 399 | | |
395 | 400 | | |
| |||
1092 | 1097 | | |
1093 | 1098 | | |
1094 | 1099 | | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | 1100 | | |
1100 | 1101 | | |
1101 | 1102 | | |
| |||
1184 | 1185 | | |
1185 | 1186 | | |
1186 | 1187 | | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | 1188 | | |
1200 | 1189 | | |
1201 | 1190 | | |
| |||
1228 | 1217 | | |
1229 | 1218 | | |
1230 | 1219 | | |
1231 | | - | |
| 1220 | + | |
1232 | 1221 | | |
1233 | 1222 | | |
1234 | 1223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
0 commit comments