Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.
This repository was archived by the owner on May 5, 2026. It is now read-only.

UI: Auto-filter checkpoint stream by selected agent (agentId; no extra inputs) #10

Description

@noa-lucent

Context
Builder shows a Checkpoint tab when a SimpleAgent node is selected. The stream must automatically filter to that agent (no input control).

Key decision

  • Use the selected node id as the agent identifier: agentId := selectedNode.id.
  • The socket init payload uses { agentId?, threadId? }.

Tasks

  1. Hook: add agentId support
  • apps/ui/src/hooks/useCheckpointStream.ts
    • Add agentId?: string param and include it in socket init payload as { agentId } alongside optional threadId.
    • Re-init when agentId changes.
  1. Panel: supply selected agentId
  • apps/ui/src/builder/AgentBuilder.tsx
    • In Checkpoint tab, render for simpleAgent nodes.
  1. Panel: accept agentId prop
  • apps/ui/src/components/stream/CheckpointStreamPanel.tsx
    • Accept agentId?: string and pass to useCheckpointStream.

Acceptance Criteria

  • Selecting a SimpleAgent node shows only its writes; switching selection switches the stream.
  • No additional input is visible for agent selection.
  • Socket init payload uses { agentId, threadId } (no "namespace" term in UI).

Relationships

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions