Repository navigation
Chat panel: nodespace:// link click should open new tab, Cmd+click new pane - #1045
Merged
Merged
Conversation
…loses #1038) When clicking nodespace:// links inside a chat tab, override the default navigation to preserve the conversation. Regular click opens a new tab in the same pane; Cmd+Click opens in a new pane for side-by-side view. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Address code review — compute isFromChat, openInNewTab, openInOtherPane in the synchronous handler scope (before the async IIFE) since get(tabState) and DOM traversal are both synchronous. Variables are now const instead of let. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Cover all 6 cases: regular click, Cmd+Click, Cmd+Shift+Click for both standard tabs and chat tabs. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
malibio
added a commit
that referenced
this pull request
Jun 22, 2026
…w pane (#1045) * feat: Chat panel links open new tab on click, new pane on Cmd+click (closes #1038) When clicking nodespace:// links inside a chat tab, override the default navigation to preserve the conversation. Regular click opens a new tab in the same pane; Cmd+Click opens in a new pane for side-by-side view. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * refactor: Move chat tab detection to synchronous scope Address code review — compute isFromChat, openInNewTab, openInOtherPane in the synchronous handler scope (before the async IIFE) since get(tabState) and DOM traversal are both synchronous. Variables are now const instead of let. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * test: Add unit tests for chat link navigation override logic Cover all 6 cases: regular click, Cmd+Click, Cmd+Shift+Click for both standard tabs and chat tabs. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
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.
Closes #1038