{"record":{"id":"4c35713e540cd741","repo":"paperclipai/paperclip","slug":"inboxarchivedbyuserid-me-requires-board-authentica","errorCode":null,"errorMessage":"inboxArchivedByUserId=me requires board authentication","messagePattern":"inboxArchivedByUserId=me requires board authentication","errorType":"http","errorClass":null,"httpStatus":403,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":6138,"sourceCode":"  function toValidTimestamp(value: Date | string | null | undefined) {\n    if (!value) return null;\n    const timestamp = value instanceof Date ? value.getTime() : new Date(value).getTime();\n    return Number.isFinite(timestamp) ? timestamp : null;\n  }\n\n  function isQueuedIssueCommentForActiveRun(params: {\n    comment: {\n      authorAgentId?: string | null;\n      createdAt?: Date | string | null;\n    };\n    activeRun: {\n      agentId?: string | null;\n      startedAt?: Date | string | null;\n      createdAt?: Date | string | null;\n    };\n  }) {\n    const activeRunStartedAtMs =\n      toValidTimestamp(params.activeRun.startedAt) ?? toValidTimestamp(params.activeRun.createdAt);\n    const commentCreatedAtMs = toValidTimestamp(params.comment.createdAt);\n\n    if (activeRunStartedAtMs === null || commentCreatedAtMs === null) return false;\n    if (params.comment.authorAgentId && params.comment.authorAgentId === params.activeRun.agentId) return false;\n    return commentCreatedAtMs >= activeRunStartedAtMs;\n  }\n  async function getClosedIssueExecutionWorkspace(issue: { executionWorkspaceId?: string | null }) {\n    if (!issue.executionWorkspaceId) return null;\n    const workspace = await executionWorkspacesSvc.getById(issue.executionWorkspaceId);\n    if (!workspace || !isClosedIsolatedExecutionWorkspace(workspace)) return null;\n    return workspace;\n  }\n\n  // Reopen the closed isolated workspace that a guard found, so the request can\n  // continue. The return value tells the caller what happened:\n  //   \"reopened\"    - this request rebuilt the workspace and set the\n  //                   reopen-pending flag. The caller must install the\n  //                   consumption guard so the flag cannot leak.","sourceCodeStart":6120,"sourceCodeEnd":6156,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L6120-L6156","documentation":"403 from the issue list route: the query used inboxArchivedByUserId=me, which requires a resolvable board user, but no such user context exists for the actor.","triggerScenarios":"Thrown at server/src/routes/issues.ts:5832 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the request so it satisfies the condition stated in the error message, then retry; see the throwing line in the named file for the exact check."],"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-14T00:17:10.932Z"}