Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Only stop a hand-off that chose the browser when its move gives up (#5103)
milind-soni92c76a885d87
diff --git a/server/index.ts b/server/index.tsindex 3edd9d2cba..3a3cd34bdf 100644--- a/server/index.ts+++ b/server/index.ts@@ -6105,7 +6105,7 @@ function continueComputerSelection(threadId: string, generation: string | undeficonst selection = computerSelectionTurns.get(threadId);if (!selection || selection.generation !== generation) return false;// A hand-off that does not continue reports that its work was not done (or its own failure), never the move request.- const giveUp = () => { if (computerSelectionTurns.get(threadId) === selection) computerSelectionTurns.delete(threadId); if (selection.handoff?.outcome) settleDirectCoordination(generation, stoppedHandoffResult(selection.handoff.outcome)); else if (selection.handoff && generation && directCoordinationSettlers.has(generation)) stoppedHandoffs.stop(generation); };+ const giveUp = () => { if (computerSelectionTurns.get(threadId) === selection) computerSelectionTurns.delete(threadId); if (selection.handoff?.outcome) settleDirectCoordination(generation, stoppedHandoffResult(selection.handoff.outcome)); else if (selection.handoff && selection.selected && generation && directCoordinationSettlers.has(generation)) stoppedHandoffs.stop(generation); };if (!succeeded || !selection.selected || hasQueuedSteeredMessages(selection.botId, threadId)) return giveUp(), false;const surface = selection.selected;setImmediate(() => {