Repository navigation
[release/0.7] RSPEED-3958: Don't attach a conversation to stateless /v1/responses requests - #3286
Conversation
A /v1/responses request with store=false and no conversation or
previous_response_id comes from a stateless client that resends the full
history as input on every request (e.g. a Chat Completions to Responses
proxy). lightspeed-stack still auto-created a conversation and passed it
to OGX, which then copied the entire input into the conversation after
the response. OGX adds those items with a single AddItemsRequest, which
is limited to 20 items, so once the history grew past that every request
failed after streaming the output:
1 validation error for AddItemsRequest
items
List should have at most 20 items after validation, not 22
For such requests, set omit_conversation so the conversation parameter
isn't sent to OGX, and skip topic summary generation, whose result is
only used when the turn is stored.
PendingTurn.for_request() treated any request with omit_conversation as
compacted and required its original input; accept a store=false request
without one, since its turn is never stored.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
🤖 Finished Review · ✅ Success · Started 9:56 AM UTC · Completed 10:12 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $7.57 |
|
<!-- fullsend:risk-assessment --> DetailsSmall, focused change (3 files, 87 lines) with adequate test coverage and no protected or security-sensitive paths, but the modified files show high author contention (up to 10 distinct authors) and notable regression history (9 fix/revert commits in 90 days), elevating git history risk while overall composite remains moderate. |
ReviewFindingsMedium
Low
Info
Next steps:
1 finding(s) below the |
|
🤖 Finished Retro · ✅ Success · Started 1:25 PM UTC · Completed 1:35 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $4.32 |
Retro: PR #3286 — Backport of stateless /v1/responses fix to release/0.7Timeline
AnalysisReview quality was technically sound but contextually misaligned. The agent’s doc-gap findings are factually correct — The CHANGES_REQUESTED verdict was disproportionate. Blocking a release-branch production bug fix for documentation gaps that weren’t required on the original Backport context was not leveraged. The agent treated this as a brand-new PR, spending $7.57 on a full high-effort review. The original PR #3190 was already reviewed and merged by two human reviewers. A backport-aware review could have been lighter. No new proposals filed — existing issues cover these themes
|
Description
A /v1/responses request with store=false and no conversation or previous_response_id comes from a stateless client that resends the full history as input on every request (e.g. a Chat Completions to Responses proxy). lightspeed-stack still auto-created a conversation and passed it to OGX, which then copied the entire input into the conversation after the response. OGX adds those items with a single AddItemsRequest, which is limited to 20 items, so once the history grew past that every request failed after streaming the output:
1 validation error for AddItemsRequest
items
List should have at most 20 items after validation, not 22
For such requests, set omit_conversation so the conversation parameter isn't sent to OGX, and skip topic summary generation, whose result is only used when the turn is stored.
PendingTurn.for_request() treated any request with omit_conversation as compacted and required its original input; accept a store=false request without one, since its turn is never stored.
Type of change
pyproject.toml+uv.lock]requirements.*.txtfor Konflux]Tools used to create PR
Identify any AI code assistants used in this PR (for transparency and review context)
Related Tickets & Documents
Checklist before requesting a review
Testing