chore(monitor): remove debug logging from check cycle
Some checks failed
CI / test (push) Failing after 3s

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 <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-21 19:41:49 +00:00
parent 5a234c1179
commit 0fda800e8b

View file

@ -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 ""