Skip to content

add responses compaction fallback for fast sessions#312

Open
ndycode wants to merge 6 commits intofeat/openai-parity-pr3from
feat/openai-parity-pr4
Open

add responses compaction fallback for fast sessions#312
ndycode wants to merge 6 commits intofeat/openai-parity-pr3from
feat/openai-parity-pr4

Conversation

@ndycode
Copy link
Owner

@ndycode ndycode commented Mar 22, 2026

Summary

  • compact fast-session inputs through the Responses compaction endpoint before local trimming
  • fall back to the existing trim heuristics when server-side compaction is unavailable
  • gate compaction support by normalized model capabilities

Stack

  • base: #311

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 22, 2026

Warning

Rate limit exceeded

@ndycode has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 19 minutes and 9 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: bd27cfd4-0953-4ffc-a45b-5ce594697076

📥 Commits

Reviewing files that changed from the base of the PR and between 6a273fe and b7fef3e.

📒 Files selected for processing (11)
  • index.ts
  • lib/request/fetch-helpers.ts
  • lib/request/helpers/model-map.ts
  • lib/request/request-transformer.ts
  • lib/request/response-compaction.ts
  • lib/session-affinity.ts
  • test/codex-manager-cli.test.ts
  • test/index.test.ts
  • test/model-map.test.ts
  • test/request-transformer.test.ts
  • test/response-compaction.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/openai-parity-pr4
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch feat/openai-parity-pr4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ndycode ndycode added passed needs-human-review Flagged by automated PR quality screening; maintainer review required. and removed passed labels Mar 22, 2026
@ndycode
Copy link
Owner Author

ndycode commented Mar 22, 2026

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 22, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ndycode
Copy link
Owner Author

ndycode commented Mar 22, 2026

@coderabbitai review
@greptile @cubic review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 22, 2026

@ndycode: triggering a review of pr #312 now. will check compaction fallback logic, fast-session trim deferral, and model capability metadata changes.

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ndycode ndycode force-pushed the feat/openai-parity-pr3 branch from 129e40b to 6a273fe Compare March 22, 2026 13:43
@ndycode ndycode force-pushed the feat/openai-parity-pr4 branch from 1ad9a65 to b7fef3e Compare March 22, 2026 13:43
@ndycode ndycode removed the needs-human-review Flagged by automated PR quality screening; maintainer review required. label Mar 22, 2026
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