mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4542] [Engine] Codex CLI 0.165.0 repeatedly compacts context and loses task progress #2051
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2051
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @desmonsdavid on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4542
Environment
46c152a)--spec 4)/v1/responsesprefer_mxc = true, read-only sandboxProblem
When Codex CLI performs a multi-step, read-only genealogy-document audit, it repeatedly compacts its context, loses track of completed work, and re-executes similar file discovery and GEDCOM extraction commands without delivering a final report.
The issue has reproduced with two different Codex compaction thresholds:
model_auto_compact_token_limit = 24576model_auto_compact_token_limit = 18000In the second run, I observed 15 consecutive context compactions, repeatedly followed by commands such as
Get-ChildItemandrgtargeting files and GEDCOM records already examined.Strata configuration
reasoning_budget_tokens = 2048, at the root of the server JSONcodex_compaction_cache = truein the second test--max-context 32768--kv int8--pcie-frac 0.20--spec-min-p 0.70Strata confirms that the reasoning budget is active.
In an earlier run, the server logged:
Codex reported:
Expected behavior
Codex should compact its conversation while retaining the mission's progress, avoid repeating completed file-inspection steps, and eventually produce the requested audit report.
Actual behavior
After each compaction, Codex repeatedly starts by checking the directory contents, locating GEDCOM records, and reading documents already examined.
Even when it announces that it will prepare the final summary, it continues collecting evidence and enters another compaction cycle.
Questions
codex_compaction_cacheaffect only prompt reuse/performance, or could it influence the compacted conversation state?I can provide sanitized server logs, Codex traces, and configuration files if needed.
@github-actions[bot] commented on GitHub (Oct 28, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 28, 2026):
Thanks, this follows the format now.
@desmonsdavid commented on GitHub (Oct 28, 2026):
Reproduction steps
reasoning_budget_tokens = 2048./v1/responsesendpoint withprefer_mxc = true.codex --sandbox read-onlyfrom a directory containing a GEDCOM file and existing genealogy audit documents.Reproduction status
Reproduced locally during two separate runs.
Incomplete response returned, reason: max_output_tokens.Scope and uncertainty
This is an observed integration failure, not a confirmed Strata engine defect.
The cause may involve Codex compaction behavior, Strata's Responses API implementation, or model behavior after context summarization.
The task was read-only. No genealogy files were modified.
Sanitized execution logs and configurations can be supplied upon request.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@desmonsdavid commented on GitHub (Nov 6, 2026):
Hi Niko,
Thanks for the update and for releasing Strata 0.2.11.
I retested issue #4542 on Windows 11 with the following configuration:
--spec 4prefer_mxc=true,codex_compaction_cache=trueGood news: I could not reproduce the original compaction loop.
In a native Codex session running a multi-step genealogy audit:
The session completed in approximately 325 seconds.
This is not a strictly identical reproduction of the original October environment (Codex 0.166.0 instead of 0.165.0, synthetic dataset, bounded tool outputs), so I cannot claim the underlying issue is universally fixed.
However, the original failure mode did not occur, and the new version behaved correctly in this test.
No reopening needed from my side.
Thanks again for your work on Strata!