fix(miniapp): isolate agentic floating chat sessions - #1966
Merged
bobleer merged 1 commit intoAug 2, 2026
Conversation
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
ChatPanenever mounts an ordinary or unrelated session.Type and Areas
Type: Regression fix / UI behavior / test
Areas: Web UI, MiniApp bridge, floating chat session routing
Motivation / Impact
Agentic MiniApps own a dedicated floating conversation. A fast
focusSession+setComposerDraftsequence, or a temporary composer-claim gap during loading, could previously expose an unrelated normal conversation or open an empty surface. This change makes the MiniApp session identity authoritative and keeps the surface pending until that exact session is active.Verification
pnpm run type-check:web— passedpnpm --dir src/web-ui run test:run src/app/layout/floatingMiniChatIsolation.test.ts src/app/scenes/miniapps/hooks/useMiniAppBridge.test.tsx src/app/scenes/miniapps/miniAppStore.test.ts src/flow_chat/components/toolbar-mode/toolbarModeSessionSurface.test.ts— 4 files, 40 tests passedgit diff --check— passedReviewer Notes
AI-assisted implementation. The PR is isolated from the unrelated dispatch refactor branch and contains only the seven Web UI files required for this contract fix. No user-facing strings or locale resources changed.
Checklist