From ea940c38f4f99338618cb1689f881f7f9fba96b1 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 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/monitor/monitor.go b/pkg/monitor/monitor.go index 25c3e85..4403847 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 @@ -331,7 +329,6 @@ func (m *Subsystem) checkInbox() string { } `json:"data"` } if json.NewDecoder(httpResp.Body).Decode(&resp) != nil { - m.debugChannel("checkInbox: failed to decode response") return "" } @@ -362,8 +359,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 ""