{"record":{"id":"8d481a522d0e4ccc","repo":"paperclipai/paperclip","slug":"action-declined","errorCode":"action_declined","errorMessage":"This tool action was declined; do not retry the same call","messagePattern":"This tool action was declined; do not retry the same call","errorType":"http","errorClass":"ToolGatewayHttpError","httpStatus":409,"severity":"error","filePath":"server/src/services/tool-gateway.ts","lineNumber":4592,"sourceCode":"        config: { command: \"claude\", args: [\"mcp\", \"add\", gateway.name, endpoint, \"--header\", `Authorization: Bearer ${bearerPlaceholder}`] },\n        notes: [\"Use the equivalent remote HTTP MCP add command for your installed version.\"],\n      },\n      {\n        client: \"opencode\",\n        label: \"OpenCode\",\n        config: { mcp: { [gateway.name]: { url: endpoint, headers: { Authorization: `Bearer ${bearerPlaceholder}` } } } },\n        notes: [\"Use the full Paperclip origin before the endpoint path.\"],\n      },\n    ];\n  }\n\n  function toGateway(row: typeof toolMcpGateways.$inferSelect): ToolMcpGateway {\n    return {\n      id: row.id,\n      companyId: row.companyId,\n      gatewayPublicId: row.gatewayPublicId,\n      name: row.name,\n      displaySlug: row.displaySlug || row.slug,\n      slug: row.slug,\n      description: row.description,\n      status: row.status,\n      profileId: row.profileId,\n      defaultProfileMode: row.defaultProfileMode,\n      contextScopeType: row.contextScopeType,\n      contextScopeId: row.contextScopeId,\n      agentId: row.agentId,\n      projectId: row.projectId,\n      issueId: row.issueId,\n      approvalIssueId: row.approvalIssueId,\n      endpointPath: gatewayEndpointPath(row.gatewayPublicId),\n      authConfig: row.authConfig,\n      headerPolicy: row.headerPolicy,\n      metadataPolicy: row.metadataPolicy,\n      onDemandToolsConfig: row.onDemandToolsConfig,\n      metadata: row.metadata ?? {},\n      createdByAgentId: row.createdByAgentId,","sourceCodeStart":4574,"sourceCodeEnd":4610,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/services/tool-gateway.ts#L4574-L4610","documentation":"Deduplication path: a matching prior action request for the same tool and arguments hash was found in declined state. Instead of re-running or re-asking, the gateway returns this 409 telling the agent the identical call was already declined by a human and must not be retried unchanged.","triggerScenarios":"Thrown at server/src/services/tool-gateway.ts:4424 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The action was declined. Do not retry the same call; change the request or ask the board for guidance."],"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"}