Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "claudeclaw",
"source": "./",
"description": "Cron-like daemon that runs Claude prompts on a schedule",
"version": "1.0.40",
"version": "1.0.41",
"keywords": [
"cron",
"heartbeat",
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "claudeclaw",
"version": "1.0.40",
"version": "1.0.41",
"description": "Cron-like daemon that runs Claude prompts on a schedule"
}
10 changes: 7 additions & 3 deletions src/commands/telegram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1449,9 +1449,13 @@ async function handleMessage(message: TelegramMessage): Promise<void> {
let streamMsgId: number | null = null;
let hadToolLines = false;
if (busy) {
await sendMessage(config.token, chatId, "Claude is busy — try again in a moment, or use /fork for a quick parallel task.", threadId);
return;
} else {
// Don't drop the message — queue it behind the in-flight run. runUserMessage
// routes through enqueue(), which serializes per-thread (keyed by sessionKey),
// so messages from this chat run in order instead of being silently lost.
// Let the user know it's waiting rather than pretending nothing happened.
await sendMessage(config.token, chatId, "⏳ Claude is busy — your message is queued and will run after the current one finishes. Use /fork for a quick parallel task, or /kill to cancel what's running.", threadId);
}
{
const stream = makeStreamCallback(config.token, chatId, threadId, { verbose });
result = await runUserMessage("telegram", prefixedPrompt, sessionKey, undefined, stream.onChunk, stream.onToolEvent, modelOverride);
const streamResult = await stream.waitForStreamMsg();
Expand Down
Loading