Skip to content

Commit ece56a1

Browse files
committed
npm-app: suppress display of loaded agents when a target agent is
specified to reduce startup noise and stabilize test output. Keeps startup output clean in automated flows while preserving the banner when no agent is provided. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 60efbed commit ece56a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

npm-app/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import { rageDetectors } from './rage-detectors'
2424
import { logAndHandleStartup } from './startup-process-handler'
2525
import { recreateShell } from './terminal/run-command'
2626
import { validateAgentDefinitionsIfAuthenticated } from './utils/agent-validation'
27-
import { createAuthHeaders } from './utils/auth-headers'
2827
import { initAnalytics, trackEvent } from './utils/analytics'
28+
import { createAuthHeaders } from './utils/auth-headers'
2929
import { logger } from './utils/logger'
3030
import { Spinner } from './utils/spinner'
3131

@@ -105,7 +105,9 @@ async function codebuff({
105105
validateAgentDefinitionsIfAuthenticated(Object.values(agents))
106106

107107
const codebuffConfig = loadCodebuffConfig()
108-
displayLoadedAgents(codebuffConfig)
108+
if (!agent) {
109+
displayLoadedAgents(codebuffConfig)
110+
}
109111

110112
return agents // pass along for next step
111113
},

0 commit comments

Comments
 (0)