From b11823641050364850fb09ffdb520a8db3894e00 Mon Sep 17 00:00:00 2001 From: Snider Date: Sat, 25 Apr 2026 10:20:20 +0100 Subject: [PATCH] fix(agent): replace bytes with core.NewBuffer in cmd/core-agent/commands.go Removed bytes import. Used core.NewBuffer() for commandLine output buffer. Co-authored-by: Codex --- cmd/core-agent/commands.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/core-agent/commands.go b/cmd/core-agent/commands.go index b2d5ba6..d1be230 100644 --- a/cmd/core-agent/commands.go +++ b/cmd/core-agent/commands.go @@ -3,7 +3,6 @@ package main import ( - "bytes" "flag" "dappco.re/go/agent/pkg/agentic" @@ -19,7 +18,7 @@ type applicationCommandSet struct { func startupArgs() []string { previous := flag.CommandLine commandLine := flag.NewFlagSet("core-agent", flag.ContinueOnError) - commandLine.SetOutput(&bytes.Buffer{}) + commandLine.SetOutput(core.NewBuffer()) commandLine.BoolFunc("quiet", "", func(string) error { core.SetLevel(core.LevelError) return nil @@ -134,4 +133,3 @@ func (commands applicationCommandSet) env(_ core.Options) core.Result { } return core.Result{OK: true} } -