Repository navigation
Conversation
🦋 Changeset detectedLatest commit: 67f62b9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Thanks for the contribution! What happens next:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 67f62b91c1
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (Array.isArray(compressionResult.summary)) { | ||
| return compressionResult.summary; |
There was a problem hiding this comment.
Apply the fallback array on the recompression path
When history includes a prior successful summary (for example with messageTypes: []) and summarization fails after the newer messages require truncation, this returns the reduced message array, but getConversationHistoryWithCompression discards it in its wasRecompressed === false branch and reuses messagesAfterCompression. Previously summarized conversations therefore bypass the current-turn fallback and can still exceed the primary model's context window during a summarizer outage. Keep the prior summary, but append recompressResult rather than the original post-summary messages.
Useful? React with 👍 / 👎.
|
This pull request has been automatically marked as stale because it has not had recent activity. If this PR is still relevant:
Thank you for your contributions! |
Changes
When conversation summarization fails, return the fallback messages for the current turn without writing a compression summary. Artifact collection normalizes copies of the message rows, so retained tool results still render during fallback. Later turns can retry, and identifiable failed summaries already in storage no longer hide preceding messages.
The conversation compression span records the failure. The mid-generation fallback keeps its existing behavior.
Closes #3586.
Verification
pnpm --filter @inkeep/agents-api typecheck,pnpm --filter @inkeep/agents-api lint,pnpm format:check,pnpm check:changeset-packages, and the staged pre-commit check, which runs the full API suite. Used Node 22.22.1 and pnpm 12.8.1.pnpm checkdid not complete successfully. Two CLI tests timed out during that run. All 12 tests across those two CLI files passed when rerun in isolation. Regression tests did not call a live model or an external database.