Skip to content

Chat panel: nodespace:// link click should open new tab, Cmd+click new pane - #1045

Merged
malibio merged 3 commits into
mainfrom
feature/issue-1038-chat-link-new-tab
Apr 5, 2026
Merged

malibio merged 3 commits into
mainfrom
feature/issue-1038-chat-link-new-tab

Conversation

@malibio

@malibio malibio commented Apr 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #1038

malibio and others added 3 commits April 5, 2026 16:57
…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
malibio merged commit de5027f into main Apr 5, 2026
@malibio
malibio deleted the feature/issue-1038-chat-link-new-tab branch April 5, 2026 16:11
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat panel: nodespace:// link click should open new tab, Cmd+click new pane

1 participant