Repository navigation
Conversation
…ession Retained output belongs to the session that produced it, but a child conversation (btw, subagent, review) is presented inside its parent's canvas. openSessionContextPreview committed its tab under params.sessionId, so when a reusable swarm worker owned the composer while the parent scene kept its canvas live, the tab landed in a scope that never becomes live: the request looked ignored and nothing expanded. Resolve the canvas scope with presentedAgentCanvasScopeKey, which keeps the session's own scope when it is live, uses the parent scope when the child is presented in the parent's live canvas, and otherwise keeps the own scope so retained output is not leaked onto an unrelated canvas. Gate the reveal on that same resolved scope. Focused verification: openSessionContextPreview.test.ts 21/21 passed.
abead1d to
c2f25d2
Compare
|
@wsp1911 This PR is ready for review and is no longer a draft. Could you please review it? The author has manually installed the unsigned Windows installer Successful installer build: https://github.com/YodonTan/BitFun/actions/runs/43830633519. The workflow head SHA differs from the application build commit, as documented in the PR description. This is author-reported manual verification, not an automated test or reviewer approval. Focused test results, historical verification limitations, and untested remote scenarios remain documented in the PR description. Thank you! |
|
#3993 修复上下文构成面板相关问题时一并修复了这个问题 |
Ready for review: the author has confirmed that the fix works after installing the unsigned Windows installer. AI-assisted work; focused test results and historical limitations are documented below.
Root cause
Retained output belongs to the session that produced it, but a child conversation (btw, subagent, swarm worker, review) is presented inside its parent canvas. openSessionContextPreview committed its tab under params.sessionId. When a reusable swarm worker owned the composer while the parent scene kept its canvas live, the tab landed in a canvas scope that never becomes live: the request looked ignored and nothing expanded.
Change
Files changed
Verification
OpenBitFun_1.0.11_x64-setup.exe. This is author-reported manual verification, not an automated test or reviewer approval. Screenshots or a recording have not been supplied here.c2f25d205ea5f34e539ea5bba6bf27f245983acb. The Actions run API reports workflow head SHAbcdd0eeb31520e5b1450fef25e4f33fd43d3236a; it is distinct from the reported application build SHA.Remote scenarios
Not exercised live for any of the four scenarios (remote workspace, remote control, peer device mode, detached dispatch). The change is Web UI canvas scope resolution only and adds no host or transport dependency, so no remote path is expected to be affected.
Testing level
Focused and related Web UI unit tests passed, plus author-confirmed real-machine Windows installation and manual GUI verification. Not a full test-matrix pass: historical local check:web/build limitations remain documented above, and remote scenarios were not exercised. AI-assisted work.