fix(desktop): 揭示工作区浏览器时不记入导航栈 - #580
Merged
Merged
Conversation
…rowser Opening a plugin/settings HTTP link already returns to chat so the dock is visible. That switch is not a page navigation — keep Back on the covering entry and fall back to the OS browser when no session can show the panel.
This branch was successfully deployed
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.
Follow-up to #566 / #578.
问题
插件/设置页点 HTTP 链接若目标是工作区浏览器,会
setPage(\"chat\")并默认record: true,把一次「揭开 dock」写进导航栈。Back 会回到插件/设置页,但前进栈被截断,这次打开不像一次真正的页面跳转。改动
planHttpUrlOpen,工作区目标从遮罩页回到对话时用setPage(\"chat\", { record: false })。browserOpenExternal。验证
apps/desktop/test/open-http-url.test.mjs12/12apps/desktop/test/tool-row-file-refs.test.mjs8/8