{"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":6344,"sourceCode":"          mcp: {\n            [gateway.name]: {\n              url: endpoint,\n              headers: { Authorization: `Bearer ${bearerPlaceholder}` },\n            },\n          },\n        },\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":6326,"sourceCodeEnd":6362,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/server/src/services/tool-gateway.ts#L6326-L6362","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":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}