Skip to content

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

Closed

Description

@malibio

Summary

When clicking nodespace:// links in AI chat responses, the current behavior replaces the chat tab content with the node viewer, which loses the chat conversation. The expected behavior:

  • Regular click → Open node in a new tab (same pane), keeping the chat tab
  • Cmd+Click → Open node in a new pane (split view)

Current Behavior

  • Regular click: Replaces the active (chat) tab with the node viewer — chat conversation is lost
  • Cmd+Click: Opens in new tab (works correctly)

Root Cause

The global click handler in app-shell.svelte calls navigateToNode(nodeId, openInNewTab) where openInNewTab is only true when modifier keys are pressed. For a regular click from the chat panel, it updates the current tab content, replacing the chat.

Acceptance Criteria

  • Regular click on nodespace:// link in chat opens node in a new tab (same pane)
  • Cmd+Click opens node in a new pane (split view)
  • Chat tab remains open and conversation is preserved
  • Behavior only applies to clicks originating from the chat panel (other viewers keep existing behavior)

Implementation Notes

The global handler in app-shell.svelte:378 could check if the click originated from within a chat panel (e.g., target.closest('.chat-panel')) and adjust the navigation behavior accordingly. Or the chat-markdown component could handle clicks locally with the correct behavior.

Files

  • packages/desktop-app/src/lib/components/layout/app-shell.svelte — global click handler
  • packages/desktop-app/src/lib/components/chat/chat-markdown.svelte — chat markdown rendering

Activity

  1. malibio commented on Apr 5, 2026

    @malibio
    CollaboratorAuthor

    Baseline: 124 test files passed, 3849 tests passed (Duration 34.48s)

  2. self-assigned this
    on Apr 5, 2026
  3. added a commit that references this issue on Apr 5, 2026
    29c934f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions