Skip to content

Respect thread auto-compaction settings in background compaction - #65473

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3f113610629c55f58dfa55906216d38186c36af0
Dec 3, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3f113610629c55f58dfa55906216d38186c36af0

Conversation

@copyberry

@copyberry copyberry Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Respect thread auto-compaction settings in background compaction

Why

Background compaction could still send a compaction request for a thread
with automatic compaction disabled. The inline path already respected
that setting.

What changed

Check the thread setting before starting background compaction, taking a
completed result, or waiting for pending work. Reuse the same session
check for inline auto-compaction and the new_context_window tool.

Testing

Add a regression test that verifies an ordinary thread sends a background
compaction request after crossing the configured threshold and a thread
with AutoCompactionDisabled sends only the regular response request.

)

## Why

Background compaction could still send a compaction request for a thread
with automatic compaction disabled. The inline path already respected
that setting.

## What changed

Check the thread setting before starting background compaction, taking a
completed result, or waiting for pending work. Reuse the same session
check for inline auto-compaction and the `new_context_window` tool.

## Testing

Add a regression test that verifies an ordinary thread sends a background
compaction request after crossing the configured threshold and a thread
with `AutoCompactionDisabled` sends only the regular response request.

GitOrigin-RevId: 3f113610629c55f58dfa55906216d38186c36af0
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3f113610629c55f58dfa55906216d38186c36af0 branch from 51971f5 to 1b8b556 Compare December 3, 2026 12:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T12:33:32.977503Z 51971f5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 1b8b556 into main Dec 3, 2026
7 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3f113610629c55f58dfa55906216d38186c36af0 branch December 3, 2026 12:33
@nqluo-code
nqluo-code deployed to issue-triage December 3, 2026 12:46 — with GitHub Actions Active
@nqluo-code
nqluo-code deployed to issue-triage December 3, 2026 12:46 — with GitHub Actions Active
@nqluo-code
nqluo-code deployed to issue-triage December 3, 2026 12:46 — with GitHub Actions Active
@brenocuper
brenocuper deployed to issue-triage December 3, 2026 12:46 — with GitHub Actions Active
@brenocuper
brenocuper deployed to issue-triage December 3, 2026 12:46 — with GitHub Actions Active
@brenocuper
brenocuper deployed to issue-triage December 3, 2026 12:46 — with GitHub Actions Active
@brenocuper
brenocuper deployed to issue-triage December 3, 2026 12:47 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants