Skip to content

Commit 1d9a80c

Browse files
committed
show selected agent at chat start when --agent is passed to improve
clarity. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 18ef2ca commit 1d9a80c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

npm-app/src/cli.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,18 @@ export class CLI {
638638
// Normal interactive mode
639639
if (client.user) {
640640
displayGreeting(this.costMode, client.user.name)
641+
642+
// Show selected agent when provided via --agent
643+
if (this.agent) {
644+
try {
645+
const localAgentInfo = await getLocalAgentInfo()
646+
const agentDisplayName = getAgentDisplayName(
647+
this.agent || 'base',
648+
localAgentInfo,
649+
)
650+
console.log(gray(`\nAgent: ${bold(agentDisplayName)}`))
651+
} catch {}
652+
}
641653
} else {
642654
console.log(
643655
`Welcome to Codebuff! Give us a sec to get your account set up...`,

0 commit comments

Comments
 (0)