herdr-annotate icon indicating copy to clipboard operation
herdr-annotate copied to clipboard

Feature request: auto-refresh pane when file is edited by the agent

Open Staz opened this issue 2 months ago • 2 comments

Summary

When an annotated file is edited by the agent (e.g. in response to feedback left in a Herdr pane), the pane keeps showing the old content. There's no in-pane refresh action; the only way to see the update is to close the pane and have the agent open a new one against the same file.

Motivation

The review-and-annotate loop is: the agent shows a file, the user leaves comments, the agent applies the feedback, and ideally the user can immediately confirm the result in the same pane. Right now that last step needs a manual refresh, which breaks the flow and makes it easy to review a stale version of the file without realising it.

Proposed Solution

Watch the underlying file (or otherwise detect when the agent writes to it) and automatically reload/refresh the pane's content when a change is detected, so the displayed file always matches what's on disk.

Alternatives Considered

A manual "refresh" action/keybinding in the pane, if automatic file watching isn't practical.

Staz avatar Sep 20 '26 04:09 Staz

Thanks @Staz! r in the review pane reloads the file from disk. Auto-reload is under consideration, but it can orphan notes you've left mid-review, so leaving this open.

backnotprop avatar Oct 27 '26 13:10 backnotprop

The pane now tells you when the file changed on disk, starting with the next plannotator-tui release.

backnotprop avatar Oct 27 '26 13:10 backnotprop