Skip to content

Expose /diff/snapshot endpoint (code exists in diff.zig) #38

@justrach

Description

@justrach

Context

src/snapshot/diff.zig has a working diffSnapshots() function but no HTTP endpoint exposes it.

Implementation

  1. Add /diff/snapshot?tab_id= route in router.zig
  2. Store previous snapshot per tab in Bridge (or use existing snapshot cache)
  3. Return delta: added/removed/changed nodes
  4. agent-browser equivalent: diff snapshot

Acceptance Criteria

  • Navigate, snapshot, navigate again, call /diff/snapshot → returns meaningful delta
  • Supports optional previous snapshot param

Co-authored-by: blackfloofie 265516171+blackfloofie@users.noreply.github.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    blackfloofieCo-author: 265516171+blackfloofie@users.noreply.github.comenhancementNew feature or requestpriority:p2Medium prioritystatus:doneWork item is complete

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions