Repository navigation
|
Hi so i connected my telegram bot to my running fcc instance but everytime i send a message it uses a new CLI instance how do i make it have memory |
Replies: 1 comment 2 replies
|
Reply to the bot's message instead of sending a new one. In Telegram that's long-press (or swipe left) on the bot's answer and pick Reply, then type your follow-up. FCC keeps each chat as a tree of messages. A message that isn't a reply starts a new tree, and you'll see "Launching new Claude CLI instance..." for it. When your message is a reply, it looks up the message you replied to (your earlier prompt or the bot's status/answer message both work), takes the Claude session id saved on that node and runs the CLI with Because it forks, you can also reply to an older message to branch off from that point while keeping the other thread. If you reply while the earlier turn is still running, it gets queued and continues once that finishes. Standalone I checked this against the current main and ran the repo's handler tests for the fork path, with an AI assistant helping me trace the code. |

Reply to the bot's message instead of sending a new one. In Telegram that's long-press (or swipe left) on the bot's answer and pick Reply, then type your follow-up.
FCC keeps each chat as a tree of messages. A message that isn't a reply starts a new tree, and you'll see "Launching new Claude CLI instance..." for it. When your message is a reply, it looks up the message you replied to (your earlier prompt or the bot's status/answer message both work), takes the Claude session id saved on that node and runs the CLI with
--resume <that session> --fork-session. The status then says "Continuing conversation..." and Claude has the earlier context. You can see this inmessaging/turn_intake.py(the