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
{{ message }}
This repository was archived by the owner on May 26, 2026. It is now read-only.
/setconv <id> appears in the /help output and is registered as a Telegram command handler in src/channels/telegram.ts (line 341), but handleCommand() in src/core/bot.ts has no case 'setconv': branch. The command falls through to default: return null, which the Telegram adapter renders as "Failed to set conversation".
Root Cause
src/core/commands.ts line 7: setconv is in the COMMANDS array
src/core/commands.ts line 26: /setconv <id> appears in HELP_TEXT
src/channels/telegram.ts line 341: this.bot.command('setconv', ...) is registered
src/core/bot.ts line 843-986: handleCommand() switch statement has cases for status, heartbeat, reset, cancel, approve, disapprove, model -- but no case for setconv
default: on line 984 returns null
telegram.ts line 351: result || 'Failed to set conversation' shows the fallback
Impact
Users cannot switch conversations from within Telegram (or any channel). The only workaround is manually editing lettabot-agent.json to set the conversationId field, which requires stopping LettaBot, understanding the V2 JSON format, and restarting.
This is especially painful when combined with corrupted conversation history (orphaned tool_use/tool_result messages) -- users have no escape path from a broken conversation without manual file editing.
Expected Behavior
/setconv conv-xxx should update the active conversation for the caller's chat, similar to how the Letta Code CLI's lettabot set-conversation works.
Summary
/setconv <id>appears in the/helpoutput and is registered as a Telegram command handler insrc/channels/telegram.ts(line 341), buthandleCommand()insrc/core/bot.tshas nocase 'setconv':branch. The command falls through todefault: return null, which the Telegram adapter renders as "Failed to set conversation".Root Cause
src/core/commands.tsline 7:setconvis in theCOMMANDSarraysrc/core/commands.tsline 26:/setconv <id>appears inHELP_TEXTsrc/channels/telegram.tsline 341:this.bot.command('setconv', ...)is registeredsrc/core/bot.tsline 843-986:handleCommand()switch statement has cases forstatus,heartbeat,reset,cancel,approve,disapprove,model-- but no case forsetconvdefault:on line 984 returnsnulltelegram.tsline 351:result || 'Failed to set conversation'shows the fallbackImpact
Users cannot switch conversations from within Telegram (or any channel). The only workaround is manually editing
lettabot-agent.jsonto set theconversationIdfield, which requires stopping LettaBot, understanding the V2 JSON format, and restarting.This is especially painful when combined with corrupted conversation history (orphaned tool_use/tool_result messages) -- users have no escape path from a broken conversation without manual file editing.
Expected Behavior
/setconv conv-xxxshould update the active conversation for the caller's chat, similar to how the Letta Code CLI'slettabot set-conversationworks.Reproduction
/setconv conv-<any-valid-id>in TelegramReporter
Community user stardust_supernova (Discord)