Skip to content

fix: guard against re-compression of tool result markers#118

Merged
JackChen-me merged 1 commit into
mainfrom
fix/tool-result-recompression-guard
Apr 16, 2026
Merged

fix: guard against re-compression of tool result markers#118
JackChen-me merged 1 commit into
mainfrom
fix/tool-result-recompression-guard

Conversation

@JackChen-me
Copy link
Copy Markdown
Member

Summary

  • Skip already-compressed tool result blocks to prevent re-compression with incorrect char counts when minChars is set low
  • Add test case verifying compressed markers retain original char count across 4+ turns with minChars: 10

Context

Discovered during review of #117. When minChars is set below the marker length (~55 chars), the marker itself would be re-compressed, replacing 600 chars with 55 chars in the label.

Test plan

  • New test: low minChars does not re-compress markers
  • Full suite passes (596/596)

…arkers

When minChars is set low, compressed markers could be re-compressed
with incorrect char counts. Skip blocks whose content already starts
with the compression prefix.
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@JackChen-me JackChen-me merged commit 696269c into main Apr 16, 2026
3 checks passed
@JackChen-me JackChen-me deleted the fix/tool-result-recompression-guard branch April 16, 2026 10:28
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.

1 participant