Skip to content

Render nodespace:// URIs as rich node cards in AI chat #1037

Closed

Description

@malibio

Summary

AI chat responses now include nodespace:// URIs when referencing nodes (e.g., nodespace://6066b3ca-...). Currently these render as styled text links that navigate on click. They should render as rich inline node cards with type-specific decorations (status badges, icons, etc.).

Current State

  • MCP tool responses include uri field on every node (e.g., nodespace://abc123)
  • Tool descriptions instruct the agent to include URIs when referencing nodes
  • ChatMarkdown component detects nodespace:// links and renders them as clickable links
  • Click navigation works via NavigationService.navigateToNode()

Acceptance Criteria

  • nodespace:// URIs in chat messages render as inline node cards (not raw URI text)
  • Node cards show type-specific decorations (task status badge, node type icon, etc.)
  • Node cards fetch minimal node info (title, type, status) from SharedNodeStore or backend
  • Cards are clickable (existing navigation behavior preserved)
  • Cards handle missing/deleted nodes gracefully (show fallback)
  • Consider reusing BaseNodeReference component pattern

Design Reference

Existing BaseNodeReference component (src/lib/components/references/base-node-reference.svelte) provides a pattern for inline node links with icons, type-specific colors, and hover effects.

Files

  • packages/desktop-app/src/lib/components/chat/chat-markdown.svelte — link rendering
  • packages/desktop-app/src/lib/components/references/base-node-reference.svelte — reference pattern
  • packages/core/src/models/mod.rs — uri field injection

Activity

  1. malibio commented on Apr 5, 2026

    @malibio
    CollaboratorAuthor

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

  2. self-assigned this
    on Apr 5, 2026
  3. added a commit that references this issue on Apr 5, 2026
    d68879d
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