Skip to content
Open
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
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5133,7 +5133,8 @@ bot.command('loop', async (ctx) => {
try {
const result = await runChipLoop(chipKey, rounds, 3);
if (!result.ok) {
await ctx.telegram.sendMessage(chatId, renderTelegramError('Loop failed', result.error));
const loopRepair = '\n\nRepair\n• Make sure the chip key exists. Run /chip create to create a new chip.\n• Check available chips with your Spark admin.';
await ctx.telegram.sendMessage(chatId, renderTelegramError('Loop failed', (result.error || '') + loopRepair));
return;
}
const lines = [
Expand Down Expand Up @@ -5318,7 +5319,8 @@ export async function handleRecursiveCommand(ctx: any, rawOverride?: string): Pr

const result = await runChipLoop(parsed.chipKey!, rounds, 3);
if (!result.ok) {
await ctx.telegram.sendMessage(chatId, renderTelegramError('Recursive loop failed', result.error));
const recursiveRepair = '\n\nRepair\n• Make sure the path or chip key exists. Run /recursive paths to see available paths.\n• Run /chip create to create a new chip.';
await ctx.telegram.sendMessage(chatId, renderTelegramError('Recursive loop failed', (result.error || '') + recursiveRepair));
return;
}
let sync = null;
Expand Down