Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(skills): recheck the skill authoring setting after the import fetch
AdityaUmale1f08f4912291
diff --git a/server/index.ts b/server/index.tsindex d4f4275e8d..b90bf33edc 100644--- a/server/index.ts+++ b/server/index.ts@@ -13531,7 +13531,7 @@ const handleRequest = async (req: IncomingMessage, res: ServerResponse) => {return json(res, 403, { error: "source conversation does not belong to sender" });}if (isSkillSwitchAction(received.action)) { const staged = skillSwitch.stage(from, fromThreadId, received.action, received, appliesDirectly(from.id, fromThreadId)); return json(res, staged.status, staged.body); }- const body = await importedSkillRequest(received); if ("importError" in body) return json(res, 422, { error: body.importError }); if (!internalCapabilityIsActive(internalCapability)) return json(res, 401, { error: TURN_ENDED_REFUSAL });+ const body = await importedSkillRequest(received); if ("importError" in body) return json(res, 422, { error: body.importError }); if (!internalCapabilityIsActive(internalCapability)) return json(res, 401, { error: TURN_ENDED_REFUSAL }); if (!skillAuthoringEnabled(cfg)) return json(res, 403, { error: "skill authoring is not enabled in Settings" });const direct = appliesDirectly(from.id, fromThreadId);const persistence = skillProposalPersistence(from.id, fromThreadId, !direct);if (!persistence.ok) return json(res, persistence.status, { error: persistence.error });