fix(desktop): pin unscoped stream events - #48281
Closed
rayjun wants to merge 1 commit into
Closed
Conversation
Collaborator
|
Related: #47743 (open competing fix for the same desktop session-bleed family, via |
This was referenced Jun 20, 2026
Collaborator
|
Superseded — rebased onto the current `use-message-stream/` split and folded in `resetViewSync` from #47743 so a stale RAF stage can’t repaint after New Session. Co-authored-by preserved. Thanks for the focused pin approach. |
This was referenced Jul 13, 2026
Collaborator
|
Superseded — see the salvage PR linked above. |
OutThisLife
added a commit
that referenced
this pull request
Jul 13, 2026
Live deltas from session A were attaching to session B after New Session when events arrived without session_id — fallback used the newly focused activeSessionId (#47709). Pin unscoped stream events to the session that received message.start (#48281). Also reset RAF-pending view staging on new/resume/create so a stale background flush cannot repaint over the switched chat (#47743). Co-authored-by: Ray <rayjun0412@gmail.com> Co-authored-by: zapabob <1920071390@campus.ouj.ac.jp>
OutThisLife
added a commit
that referenced
this pull request
Jul 13, 2026
fix(desktop): pin unscoped streams + clear view sync on switch (supersedes #48281)
Merged
5 tasks
Gravezzz
pushed a commit
to Gravezzz/hermes-agent
that referenced
this pull request
Jul 21, 2026
Live deltas from session A were attaching to session B after New Session when events arrived without session_id — fallback used the newly focused activeSessionId (NousResearch#47709). Pin unscoped stream events to the session that received message.start (NousResearch#48281). Also reset RAF-pending view staging on new/resume/create so a stale background flush cannot repaint over the switched chat (NousResearch#47743). Co-authored-by: Ray <rayjun0412@gmail.com> Co-authored-by: zapabob <1920071390@campus.ouj.ac.jp>
Gravezzz
pushed a commit
to Gravezzz/hermes-agent
that referenced
this pull request
Jul 21, 2026
…281-stream-pin fix(desktop): pin unscoped streams + clear view sync on switch (supersedes NousResearch#48281)
2 tasks
randlee
pushed a commit
to randlee/hermes-agent
that referenced
this pull request
Aug 11, 2026
Live deltas from session A were attaching to session B after New Session when events arrived without session_id — fallback used the newly focused activeSessionId (NousResearch#47709). Pin unscoped stream events to the session that received message.start (NousResearch#48281). Also reset RAF-pending view staging on new/resume/create so a stale background flush cannot repaint over the switched chat (NousResearch#47743). Co-authored-by: Ray <rayjun0412@gmail.com> Co-authored-by: zapabob <1920071390@campus.ouj.ac.jp>
randlee
pushed a commit
to randlee/hermes-agent
that referenced
this pull request
Aug 11, 2026
…281-stream-pin fix(desktop): pin unscoped streams + clear view sync on switch (supersedes NousResearch#48281)
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.
Summary
message.startsession_idrouting and drop behavior for unscopedsubagent.*eventsFixes #47709.
Testing
npm --workspace apps/desktop run test:ui -- src/lib/gateway-events.test.tsnpm --workspace apps/desktop run typechecknpm --workspace apps/desktop exec eslint -- src/lib/gateway-events.ts src/lib/gateway-events.test.ts src/app/session/hooks/use-message-stream.tsgit diff --check