{"record":{"id":"c96f7fd8666e62a0","repo":"deepseek-ai/deepseek-harness","slug":"attachment-error","errorCode":"attachment-error","errorMessage":"Model \"${current.model}\" does not support image input.","messagePattern":"Model \"(.+?)\" does not support image input\\.","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2389,"sourceCode":"          })\n        }\n        const resolved = await turnAgentFor<{ accepted: true }>(request, sessionId)\n        if ('refused' in resolved) return resolved.refused\n        const agent = resolved.agent\n        // Request identity and optional browser zone ride the exact durable user message.\n        const source: MessageSource = {\n          kind: 'user',\n          rpcId: request.rpcId,\n          ...(canonicalTimeZone === undefined ? {} : { clientTimeZone: canonicalTimeZone }),\n        }\n        const hasImage = content.some(part => part.type === 'image')\n        const admit = async (): Promise<RpcResponse<{ accepted: true }>> => {\n          try {\n            if (hasImage) {\n              const current = selectionFor(agent).current\n              const modelInfo = await ctx.llm.resolveModelInfo(current.provider, current.model)\n              if (modelInfo.inputModalities !== undefined && !modelInfo.inputModalities.includes('image')) {\n                return err(request, {\n                  code: 'attachment-error',\n                  message: `Model \"${current.model}\" does not support image input.`,\n                  details: { reason: 'MODEL_DOES_NOT_SUPPORT_IMAGES' },\n                })\n              }\n            }\n            const durable = await durablePromptContent(ctx, content)\n            const message: UserMessage = createUserMessage({ content: durable, source })\n            if (mode === 'steer') agent.steer(message)\n            else agent.followup(message)\n          } catch (error: unknown) {\n            if (error instanceof AttachmentError) {\n              return err(request, {\n                code: 'attachment-error',\n                message: error.message,\n                details: { reason: error.code },\n              })\n            }","sourceCodeStart":2371,"sourceCodeEnd":2407,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2371-L2407","documentation":"Capability check in the api-proxy prompt path: the turn's currently bound model does not admit image content, but the submitted message contains an image part. Raised before the turn is accepted, so the caller can resend without the image or switch models.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2389 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove image inputs from the prompt, or switch the session to a model that supports image input."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}