-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: /v1/responses does not retain conversation context when using the same user value #94908
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
When calling the
/v1/responsesAPI, I pass a stableuservalue (for example:user: "chat_12_1").According to the documentation, requests that include a
userstring should derive a stable session key so that repeated calls can share the same agent session.However, in my testing, every API call appears to start a new conversation. The model does not retain previous context, even when the same
uservalue is used.Additionally, it seems that a new
/v1/responsesrequest may clear or replace the previous conversation associated with that user. As a result, follow-up questions cannot access earlier messages.Interestingly, conversations made directly through the web panel continue to preserve context correctly and are not affected.
Steps to reproduce
Steps to Reproduce
Call
/v1/responseswith:{ "user": "chat_12_1", "input": "Remember the number 123456." }Call
/v1/responsesagain with the same user:{ "user": "chat_12_1", "input": "What number did I ask you to remember?" }The model does not remember the previous message and behaves as if it is a new conversation.
Expected behavior
Requests using the same
uservalue should share the same agent session and retain conversation context, as described in the documentation.Actual behavior
Each
/v1/responsesAPI call appears to behave like an independent session, while conversations in the web panel retain context correctly.OpenClaw version
2026.6.8
Operating system
Ubuntu 24
Install method
No response
Model
gpt5.5
Provider / routing chain
openclaw
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response