{"record":{"id":"341d15b8a7cc084d","repo":"antiwork/gumroad","slug":"something-went-wrong-341d15","errorCode":null,"errorMessage":"Something went wrong.","messagePattern":"Something went wrong\\.","errorType":"exception","errorClass":"ResponseError","httpStatus":null,"severity":"error","filePath":"app/javascript/data/agent.ts","lineNumber":200,"sourceCode":"};\n\nexport type Conversation = {\n  id: string;\n  title: string | null;\n  messages: ConversationMessage[];\n};\n\ntype LatestConversationResponse = { success: true; conversation: Conversation | null };\n\n// Fetch the seller's most recently active conversation so the Agent tab can resume it on mount —\n// the way hosted chat products restore your last chat. Resolves null when there's nothing to resume.\nexport const fetchLatestAgentConversation = async (): Promise<Conversation | null> => {\n  const response = await request({\n    method: \"GET\",\n    accept: \"json\",\n    url: Routes.internal_agent_conversations_latest_path(),\n  });\n  if (!response.ok) throw new ResponseError();\n  const json = typia.assert<LatestConversationResponse>(await response.json());\n  return json.conversation;\n};\n\nexport type AgentActionStatus = \"pending\" | \"executing\" | \"applied\" | \"unknown\";\nexport type AgentActionStatusResult = { actionStatus: AgentActionStatus; objects: DisplayObject[] };\ntype AgentActionStatusResponse = {\n  success: true;\n  action_status: AgentActionStatus;\n  objects: DisplayObject[];\n};\n\n// Reconcile a concurrent confirmation against the exact stored proposal instead of guessing from\n// the latest conversation, which another tab can change while the winning request is in flight.\nexport const fetchAgentActionStatus = async (\n  proposalMessageId: string,\n  abortSignal?: AbortSignal,\n): Promise<AgentActionStatusResult> => {","sourceCodeStart":182,"sourceCodeEnd":218,"githubUrl":"https://github.com/antiwork/gumroad/blob/afeacbd394069a1cbf0c6c50ee8e900925050370/app/javascript/data/agent.ts#L182-L218","documentation":"Error \"Something went wrong.\" thrown in antiwork/gumroad.","triggerScenarios":"Thrown at app/javascript/data/agent.ts:200 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":"afeacbd394069a1cbf0c6c50ee8e900925050370","analyzedAt":"2026-08-21T17:58:52.159Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}