[Bug][Kimi Work][Windows] Fresh local images produce nonexistent blob IDs and make sessions unusable

Summary

On Kimi Work for Windows, reading a valid local PNG through ReadMediaFile can leave an image_url in the conversation whose model-facing blob ID does not exist. The next LLM request then fails with HTTP 400. Because the invalid image part remains in the restored conversation history, every later request in that session fails as well.

Two independent sessions were affected. After the older image_url parts were removed from the first session, it accepted text/tool requests again, but a new ReadMediaFile call immediately triggered the same failure with a different nonexistent blob ID. The second session failed in the same way immediately after reading a new local screenshot.

This is not limited to an old attachment expiring: the two later failures involved newly read, valid local image files.

Environment

  • Product: Kimi Work for Windows
  • App version: 3.2.27.31
  • OS: Microsoft Windows 11 Home Single Language, build 26300
  • Model shown in logs: k3d1-agent
  • Local timezone: Europe/Astrakhan (UTC+4)
  • Log timestamps below: UTC

Steps to reproduce

  1. Open or continue a Kimi Work agent session.
  2. Use ReadMediaFile on a valid local PNG. In the second affected session, the file was a 28,251-byte, 814×249 PNG.
  3. Observe that the tool returns successfully with a kimi-file://f_... image reference.
  4. Let the agent make the next LLM request.
  5. The request fails with:
Invalid request: failed to validate image_url content: blob ID k3.<id> does not exist
  1. Send another request in the same session. It fails again while the invalid image part remains in history.

Expected behavior

  • A newly uploaded image blob should be committed and readable before the next model request references it.
  • If blob upload or resolution fails, the client should retry/re-upload the local image or degrade that image to text.
  • One invalid image reference should not permanently poison the whole session.

Actual behavior

The local image read succeeds, but the following model request returns HTTP 400 because the corresponding k3.... blob ID is missing. The failed reference persists in session history, so subsequent requests also fail.

Request evidence

UTC timestamp Session Missing blob ID Request ID
2026-11-14 21:24:37.277Z A k3.Fqk0Vg3EWV_B-RATkLO5om0_sM_5 e5c70e3cb0421917c87a94045b380a05
2026-11-14 21:59:25.228Z A, after history cleanup and a fresh image read k3.FqWaM5WHO9FfFORlkCf1PNWVGAA- d4c6acd302819d5f797935c035c7eeb0
2026-11-14 22:00:09.201Z B, immediately after a fresh image read k3.FijDxtV-PqvM9XPyf3tPQhXiJc54 fc5f599bb5e3afa5aec6b1bd128eee88

Additional request IDs for repeated failures caused by the first blob:

  • db9a59b92bda743b5ec0661b2b6f3d36
  • 0780ae2c446b91ca49c768d1ca5de00c
  • 53e4fa6dc0b0b25759fa6ef52541280f
  • 683e861e36060ec7871598d64f742cc0

Recovery workaround used

I backed up the affected local sessions and replaced the structured image_url parts in wire.jsonl with text placeholders pointing to the still-existing local media files. No text messages or media files were deleted. After restarting Kimi Work, text-only continuation worked.

This is only a recovery workaround, not a product fix. Reading another image can reintroduce the failure.

Suggested investigation

Please inspect the handoff between local file_... upload records and model-facing k3.... blob IDs, including upload commit/read-after-write timing and blob retention. It would also help to make session restore and request building resilient to missing image blobs by re-uploading from local media or omitting the invalid part with a visible warning.

Sanitized log excerpt (relevant error lines only)
2026-11-14T21:24:37.277Z WARN llm request failed turnStep=6.40 model=k3d1-agent errorName=APIStatusError errorMessage="Invalid request: failed to validate image_url content: blob ID k3.Fqk0Vg3EWV_B-RATkLO5om0_sM_5 does not exist" statusCode=400 diagnostics="{\"requestId\":\"e5c70e3cb0421917c87a94045b380a05\"}"
2026-11-14T21:35:13.771Z WARN llm request failed turnStep=7.1 model=k3d1-agent errorName=APIStatusError errorMessage="Invalid request: failed to validate image_url content: blob ID k3.Fqk0Vg3EWV_B-RATkLO5om0_sM_5 does not exist" statusCode=400 diagnostics="{\"requestId\":\"db9a59b92bda743b5ec0661b2b6f3d36\"}"
2026-11-14T21:35:32.568Z WARN llm request failed turnStep=8.1 model=k3d1-agent errorName=APIStatusError errorMessage="Invalid request: failed to validate image_url content: blob ID k3.Fqk0Vg3EWV_B-RATkLO5om0_sM_5 does not exist" statusCode=400 diagnostics="{\"requestId\":\"0780ae2c446b91ca49c768d1ca5de00c\"}"
2026-11-14T21:36:31.576Z WARN llm request failed turnStep=9.1 model=k3d1-agent errorName=APIStatusError errorMessage="Invalid request: failed to validate image_url content: blob ID k3.Fqk0Vg3EWV_B-RATkLO5om0_sM_5 does not exist" statusCode=400 diagnostics="{\"requestId\":\"53e4fa6dc0b0b25759fa6ef52541280f\"}"
2026-11-14T21:39:06.752Z WARN llm request failed turnStep=10.1 model=k3d1-agent errorName=APIStatusError errorMessage="Invalid request: failed to validate image_url content: blob ID k3.Fqk0Vg3EWV_B-RATkLO5om0_sM_5 does not exist" statusCode=400 diagnostics="{\"requestId\":\"683e861e36060ec7871598d64f742cc0\"}"
2026-11-14T21:59:25.228Z WARN llm request failed turnStep=11.3 model=k3d1-agent errorName=APIStatusError errorMessage="Invalid request: failed to validate image_url content: blob ID k3.FqWaM5WHO9FfFORlkCf1PNWVGAA- does not exist" statusCode=400 diagnostics="{\"requestId\":\"d4c6acd302819d5f797935c035c7eeb0\"}"
2026-11-14T22:00:09.201Z WARN llm request failed turnStep=3.3 model=k3d1-agent errorName=APIStatusError errorMessage="Invalid request: failed to validate image_url content: blob ID k3.FijDxtV-PqvM9XPyf3tPQhXiJc54 does not exist" statusCode=400 diagnostics="{\"requestId\":\"fc5f599bb5e3afa5aec6b1bd128eee88\"}"

The log excerpt contains only relevant error lines; full conversations, project files, and local paths are not included.