Repository navigation
fix: ground session companion context before answering - #122329
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
shakkernerd
force-pushed
the
fix/session-companion-grounding
branch
from
August 11, 2026 22:56
8f7e3c2 to
7137446
Compare
shakkernerd
force-pushed
the
fix/session-companion-grounding
branch
from
August 11, 2026 23:18
010f698 to
9c9ab58
Compare
Contributor
Author
|
Fixed: the Control UI session companion now grounds its first answer in bounded selected-session context and keeps private transport data out of user-visible replies. With thanks to @shakkernerd. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #120746
What Problem This Solves
The Control UI session companion could start its first answer without authoritative context from the selected session. It could then present an internal context envelope as a successful answer even though the visible session already contained the requested information.
Why This Change Was Made
The Gateway now prepares one bounded, fail-closed snapshot from the selected session’s canonical reset/compaction window before the companion model runs. Private transcript and observer material is escaped reference history rather than system policy or operator dialogue. Missing, unreadable, replaced, cancelled, rate-limited, and model-unavailable states remain distinct.
The Control UI shows Reading and Answering phases, preserves failed questions, offers Retry only for retryable outcomes, and reconciles a response through the current Gateway connection before treating a stale browser settlement as failed.
User Impact
The first companion answer is grounded in the selected session or ends in a truthful visible error. Users no longer receive private transport data as an answer, and reconnects cannot create a false history error or encourage a duplicate question after the Gateway already committed the response.
Verification