From 0fda800e8bea1c584fde126d0368a588b18bd0c1 Mon Sep 17 00:00:00 2001 From: Snider Date: Sat, 21 Mar 2026 19:41:49 +0000 Subject: [PATCH] chore(monitor): remove debug logging from check cycle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Debug channel events and stderr logging removed — monitor runs silently unless something actually happens. Only real events (agent.complete, inbox.message, harvest.complete) fire now. Co-Authored-By: Virgil --- pkg/monitor/monitor.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/monitor/monitor.go b/pkg/monitor/monitor.go index 25c3e85..d2a00c3 100644 --- a/pkg/monitor/monitor.go +++ b/pkg/monitor/monitor.go @@ -167,7 +167,6 @@ func (m *Subsystem) loop(ctx context.Context) { } func (m *Subsystem) check(ctx context.Context) { - fmt.Fprintf(os.Stderr, "monitor: check cycle running\n") var messages []string // Check agent completions @@ -294,7 +293,6 @@ func (m *Subsystem) checkInbox() string { keyFile := filepath.Join(home, ".claude", "brain.key") data, err := coreio.Local.Read(keyFile) if err != nil { - fmt.Fprintf(os.Stderr, "monitor: checkInbox: no API key (env=%v, file err=%v)\n", apiKeyStr == "", err) return "" } apiKeyStr = data @@ -362,8 +360,6 @@ func (m *Subsystem) checkInbox() string { m.inboxSeeded = true m.mu.Unlock() - m.debugChannel(fmt.Sprintf("checkInbox: unread=%d, maxID=%d, prevMaxID=%d", unread, maxID, prevMaxID)) - // First check after startup: seed, don't fire if !seeded { return ""