Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
2d4123c
Fix model switch compaction
charley-oai Feb 14, 2026
a79bebe
Simplify
charley-oai Feb 14, 2026
c7cef7d
update snapshot
charley-oai Feb 15, 2026
5c389f9
Update pre-sampling model-switch compaction snapshot
charley-oai Feb 15, 2026
e0f99eb
compact: split core logic changes from snapshot test coverage
charley-oai Feb 11, 2026
4022de7
compact: preserve incoming items during pre-turn trim retries
charley-oai Feb 12, 2026
e87455e
codex: persist pre-turn updates when compaction fails
charley-oai Feb 12, 2026
8d06dd5
Persist pre-turn updates before apps tool-list cancellation
charley-oai Feb 12, 2026
36499b5
Reinject canonical context for model-switch pre-turn compaction
charley-oai Feb 12, 2026
59d3431
Fix clippy useless_vec in compact_remote test
charley-oai Feb 12, 2026
2a804d9
Update snaps
charley-oai Feb 12, 2026
8b2f506
update snaps
charley-oai Feb 12, 2026
15730c2
Align compaction tests with incoming-item and empty-history behavior
charley-oai Feb 12, 2026
c92190f
Avoid wildcard pattern in ResponseEvent::Completed match
charley-oai Feb 12, 2026
bddd53b
Rebase: align compaction snapshots and imports
charley-oai Feb 14, 2026
d9b02b6
Differentiate model-switch compaction failures from oversize input
charley-oai Feb 15, 2026
ce77778
Enable compaction tests and remove stale TODO markers
charley-oai Feb 15, 2026
9e6ef13
Add comment
charley-oai Feb 15, 2026
b7b50d6
Add TODO for legacy compacted history context reinjection
charley-oai Feb 16, 2026
5682f72
Move previous-model compact failure handling into helper
charley-oai Feb 16, 2026
e3efe3a
Return sentinel error from model-switch compaction helper
charley-oai Feb 16, 2026
8595664
Move pre-turn auto-compact error handling into helper
charley-oai Feb 16, 2026
de959aa
Comments
charley-oai Feb 16, 2026
54e606a
Comment
charley-oai Feb 16, 2026
3a04f2c
Use explicit user-message predicate for compaction filtering
charley-oai Feb 16, 2026
f832de6
Document manual compact turn-context reinjection policy
charley-oai Feb 16, 2026
b029cc2
Reinject context for summary-only compacted history
charley-oai Feb 16, 2026
466c689
compact: reinsert context above last summary
charley-oai Feb 16, 2026
5929f05
compact: snapshot reinjection above last summary
charley-oai Feb 16, 2026
b5aeb30
compact: strip incoming model-switch before compaction
charley-oai Feb 16, 2026
9d34abf
core: snapshot pre-turn model-switch compaction strip behavior
charley-oai Feb 16, 2026
7139784
Strip incoming model-switch updates from remote compaction input
charley-oai Feb 16, 2026
d81d89a
Silence interrupted pre-turn compaction failures
charley-oai Feb 17, 2026
f7956ff
Persist pre-turn updates before interrupted model-switch compact exits
charley-oai Feb 17, 2026
ccc2700
Persist pre-turn updates before interrupted auto-compaction exits
charley-oai Feb 17, 2026
3f2f817
Make compact unit snapshots Bazel-stable
charley-oai Feb 17, 2026
907e292
Add comment
charley-oai Feb 17, 2026
04b157b
Treat no-op pre-turn compaction as not-needed
charley-oai Feb 17, 2026
a38b1c9
Move compact reinjection snapshots into suite coverage
charley-oai Feb 17, 2026
15aa101
Qualify Feature enum in compact suite tests
charley-oai Feb 17, 2026
3964bec
dd comment
charley-oai Feb 18, 2026
589b076
Fix compact test snapshot and include bazel lock update
charley-oai Feb 18, 2026
01794f1
Reuse compaction keep filter for incoming items
charley-oai Feb 18, 2026
6e6e718
Use real user predicate for compaction reinjection
charley-oai Feb 18, 2026
afebfff
Exclude user shell command records from compaction keep set
charley-oai Feb 18, 2026
4c2c861
Keep shell command records only in incoming compaction items
charley-oai Feb 18, 2026
d53b588
Base incoming compaction filtering on keep predicate
charley-oai Feb 18, 2026
52e6a54
Define real user predicate independent of keep policy
charley-oai Feb 18, 2026
8b290e8
Drop redundant summary check for incoming compaction items
charley-oai Feb 18, 2026
80ab62f
cleanup
charley-oai Feb 18, 2026
6663b69
Restrict compacted-history keep set to user and compaction items
charley-oai Feb 18, 2026
b781a15
Keep only user+compaction items in compacted history
charley-oai Feb 18, 2026
0d796c7
Keep shell command records in compacted history filter
charley-oai Feb 18, 2026
a9c6219
Append incoming pre-turn items after compaction summary
charley-oai Feb 18, 2026
868019d
Skip mid-turn compaction error event on interruption
charley-oai Feb 18, 2026
583dee0
Refactor remote compaction incoming-item dedup
charley-oai Feb 18, 2026
d58204f
Always skip reinjection during auto-compaction
charley-oai Feb 18, 2026
d33a1be
Simplify
charley-oai Feb 18, 2026
714e0b7
Align compaction tests with always-skip post-layout
charley-oai Feb 18, 2026
a46bcf3
Inline compacted history shaping call
charley-oai Feb 18, 2026
25c22dc
Unify model-switch persistence through compaction history
charley-oai Feb 18, 2026
3759aba
Inline compact merge item matcher
charley-oai Feb 18, 2026
2ede42d
Reinsert initial context for mid-turn compaction
charley-oai Feb 18, 2026
223eda1
Reinject previous-turn context for pre-sampling model-switch compaction
charley-oai Feb 18, 2026
454fa82
Use shared real-user matcher for initial-context insertion
charley-oai Feb 18, 2026
7ed3d3f
Put NotNeeded first in pre-turn compaction outcome match
charley-oai Feb 18, 2026
c6d6312
Rename compaction callsite enum and exhaustively match reinjection
charley-oai Feb 18, 2026
4c0ca09
Rename compact callsite vars and document reinjection policy
charley-oai Feb 18, 2026
0fbc4c7
Clarify compaction reinjection rationale comments
charley-oai Feb 18, 2026
96b88ae
Reinject context for summary-only mid-turn compaction
charley-oai Feb 18, 2026
5ae08bc
Update compaction test for canonical context reinjection
charley-oai Feb 18, 2026
7476184
Document user-anchor behavior for context reinjection
charley-oai Feb 18, 2026
b66c6e6
Reuse summary-user helper in compaction anchoring
charley-oai Feb 18, 2026
16285c1
Move pre-turn context persistence to run_turn callsite
charley-oai Feb 18, 2026
0c53637
nit
charley-oai Feb 18, 2026
7b4e4b5
Remove redundant developer-role check in compaction filter
charley-oai Feb 18, 2026
6901781
Fix clippy doc list formatting for anchor helper
charley-oai Feb 18, 2026
ca84df3
edge case
charley-oai Feb 18, 2026
c085499
Avoid dropping historical duplicates in remote echo stripping
charley-oai Feb 18, 2026
8e6b114
Rename /compact start test for no-history semantics
charley-oai Feb 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions codex-rs/app-server/tests/suite/v2/compaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,10 @@ async fn auto_compaction_remote_emits_started_and_completed_items() -> Result<()
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn thread_compact_start_triggers_compaction_and_returns_empty_response() -> Result<()> {
async fn thread_compact_start_without_history_emits_started_and_completed_items() -> Result<()> {
skip_if_no_network!(Ok(()));

let server = responses::start_mock_server().await;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does test need renaming?

let sse = responses::sse(vec![
responses::ev_assistant_message("m1", "MANUAL_COMPACT_SUMMARY"),
responses::ev_completed_with_tokens("r1", 200),
]);
responses::mount_sse_sequence(&server, vec![sse]).await;

let codex_home = TempDir::new()?;
write_mock_responses_config_toml(
Expand Down
616 changes: 546 additions & 70 deletions codex-rs/core/src/codex.rs

Large diffs are not rendered by default.

716 changes: 484 additions & 232 deletions codex-rs/core/src/compact.rs

Large diffs are not rendered by default.

Loading
Loading