Kimi K2 via AWS BEDROCK stops execution #7983

Open
opened 2026-02-16 18:08:51 -05:00 by yindo · 6 comments
Owner

Originally created by @FarrukhCyber on GitHub (Jan 29, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I'm using Kimi K2 Thinking from bedrock and get the following error in plan mode:
undefined: The content field in the Message object at messages.3 is empty. Add a ContentBlock object to the content field and try again.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @FarrukhCyber on GitHub (Jan 29, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I'm using Kimi K2 Thinking from bedrock and get the following error in plan mode: `undefined: The content field in the Message object at messages.3 is empty. Add a ContentBlock object to the content field and try again.` ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:08:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11035: toolResults sent to AWS/Bedrock models rejected for missing json subdocument (similar AWS Bedrock content validation errors)
  • #5630: Amazon Bedrock Kimi2 Thinking output (exact same model + service combination with similar content handling issues)
  • #10996: Kimi K2.5 fails with tool calls when thinking enabled (nearly identical error pattern with missing content field)
  • #1522: Qwen3 as well as Kimi K2 keep stopping mid-chat (Kimi K2 execution stops during operation)
  • #9878: Kimi K2 Thinking tool calling problems - missing arguments (empty content in message fields, similar root cause)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 29, 2026): This issue might be a duplicate of existing issues. Please check: - #11035: toolResults sent to AWS/Bedrock models rejected for missing json subdocument (similar AWS Bedrock content validation errors) - #5630: Amazon Bedrock Kimi2 Thinking output (exact same model + service combination with similar content handling issues) - #10996: Kimi K2.5 fails with tool calls when thinking enabled (nearly identical error pattern with missing content field) - #1522: Qwen3 as well as Kimi K2 keep stopping mid-chat (Kimi K2 execution stops during operation) - #9878: Kimi K2 Thinking tool calling problems - missing arguments (empty content in message fields, similar root cause) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 29, 2026):

can u do opencode export > session.json (run it in your terminal) and send me the file?

@rekram1-node commented on GitHub (Jan 29, 2026): can u do `opencode export > session.json` (run it in your terminal) and send me the file?
Author
Owner

@Ilia-TheNetworkFirm commented on GitHub (Jan 30, 2026):

I have the same problem with AWS Bedrock. It just stops working, no errors. This is the last message from the session

    {
      "info": {
        "id": "msg_c0e43e070001hTCBgH6Zrlvy5d",
        "sessionID": "ses_3f1bc2d5bffe8l5qIdzMHGrHwi",
        "role": "assistant",
        "time": {
          "created": 1769765855344,
          "completed": 1769765856801
        },
        "parentID": "msg_c0e43d2a9001pMXmtXI2LMRfhw",
        "modelID": "moonshot.kimi-k2-thinking",
        "providerID": "amazon-bedrock",
        "mode": "build",
        "agent": "build",
        "path": {
          "cwd": "/app/redacted",
          "root": "/app/redacted"
        },
        "cost": 0.0097642,
        "tokens": {
          "input": 16032,
          "output": 58,
          "reasoning": 0,
          "cache": {
            "read": 0,
            "write": 0
          }
        },
        "finish": "stop"
      },
      "parts": [
        {
          "id": "prt_c0e43e493001pVJ767CY6ZbyDX",
          "sessionID": "ses_3f1bc2d5bffe8l5qIdzMHGrHwi",
          "messageID": "msg_c0e43e070001hTCBgH6Zrlvy5d",
          "type": "step-start",
          "snapshot": "1b7f4a67e65f4eed88bad8209cdba3c06dbcd0af"
        },
        {
          "id": "prt_c0e43e494001gSwAL8wgyxEHpO",
          "sessionID": "ses_3f1bc2d5bffe8l5qIdzMHGrHwi",
          "messageID": "msg_c0e43e070001hTCBgH6Zrlvy5d",
          "type": "reasoning",
          "text": " Now let me check the api POST handler: <|tool_calls_section_begin|> <|tool_call_begin|> tooluse_Vbs57l9NT6-Lu5tgQRwYjA{\"filePath\": \"/app/redacted/apps/api\"} <|tool_call_end|> <|tool_calls_section_end|>",
          "time": {
            "start": 1769765856404,
            "end": 1769765856722
          }
        },
        {
          "id": "prt_c0e43e5d3001w6VIfnEZTNfCZ7",
          "sessionID": "ses_3f1bc2d5bffe8l5qIdzMHGrHwi",
          "messageID": "msg_c0e43e070001hTCBgH6Zrlvy5d",
          "type": "step-finish",
          "reason": "stop",
          "snapshot": "1b7f4a67e65f4eed88bad8209cdba3c06dbcd0af",
          "cost": 0.0097642,
          "tokens": {
            "input": 16032,
            "output": 58,
            "reasoning": 0,
            "cache": {
              "read": 0,
              "write": 0
            }
          }
        }
      ]
    }
@Ilia-TheNetworkFirm commented on GitHub (Jan 30, 2026): I have the same problem with AWS Bedrock. It just stops working, no errors. This is the last message from the session ```json { "info": { "id": "msg_c0e43e070001hTCBgH6Zrlvy5d", "sessionID": "ses_3f1bc2d5bffe8l5qIdzMHGrHwi", "role": "assistant", "time": { "created": 1769765855344, "completed": 1769765856801 }, "parentID": "msg_c0e43d2a9001pMXmtXI2LMRfhw", "modelID": "moonshot.kimi-k2-thinking", "providerID": "amazon-bedrock", "mode": "build", "agent": "build", "path": { "cwd": "/app/redacted", "root": "/app/redacted" }, "cost": 0.0097642, "tokens": { "input": 16032, "output": 58, "reasoning": 0, "cache": { "read": 0, "write": 0 } }, "finish": "stop" }, "parts": [ { "id": "prt_c0e43e493001pVJ767CY6ZbyDX", "sessionID": "ses_3f1bc2d5bffe8l5qIdzMHGrHwi", "messageID": "msg_c0e43e070001hTCBgH6Zrlvy5d", "type": "step-start", "snapshot": "1b7f4a67e65f4eed88bad8209cdba3c06dbcd0af" }, { "id": "prt_c0e43e494001gSwAL8wgyxEHpO", "sessionID": "ses_3f1bc2d5bffe8l5qIdzMHGrHwi", "messageID": "msg_c0e43e070001hTCBgH6Zrlvy5d", "type": "reasoning", "text": " Now let me check the api POST handler: <|tool_calls_section_begin|> <|tool_call_begin|> tooluse_Vbs57l9NT6-Lu5tgQRwYjA{\"filePath\": \"/app/redacted/apps/api\"} <|tool_call_end|> <|tool_calls_section_end|>", "time": { "start": 1769765856404, "end": 1769765856722 } }, { "id": "prt_c0e43e5d3001w6VIfnEZTNfCZ7", "sessionID": "ses_3f1bc2d5bffe8l5qIdzMHGrHwi", "messageID": "msg_c0e43e070001hTCBgH6Zrlvy5d", "type": "step-finish", "reason": "stop", "snapshot": "1b7f4a67e65f4eed88bad8209cdba3c06dbcd0af", "cost": 0.0097642, "tokens": { "input": 16032, "output": 58, "reasoning": 0, "cache": { "read": 0, "write": 0 } } } ] } ```
Author
Owner

@aries1980 commented on GitHub (Jan 30, 2026):

I can confirm the same error with AWS Bedrock with Minimax M2 (after a while), Kimi K2 (after a while), but the Claude Sonnet and Opus 4.5 and AWS Nova Pro works just fine.

@aries1980 commented on GitHub (Jan 30, 2026): I can confirm the same error with AWS Bedrock with Minimax M2 (after a while), Kimi K2 (after a while), but the Claude Sonnet and Opus 4.5 and AWS Nova Pro works just fine.
Author
Owner

@FarrukhCyber commented on GitHub (Jan 30, 2026):

I can confirm the same error with AWS Bedrock with Minimax M2 (after a while), Kimi K2 (after a while), but the Claude Sonnet and Opus 4.5 and AWS Nova Pro works just fine.

I tried Minimax M2 from AWS Bedrock and it worked fine, but I will try it on a long running task. I'm using opencode version 1.1.42

@FarrukhCyber commented on GitHub (Jan 30, 2026): > I can confirm the same error with AWS Bedrock with Minimax M2 (after a while), Kimi K2 (after a while), but the Claude Sonnet and Opus 4.5 and AWS Nova Pro works just fine. I tried Minimax M2 from AWS Bedrock and it worked fine, but I will try it on a long running task. I'm using opencode version `1.1.42`
Author
Owner

@wwnbb commented on GitHub (Feb 12, 2026):

have the same issue with kimi 2.5 on chutes:

▼ 21:52:47 [DEBUG] message_part_updated
  {
    data = {
      _directory = "/Users/admin/work/lua/opencode.nvim",
      part = {
        id = "prt_c5331af40001C45ZG6iO3Atuv4",
        messageID = "msg_c5331a388001LciZI4AcrQA9nK",
        sessionID = "ses_3accfab03ffeUoFBVUj3SfoIEL",
        text = " ## Analysis\n\nNow I understand the issue! The user cannot enter normal mode while using the widget for selecting models. Let me analyze the keymaps in the `create_sea... <|tool_calls_section_begin|> <|tool_call_begin|> functions.grep:6 <|tool_call_argument_begin|> {"pattern": "startinsert", "path": "/Users/admin/work/lua/opencode.nvim", "include": "*.lua"} <|tool_call_end|> <|tool_calls_section_end|>
        time = {
          ["end"] = 1770922367158,
          start = 1770922291008
        },
        type = "reasoning"
      }
    }
  }

@wwnbb commented on GitHub (Feb 12, 2026): have the same issue with kimi 2.5 on chutes: ``` ▼ 21:52:47 [DEBUG] message_part_updated { data = { _directory = "/Users/admin/work/lua/opencode.nvim", part = { id = "prt_c5331af40001C45ZG6iO3Atuv4", messageID = "msg_c5331a388001LciZI4AcrQA9nK", sessionID = "ses_3accfab03ffeUoFBVUj3SfoIEL", text = " ## Analysis\n\nNow I understand the issue! The user cannot enter normal mode while using the widget for selecting models. Let me analyze the keymaps in the `create_sea... <|tool_calls_section_begin|> <|tool_call_begin|> functions.grep:6 <|tool_call_argument_begin|> {"pattern": "startinsert", "path": "/Users/admin/work/lua/opencode.nvim", "include": "*.lua"} <|tool_call_end|> <|tool_calls_section_end|> time = { ["end"] = 1770922367158, start = 1770922291008 }, type = "reasoning" } } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7983