{"record":{"id":"2f284774b48a0f97","repo":"different-ai/openwork","slug":"identity-lookup-failed","errorCode":null,"errorMessage":"identity lookup failed","messagePattern":"identity lookup failed","errorType":"http","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ee/apps/diagnostics/app/connections/incident-filters.tsx","lineNumber":34,"sourceCode":"\nexport function IncidentFilters(props: IncidentFiltersProps) {\n  const [error, setError] = useState<string | null>(null)\n  const [busy, setBusy] = useState(false)\n\n  const submit = async (event: FormEvent<HTMLFormElement>) => {\n    event.preventDefault()\n    setBusy(true)\n    setError(null)\n    try {\n      const data = new FormData(event.currentTarget)\n      const organization = String(data.get(\"organization\") ?? \"\").trim()\n      const client = String(data.get(\"client\") ?? \"\").trim()\n      const response = await fetch(\"/api/connections/identity\", {\n        body: JSON.stringify({ organization: organization || undefined, client: client || undefined }),\n        headers: { \"content-type\": \"application/json\" },\n        method: \"POST\",\n      })\n      if (!response.ok) throw new Error(\"identity lookup failed\")\n      const identity = await response.json() as {\n        organizationHash: string | null\n        clientHash: string | null\n      }\n      const query = new URLSearchParams()\n      if (identity.organizationHash) query.set(\"organization\", identity.organizationHash)\n      if (identity.clientHash) query.set(\"client\", identity.clientHash)\n      for (const name of [\"source\", \"phase\", \"outcome\", \"code\", \"hours\"]) {\n        const value = String(data.get(name) ?? \"\").trim()\n        if (value) query.set(name, value)\n      }\n      if (props.unstableOnly) query.set(\"view\", \"unstable\")\n      window.location.assign(`/connections?${query.toString()}`)\n    } catch {\n      setError(\"Could not apply the identity filters. Sign in again, then retry.\")\n      setBusy(false)\n    }\n  }","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/diagnostics/app/connections/incident-filters.tsx#L16-L52","documentation":"Error \"identity lookup failed\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/diagnostics/app/connections/incident-filters.tsx:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}