Skip to content

Implement --follow mode for live trace watching #3

Open

Description

@rajfirke

Description

looprelay play --follow <file> should watch for new lines appended to a trace file using fsnotify and auto-advance to the latest iteration in the TUI.

Implementation

  • Add --follow flag to play command
  • Use fsnotify to watch the trace file for changes
  • Re-parse appended lines and update the player model
  • Show a "LIVE" indicator in the status bar
  • fsnotify is already a dependency

Location

  • internal/cli/play.go
  • internal/player/model.go

Activity

  1. added
    enhancement
    tui
    on Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions