You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TELEGRAM_VERBOSE is parsed with a strict equality check against the literal string 'true':
src/telegram.ts:212
verbose: env.TELEGRAM_VERBOSE==='true',
So TELEGRAM_VERBOSE=1 (also yes / on / TRUE) silently no-ops — the bot starts with verbose logging OFF and gives no indication the value was ignored.
Why it's a papercut
It's declared type: 'boolean' in the env registry (src/config/env.ts:704-709), but only one specific lowercase string is honored.
Every other VERBOSE-style flag in the codebase accepts '1', not 'true' — e.g. AFK_SKILL_STREAM_VERBOSE === '1' (src/cli/slash/builtin-skills.ts:94, src/cli/slash/_lib/create-skill-renderer.ts:56, src/cli/slash/plugin-skills/dispatch.ts:158). Muscle memory (FOO_VERBOSE=1) fails specifically here.
Then simplify the env.ts:705 description. (Alternatively, if strictness is intentional, keep as-is — but then the boolean type annotation is misleading.)
Repro
TELEGRAM_VERBOSE=1 afk telegram start
Observe: no per-message logging; startup does not warn that the value was ignored.
Context: found while debugging Telegram group message delivery — verbose was needed to surface a silently-dropped (migrated-supergroup) chat id, and setting =1 first appeared to "do nothing."
Summary
TELEGRAM_VERBOSEis parsed with a strict equality check against the literal string'true':src/telegram.ts:212So
TELEGRAM_VERBOSE=1(alsoyes/on/TRUE) silently no-ops — the bot starts with verbose logging OFF and gives no indication the value was ignored.Why it's a papercut
type: 'boolean'in the env registry (src/config/env.ts:704-709), but only one specific lowercase string is honored.'1', not'true'— e.g.AFK_SKILL_STREAM_VERBOSE === '1'(src/cli/slash/builtin-skills.ts:94,src/cli/slash/_lib/create-skill-renderer.ts:56,src/cli/slash/plugin-skills/dispatch.ts:158). Muscle memory (FOO_VERBOSE=1) fails specifically here.Suggested one-line fix
Accept the common truthy set, matching the declared
booleantype:Then simplify the
env.ts:705description. (Alternatively, if strictness is intentional, keep as-is — but then thebooleantype annotation is misleading.)Repro
TELEGRAM_VERBOSE=1 afk telegram startContext: found while debugging Telegram group message delivery — verbose was needed to surface a silently-dropped (migrated-supergroup) chat id, and setting
=1first appeared to "do nothing."