{"record":{"id":"a29cb2d34bc9354e","repo":"paperclipai/paperclip","slug":"no-default-instructions-path-key-for-adapter-type","errorCode":null,"errorMessage":"No default instructions path key for adapter type '${existing.adapterType}'. Provide adapterConfigKey.","messagePattern":"No default instructions path key for adapter type '(.+?)'\\. Provide adapterConfigKey\\.","errorType":"http","errorClass":null,"httpStatus":422,"severity":"error","filePath":"server/src/routes/agents.ts","lineNumber":3997,"sourceCode":"    const actor = getActorInfo(req);\n    const updated = await svc.rollbackConfigRevision(id, revisionId, {\n      agentId: actor.agentId,\n      userId: actor.actorType === \"user\" ? actor.actorId : null,\n    });\n    if (!updated) {\n      res.status(404).json({ error: \"Revision not found\" });\n      return;\n    }\n\n    await logActivity(db, {\n      companyId: updated.companyId,\n      actorType: actor.actorType,\n      actorId: actor.actorId,\n      agentId: actor.agentId,\n      runId: actor.runId,\n      agentApiKeyId: actor.agentApiKeyId,\n      action: \"agent.config_rolled_back\",\n      entityType: \"agent\",\n      entityId: updated.id,\n      details: { revisionId },\n    });\n\n    res.json(redactAgentRowForResponse(updated));\n  });\n\n  router.get(\"/agents/:id/runtime-state\", async (req, res) => {\n    assertBoard(req);\n    const id = req.params.id as string;\n    const agent = await getAccessibleResource(req, res, svc.getById(id), \"Agent not found\");\n    if (!agent) return;\n    await assertBoardCanManageAgentsForCompany(req, agent.companyId);\n\n    const state = await heartbeat.getRuntimeState(id);\n    res.json(state);\n  });\n","sourceCodeStart":3979,"sourceCodeEnd":4015,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/agents.ts#L3979-L4015","documentation":"Resolution failure in the instructions-path route: updating the agent's instructions source needs a config key to write to, the adapter type has no default instructions path key, and the request did not supply an explicit adapterConfigKey — so there is no destination for the update.","triggerScenarios":"Thrown at server/src/routes/agents.ts:3536 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide adapterConfigKey explicitly for this adapter type, since it has no default instructions path key."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}