Skip to content

🤖 fix: retry compaction with truncation fallback#1734

Merged
ammario merged 3 commits into
mainfrom
fix/compaction-retry-truncation
Jan 17, 2026
Merged

🤖 fix: retry compaction with truncation fallback#1734
ammario merged 3 commits into
mainfrom
fix/compaction-retry-truncation

Conversation

@ammar-agent
Copy link
Copy Markdown
Collaborator

Summary

  • remove explicit truncation provider options from agent definitions
  • retry compaction once on OpenAI context limits with a truncation override
  • tighten retry bookkeeping/cleanup to keep history consistent

Testing

  • make static-check

Generated with mux • Model: openai:gpt-5.2-codex • Thinking: xhigh • Cost: $25.62

@ammar-agent ammar-agent force-pushed the fix/compaction-retry-truncation branch from 7996085 to e7bbf1b Compare January 17, 2026 19:48
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7bbf1b131

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/node/services/agentSession.ts
@ammario ammario merged commit eb7efba into main Jan 17, 2026
34 of 36 checks passed
@ammario ammario deleted the fix/compaction-retry-truncation branch January 17, 2026 22:32
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.

2 participants