Skip to content

[upstream PR 10] feat: viewer UI redesign with real-time streaming #905

@wbugitlab1

Description

@wbugitlab1

Source repository: rohitg00/agentmemory
Source pull request number: 10
Source URL: intentionally omitted to avoid GitHub cross-references
Title: feat: viewer UI redesign with real-time streaming
Author: rohitg00
State: closed
Draft: no
Merged: yes
Head: rohitg00/agentmemory:feat/viewer-ui-live-streaming @ 710f3f1
Base: main @ 7099056
Labels: (none)
Changed files: 0
Commits: 0
Created: 2026-03-03T17:23:52Z
Updated: 2026-03-04T04:39:02Z
Closed: 2026-03-04T04:38:59Z
Merged at: 2026-03-04T04:38:59Z

Original PR body:

Summary

  • Redesigned agentmemory viewer with newsprint-inspired design system (Playfair Display/Lora/Inter typography, CSS variables, responsive layout)
  • Added real-time live streaming via iii-engine StreamModule — viewer receives observation events as they happen
  • Fixed stream event propagation: engine uses exact group_id matching, so added a dedicated viewer broadcast group
  • New tabs: Activity (GitHub-style heatmap + feed), enhanced Graph (curved edges, shapes, legend, search), visual Timeline, improved Dashboard (semantic/procedural memory sections)
  • Added standalone viewer HTTP server (src/viewer/server.ts) on port 3113
  • New GET /agentmemory/memories endpoint with ?latest=true filter

Technical details

  • stream::set with group_id: "viewer" broadcasts to all viewer subscribers (fire-and-forget via triggerVoid)
  • Viewer WS subscribes to streamName: "mem-live", groupId: "viewer" and handles create/update event types
  • iii-config.yaml adds StreamModule (port 3112), PubSubModule, OtelModule, ExecModule

Test plan

  • Start engine: iii --config iii-config.yaml
  • Open viewer at http://localhost:3113/agentmemory/viewer
  • Verify WS status shows "live" (not "live updates off")
  • Create an observation via REST API and verify it appears in real-time
  • Check all tabs: Dashboard, Graph, Activity, Timeline, Sessions, Memories, Audit, Profile

Summary by CodeRabbit

  • New Features

    • Added a dedicated viewer server with web UI and rich /agentmemory/* APIs for sessions, memories, graphs, profiles, summaries, and governance.
    • New REST endpoint to list memories.
    • Real-time streaming now emits updates for both per-session and viewer groups; viewer server starts/stops with the app.
  • Bug Fixes

    • Viewer asset resolution now tries multiple paths and returns clearer not-found responses.
  • Chores

    • Added configuration for viewer, telemetry, queuing, cron, streams, and tracing.

Local branch:
Fork PR:
Fork decision:
Verification:
Notes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    decision-candidateFork decision has not been madeupstream-mergedUpstream pull request is merged upstreamupstream-prTracks an upstream pull request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions