{"record":{"id":"7e102b6d573c3566","repo":"paperclipai/paperclip","slug":"this-file-type-cannot-be-attached-here","errorCode":null,"errorMessage":"This file type cannot be attached here","messagePattern":"This file type cannot be attached here","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ui/src/components/task-chat/TaskChatComposer.tsx","lineNumber":285,"sourceCode":"        {profile?.image ? <AvatarImage src={profile.image} alt=\"\" /> : null}\n        <AvatarFallback>{identityInitials(resolvedLabel)}</AvatarFallback>\n      </Avatar>\n    );\n  }\n\n  return null;\n}\n\nconst MODE_DESCRIPTION: Partial<Record<IssueWorkMode, string>> = {\n  standard: \"Make changes and run work\",\n  planning: \"Draft a plan before acting\",\n  ask: \"Answer questions only, no changes\",\n};\n\n/** v7 per-mode placeholder copy; `{agent}` is the pending assignee's name. */\nfunction modePlaceholder(mode: IssueWorkMode, agentName: string): string {\n  switch (mode) {\n    case \"planning\":\n      return `Plan with ${agentName} — shapes the plan doc, no code changes…`;\n    case \"ask\":\n      return `Ask ${agentName} a question — read-only, nothing runs…`;\n    default:\n      return `Message ${agentName} — describe what you want done…`;\n  }\n}\n\ntype ComposerAttachment = {\n  id: string;\n  name: string;\n  size?: number;\n  status: \"uploading\" | \"attached\" | \"error\";\n  error?: string;\n  /** Set once uploaded; the submit path appends `[name](contentPath)` lines. */\n  contentPath?: string;\n};\n","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/ui/src/components/task-chat/TaskChatComposer.tsx#L267-L303","documentation":"A file was offered to the composer's attach handler whose MIME type is not accepted there (images only). The client-side type guard rejects unsupported file types before any upload starts.","triggerScenarios":"Thrown at ui/src/components/task-chat/TaskChatComposer.tsx:214 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Attach a file of a supported type (e.g. image formats allowed here), or convert the file first."],"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"}