From 18e4b053990d1191bf8c01b513ffae4c84d88a6c Mon Sep 17 00:00:00 2001 From: Dorian Date: Fri, 13 Mar 2026 23:23:37 +0000 Subject: [PATCH] fix: practice fights send challenges to polling/webhook bots instead of forcing human mode Co-Authored-By: Claude Opus 4.6 --- server/src/routes/fights.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/src/routes/fights.ts b/server/src/routes/fights.ts index 24ee767..0ce9460 100644 --- a/server/src/routes/fights.ts +++ b/server/src/routes/fights.ts @@ -300,9 +300,7 @@ fightsRouter.post('/practice/:botId', botRateLimit(10_000), async (c) => { let fightId: string try { - // Polling bots play practice as human players (answer in browser) - const overrides = isPollingBot(bot.webhookUrl) ? { botAWebhookUrl: 'http://human.local/' } : undefined - fightId = await runFightAsync(botId, opponent.id, 'free', overrides) + fightId = await runFightAsync(botId, opponent.id, 'free') } catch (err) { const msg = sanitizeError(err, 'Fight failed to start') return c.json({ error: msg }, 400)