Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

refactor: move cli prompt initialization from index to cli channel startup

Salman Qureshi89f2d46528a8
diff --git a/src/channels/cli.ts b/src/channels/cli.ts
index a09ac631..4c0fea46 100644
--- a/src/channels/cli.ts
+++ b/src/channels/cli.ts
@@ -47,6 +47,7 @@ export class CLIChannel extends BaseChannel {
});
this.ready = true;
+ this.showPrompt();
logger.info('CLI channel started');
}
diff --git a/src/index.ts b/src/index.ts
index e27dbdeb..60b84288 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -196,8 +196,6 @@ async function runAgent(): Promise<void> {
console.log(chalk.dim(' Ctrl+C to exit.'));
console.log('');
- cliChannel?.showPrompt();
-
const shutdown = async () => {
console.log('');
console.log(chalk.dim(` ${name} is shutting down...`));