From 33026360b379d4e9b9a435c6ddd3eced65e6e848 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 2 Mar 2026 18:42:07 +0100 Subject: [PATCH] Assist: reset view to top after refreshing window content Add w.Addr("0")/dot=addr/show after content writes in refreshList, refreshMailboxWindow, refreshDaemonWindow, and refreshViewBeadWindow so windows no longer scroll to the bottom on open or refresh. Closes anv-hww Co-Authored-By: Claude Sonnet 4.6 --- cmd/Assist/main.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cmd/Assist/main.go b/cmd/Assist/main.go index eb06172..0c6c4a7 100644 --- a/cmd/Assist/main.go +++ b/cmd/Assist/main.go @@ -600,6 +600,9 @@ func refreshList(w *acme.Win) { w.Addr(",") w.Write("data", []byte(buf.String())) w.Ctl("clean") + w.Addr("0") + w.Ctl("dot=addr") + w.Ctl("show") return } @@ -610,6 +613,9 @@ func refreshList(w *acme.Win) { w.Addr(",") w.Write("data", []byte(buf.String())) w.Ctl("clean") + w.Addr("0") + w.Ctl("dot=addr") + w.Ctl("show") return } @@ -627,6 +633,9 @@ func refreshList(w *acme.Win) { w.Addr(",") w.Write("data", []byte(buf.String())) w.Ctl("clean") + w.Addr("0") + w.Ctl("dot=addr") + w.Ctl("show") } // sessionEdit represents a single inline action parsed from the sessions window body. @@ -1041,6 +1050,9 @@ func refreshDaemonWindow(w *acme.Win) { w.Addr(",") w.Write("data", []byte(buf.String())) w.Ctl("clean") + w.Addr("0") + w.Ctl("dot=addr") + w.Ctl("show") } func startDaemon(w *acme.Win) { @@ -1208,6 +1220,9 @@ func refreshMailboxWindow(w *acme.Win, folder, title string) { w.Addr(",") w.Write("data", []byte(buf.String())) w.Ctl("clean") + w.Addr("0") + w.Ctl("dot=addr") + w.Ctl("show") } func shortUUID(id string) string { @@ -2390,6 +2405,9 @@ func refreshViewBeadWindow(w *acme.Win, beadID string, mount string) { w.Addr(",") w.Write("data", []byte(buf.String())) w.Ctl("clean") + w.Addr("0") + w.Ctl("dot=addr") + w.Ctl("show") } func getBead(beadID string, mount string) (*Bead, error) {