From 866b7915b524b0da35763a52ae82885945a27248 Mon Sep 17 00:00:00 2001 From: gavrielc Date: Mon, 20 Apr 2026 18:25:32 +0300 Subject: [PATCH] fix(container): add /start to filtered commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Telegram clients send /start when a user first DMs a bot (and when they tap "Start" on a bot profile). It's a platform handshake, not a user-intended prompt — forwarding it to the agent wastes a turn and produces a confused response. Matches the existing filter pattern for /help, /login, /logout, /doctor, /config. Co-Authored-By: Claude Opus 4.7 (1M context) --- container/agent-runner/src/formatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/agent-runner/src/formatter.ts b/container/agent-runner/src/formatter.ts index b03f5bd..2e90720 100644 --- a/container/agent-runner/src/formatter.ts +++ b/container/agent-runner/src/formatter.ts @@ -12,7 +12,7 @@ import { TIMEZONE, formatLocalTime } from './timezone.js'; export type CommandCategory = 'admin' | 'filtered' | 'passthrough' | 'none'; const ADMIN_COMMANDS = new Set(['/remote-control', '/clear', '/compact', '/context', '/cost', '/files']); -const FILTERED_COMMANDS = new Set(['/help', '/login', '/logout', '/doctor', '/config']); +const FILTERED_COMMANDS = new Set(['/help', '/login', '/logout', '/doctor', '/config', '/start']); export interface CommandInfo { category: CommandCategory;