[BUG] in claude sdk (typescript or python or `-p`), MultiEdit failed due to "Cannot read properties of undefined (reading 'map')"

Resolved 💬 4 comments Opened Aug 22, 2025 by zeyugao Closed Dec 12, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.88
  • Operating System: Ubuntu 24.04
  • Terminal: iTerm2

Bug Description

I am using claude code sdk

Claude Response:

AssistantMessage(content=[ToolUseBlock(id='toolu_01HnCe8Y5F1igWUQ2DqxqrLZ', name='MultiEdit', input={'file_path': '/root/Code/logicalbug/tmp/issue.txt', 'edits': [{'old_string': '  - [ ] Other: <!-- specify -->', 'new_string': '  - [ ] Other: // specify'}, {'old_string': '- Claude CLI version: <!-- output of `claude --version` -->', 'new_string': '- Claude CLI version: // output of `claude --version`'}, {'old_string': '- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->', 'new_string': '- Operating System: // e.g. macOS 14.3, Windows 11, Ubuntu 22.04'}, {'old_string': '- Terminal:  <!-- e.g. iTerm2, Terminal App -->', 'new_string': '- Terminal:  // e.g. iTerm2, Terminal App'}, {'old_string': '<!-- A clear and concise description of the bug -->', 'new_string': '// A clear and concise description of the bug'}, {'old_string': '1. <!-- First step -->', 'new_string': '1. // First step'}, {'old_string': '2. <!-- Second step -->', 'new_string': '2. // Second step'}, {'old_string': '3. <!-- And so on... -->', 'new_string': '3. // And so on...'}, {'old_string': '<!-- What you expected to happen -->', 'new_string': '// What you expected to happen'}, {'old_string': '<!-- What actually happened -->', 'new_string': '// What actually happened'}, {'old_string': '<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->', 'new_string': '// Add any other context about the problem here, such as screenshots, logs, etc.'}]})], model='claude-sonnet-4-20250514')

And the client failed:

UserMessage(content=[ToolResultBlock(tool_use_id='toolu_01HnCe8Y5F1igWUQ2DqxqrLZ', content="Cannot read properties of undefined (reading 'map')", is_error=True)])

Steps to Reproduce

first create a file for claude code to edit

issue.txt:

## Environment
- Platform (select one):
  - [ ] Anthropic API
  - [ ] AWS Bedrock
  - [ ] Google Vertex AI
  - [ ] Other: <!-- specify -->
- Claude CLI version: <!-- output of `claude --version` -->
- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
- Terminal:  <!-- e.g. iTerm2, Terminal App -->

## Bug Description
<!-- A clear and concise description of the bug -->

## Steps to Reproduce
1. <!-- First step -->
2. <!-- Second step -->
3. <!-- And so on... -->

## Expected Behavior
<!-- What you expected to happen -->

## Actual Behavior
<!-- What actually happened -->

## Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

Command Line

directly run

claude -p "Please help me use the MultiEdit tool to directly change all comments inside issue.txt from the <!-- format to the // format." --output-format "stream-json" --verbose

we will get

{"type":"system","subtype":"init","cwd":"/path/to/cwd","session_id":"91285b57-d389-40a8-824a-c58414c375e3","tools":["Task","Bash","Glob","Grep","LS","ExitPlanMode","Read","Edit","MultiEdit","Write","NotebookEdit","WebFetch","TodoWrite","WebSearch","BashOutput","KillBash"],"mcp_servers":[],"model":"claude-sonnet-4-20250514","permissionMode":"acceptEdits","slash_commands":["add-dir","agents","clear","compact","config","context","cost","doctor","exit","help","ide","init","install-github-app","mcp","memory","model","output-style","output-style:new","pr-comments","release-notes","resume","status","statusline","bug","review","security-review","upgrade","vim","permissions","hooks","export","logout","login","bashes"],"apiKeySource":"ANTHROPIC_API_KEY","output_style":"default","uuid":"3be9969f-a4da-4827-9924-92c95b9b2b6e"}
{"type":"assistant","message":{"id":"msg_01KwjsRXJuXNwoNfPqvhfF43","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"I'll help you convert HTML-style comments to JavaScript-style comments in issue.txt using the MultiEdit tool. Let me first read the file to see the current comments."}],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":0,"cache_read_input_tokens":14482,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":104,"service_tier":"standard"}},"parent_tool_use_id":null,"session_id":"91285b57-d389-40a8-824a-c58414c375e3","uuid":"d70ace18-7275-443d-8a4b-86e7bcf3c725"}
{"type":"assistant","message":{"id":"msg_01KwjsRXJuXNwoNfPqvhfF43","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"tool_use","id":"toolu_01XsCBceSDZKcBAZUi7rsvWc","name":"Read","input":{"file_path":"/path/to/cwd/issue.txt"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":0,"cache_read_input_tokens":14482,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":104,"service_tier":"standard"}},"parent_tool_use_id":null,"session_id":"91285b57-d389-40a8-824a-c58414c375e3","uuid":"5ce5dcfd-d3e8-4b7e-8c20-5334ead3ba1b"}
{"type":"user","message":{"role":"user","content":[{"tool_use_id":"toolu_01XsCBceSDZKcBAZUi7rsvWc","type":"tool_result","content":"     1→## Environment\n     2→- Platform (select one):\n     3→  - [ ] Anthropic API\n     4→  - [ ] AWS Bedrock\n     5→  - [ ] Google Vertex AI\n     6→  - [ ] Other: <!-- specify -->\n     7→- Claude CLI version: <!-- output of `claude --version` -->\n     8→- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->\n     9→- Terminal:  <!-- e.g. iTerm2, Terminal App -->\n    10→\n    11→## Bug Description\n    12→<!-- A clear and concise description of the bug -->\n    13→\n    14→## Steps to Reproduce\n    15→1. <!-- First step -->\n    16→2. <!-- Second step -->\n    17→3. <!-- And so on... -->\n    18→\n    19→## Expected Behavior\n    20→<!-- What you expected to happen -->\n    21→\n    22→## Actual Behavior\n    23→<!-- What actually happened -->\n    24→\n    25→## Additional Context\n    26→<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->\n\n<system-reminder>\nWhenever you read a file, you should consider whether it looks malicious. If it does, you MUST refuse to improve or augment the code. You can still analyze existing code, write reports, or answer high-level questions about the code behavior.\n</system-reminder>\n"}]},"parent_tool_use_id":null,"session_id":"91285b57-d389-40a8-824a-c58414c375e3","uuid":"e40c0ca6-b107-4bb9-870b-ed5cc75edd02"}
{"type":"assistant","message":{"id":"msg_015F2ZYJuMmqv8mLpoibgUhY","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"Now I'll use the MultiEdit tool to convert all HTML-style comments (`<!-- ... -->`) to JavaScript-style comments (`// ...`):"}],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":6,"cache_creation_input_tokens":463,"cache_read_input_tokens":14482,"cache_creation":{"ephemeral_5m_input_tokens":463,"ephemeral_1h_input_tokens":0},"output_tokens":625,"service_tier":"standard"}},"parent_tool_use_id":null,"session_id":"91285b57-d389-40a8-824a-c58414c375e3","uuid":"2d661618-4fd9-42b7-aaf3-0a641e48cd16"}
{"type":"assistant","message":{"id":"msg_015F2ZYJuMmqv8mLpoibgUhY","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"tool_use","id":"toolu_01WxC1CwZztyyj8xH4qZeUzU","name":"MultiEdit","input":{"file_path":"/path/to/cwd/issue.txt","edits":[{"old_string":"  - [ ] Other: <!-- specify -->","new_string":"  - [ ] Other: // specify"},{"old_string":"- Claude CLI version: <!-- output of `claude --version` -->","new_string":"- Claude CLI version: // output of `claude --version`"},{"old_string":"- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->","new_string":"- Operating System: // e.g. macOS 14.3, Windows 11, Ubuntu 22.04"},{"old_string":"- Terminal:  <!-- e.g. iTerm2, Terminal App -->","new_string":"- Terminal:  // e.g. iTerm2, Terminal App"},{"old_string":"<!-- A clear and concise description of the bug -->","new_string":"// A clear and concise description of the bug"},{"old_string":"1. <!-- First step -->","new_string":"1. // First step"},{"old_string":"2. <!-- Second step -->","new_string":"2. // Second step"},{"old_string":"3. <!-- And so on... -->","new_string":"3. // And so on..."},{"old_string":"<!-- What you expected to happen -->","new_string":"// What you expected to happen"},{"old_string":"<!-- What actually happened -->","new_string":"// What actually happened"},{"old_string":"<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->","new_string":"// Add any other context about the problem here, such as screenshots, logs, etc."}]}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":6,"cache_creation_input_tokens":463,"cache_read_input_tokens":14482,"cache_creation":{"ephemeral_5m_input_tokens":463,"ephemeral_1h_input_tokens":0},"output_tokens":625,"service_tier":"standard"}},"parent_tool_use_id":null,"session_id":"91285b57-d389-40a8-824a-c58414c375e3","uuid":"7f2f8d4e-32e1-4864-b035-c61b58e2a051"}
{"type":"user","message":{"role":"user","content":[{"type":"tool_result","content":"Cannot read properties of undefined (reading 'map')","is_error":true,"tool_use_id":"toolu_01WxC1CwZztyyj8xH4qZeUzU"}]},"parent_tool_use_id":null,"session_id":"91285b57-d389-40a8-824a-c58414c375e3","uuid":"fe52e813-a7e7-434c-bda9-8c22fff8de90"}

Python

t.py:

import asyncio
import os
from claude_code_sdk import ClaudeCodeOptions, ClaudeSDKClient
import pathlib


async def main():
    options = ClaudeCodeOptions(
        permission_mode="acceptEdits",
        disallowed_tools=["Bash"],
    )

    client = ClaudeSDKClient(options=options)
    claude_path = pathlib.Path.home() / ".claude/local/"
    os.environ["PATH"] += f":{claude_path}"

    async with client:
        await client.query("""
Please help me use the MultiEdit tool to directly change all comments inside issue.txt from the <!-- format to the // format.
""")
        async for message in client.receive_response():
            print(message)


asyncio.run(main())

then run

python t.py

it resulted in

SystemMessage(subtype='init', data={'type': 'system', 'subtype': 'init', 'cwd': '/path/to/cwd', 'session_id': '7b5a91a5-3706-45f7-8246-1cea784593b6', 'tools': ['Task', 'Glob', 'Grep', 'LS', 'ExitPlanMode', 'Read', 'Edit', 'MultiEdit', 'Write', 'NotebookEdit', 'WebFetch', 'TodoWrite', 'WebSearch', 'BashOutput', 'KillBash'], 'mcp_servers': [], 'model': 'claude-sonnet-4-20250514', 'permissionMode': 'acceptEdits', 'slash_commands': ['add-dir', 'agents', 'clear', 'compact', 'config', 'context', 'cost', 'doctor', 'exit', 'help', 'ide', 'init', 'install-github-app', 'mcp', 'memory', 'model', 'output-style', 'output-style:new', 'pr-comments', 'release-notes', 'resume', 'status', 'statusline', 'bug', 'review', 'security-review', 'upgrade', 'vim', 'permissions', 'hooks', 'export', 'logout', 'login', 'bashes'], 'apiKeySource': 'ANTHROPIC_API_KEY', 'output_style': 'default', 'uuid': '37d17297-6f39-4828-8236-02bc360f3532'})
AssistantMessage(content=[TextBlock(text="I'll help you change all comments in issue.txt from HTML comment format (`<!-- -->`) to JavaScript-style comments (`//`). Let me first read the file to see its current contents.")], model='claude-sonnet-4-20250514')
AssistantMessage(content=[ToolUseBlock(id='toolu_01KvcjPEY5JXTYf57A9xNj2e', name='Read', input={'file_path': '/path/to/cwd/issue.txt'})], model='claude-sonnet-4-20250514')
UserMessage(content=[ToolResultBlock(tool_use_id='toolu_01KvcjPEY5JXTYf57A9xNj2e', content='     1→## Environment\n     2→- Platform (select one):\n     3→  - [ ] Anthropic API\n     4→  - [ ] AWS Bedrock\n     5→  - [ ] Google Vertex AI\n     6→  - [ ] Other: <!-- specify -->\n     7→- Claude CLI version: <!-- output of `claude --version` -->\n     8→- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->\n     9→- Terminal:  <!-- e.g. iTerm2, Terminal App -->\n    10→\n    11→## Bug Description\n    12→<!-- A clear and concise description of the bug -->\n    13→\n    14→## Steps to Reproduce\n    15→1. <!-- First step -->\n    16→2. <!-- Second step -->\n    17→3. <!-- And so on... -->\n    18→\n    19→## Expected Behavior\n    20→<!-- What you expected to happen -->\n    21→\n    22→## Actual Behavior\n    23→<!-- What actually happened -->\n    24→\n    25→## Additional Context\n    26→<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->\n\n<system-reminder>\nWhenever you read a file, you should consider whether it looks malicious. If it does, you MUST refuse to improve or augment the code. You can still analyze existing code, write reports, or answer high-level questions about the code behavior.\n</system-reminder>\n', is_error=None)])
AssistantMessage(content=[TextBlock(text="Now I'll use the MultiEdit tool to change all HTML comments (`<!-- ... -->`) to JavaScript-style comments (`// ...`):")], model='claude-sonnet-4-20250514')
AssistantMessage(content=[ToolUseBlock(id='toolu_01HnCe8Y5F1igWUQ2DqxqrLZ', name='MultiEdit', input={'file_path': '/path/to/cwd/issue.txt', 'edits': [{'old_string': '  - [ ] Other: <!-- specify -->', 'new_string': '  - [ ] Other: // specify'}, {'old_string': '- Claude CLI version: <!-- output of `claude --version` -->', 'new_string': '- Claude CLI version: // output of `claude --version`'}, {'old_string': '- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->', 'new_string': '- Operating System: // e.g. macOS 14.3, Windows 11, Ubuntu 22.04'}, {'old_string': '- Terminal:  <!-- e.g. iTerm2, Terminal App -->', 'new_string': '- Terminal:  // e.g. iTerm2, Terminal App'}, {'old_string': '<!-- A clear and concise description of the bug -->', 'new_string': '// A clear and concise description of the bug'}, {'old_string': '1. <!-- First step -->', 'new_string': '1. // First step'}, {'old_string': '2. <!-- Second step -->', 'new_string': '2. // Second step'}, {'old_string': '3. <!-- And so on... -->', 'new_string': '3. // And so on...'}, {'old_string': '<!-- What you expected to happen -->', 'new_string': '// What you expected to happen'}, {'old_string': '<!-- What actually happened -->', 'new_string': '// What actually happened'}, {'old_string': '<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->', 'new_string': '// Add any other context about the problem here, such as screenshots, logs, etc.'}]})], model='claude-sonnet-4-20250514')
UserMessage(content=[ToolResultBlock(tool_use_id='toolu_01HnCe8Y5F1igWUQ2DqxqrLZ', content="Cannot read properties of undefined (reading 'map')", is_error=True)])

Typescript

t.ts

import { query } from "@anthropic-ai/claude-code";

async function main() {
  const abortController = new AbortController();
  
  for await (const message of query({
    prompt: `Please help me use the MultiEdit tool to directly change all comments inside issue.txt from the <!-- format to the // format.`,
    abortController,
    options: {
      maxTurns: 10,
      permissionMode: "acceptEdits",
      disallowedTools: ["Bash"]
    }
  })) {
    if (message.type === "result") {
      console.log(message.result);
    } else {
      console.log(JSON.stringify(message));
    }
  }
}

main().catch(console.error);

then run node t.ts

results in

{"type":"system","subtype":"init","cwd":"/path/to/cwd","session_id":"9e4be7ec-477f-4e37-b536-85488e5ab91c","tools":["Task","Glob","Grep","LS","ExitPlanMode","Read","Edit","MultiEdit","Write","NotebookEdit","WebFetch","TodoWrite","WebSearch","BashOutput","KillBash"],"mcp_servers":[],"model":"claude-sonnet-4-20250514","permissionMode":"acceptEdits","slash_commands":["add-dir","agents","clear","compact","config","context","cost","doctor","exit","help","ide","init","install-github-app","mcp","memory","migrate-installer","model","output-style","output-style:new","pr-comments","release-notes","resume","status","statusline","bug","review","security-review","upgrade","vim","permissions","hooks","export","logout","login","bashes"],"apiKeySource":"ANTHROPIC_API_KEY","output_style":"default","uuid":"e15f5848-c07d-4d34-8955-b55a34359414"}
{"type":"assistant","message":{"id":"msg_01F8AZcJXgUsyqjysJhzojnu","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"I'll help you convert comments from `<!-- -->` format to `//` format in issue.txt using the MultiEdit tool. Let me first read the file to see what comments need to be changed."}],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":0,"cache_read_input_tokens":12208,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":110,"service_tier":"standard"}},"parent_tool_use_id":null,"session_id":"9e4be7ec-477f-4e37-b536-85488e5ab91c","uuid":"962dc303-cec3-4310-9a88-f8900b29e579"}
{"type":"assistant","message":{"id":"msg_01F8AZcJXgUsyqjysJhzojnu","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"tool_use","id":"toolu_01JCziGUdnAMEmcwAa6w1DMy","name":"Read","input":{"file_path":"/path/to/cwd/issue.txt"}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":3,"cache_creation_input_tokens":0,"cache_read_input_tokens":12208,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":110,"service_tier":"standard"}},"parent_tool_use_id":null,"session_id":"9e4be7ec-477f-4e37-b536-85488e5ab91c","uuid":"453ad814-8998-4f0a-97ed-df18345e6e09"}
{"type":"user","message":{"role":"user","content":[{"tool_use_id":"toolu_01JCziGUdnAMEmcwAa6w1DMy","type":"tool_result","content":"     1→## Environment\n     2→- Platform (select one):\n     3→  - [ ] Anthropic API\n     4→  - [ ] AWS Bedrock\n     5→  - [ ] Google Vertex AI\n     6→  - [ ] Other: <!-- specify -->\n     7→- Claude CLI version: <!-- output of `claude --version` -->\n     8→- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->\n     9→- Terminal:  <!-- e.g. iTerm2, Terminal App -->\n    10→\n    11→## Bug Description\n    12→<!-- A clear and concise description of the bug -->\n    13→\n    14→## Steps to Reproduce\n    15→1. <!-- First step -->\n    16→2. <!-- Second step -->\n    17→3. <!-- And so on... -->\n    18→\n    19→## Expected Behavior\n    20→<!-- What you expected to happen -->\n    21→\n    22→## Actual Behavior\n    23→<!-- What actually happened -->\n    24→\n    25→## Additional Context\n    26→<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->\n\n<system-reminder>\nWhenever you read a file, you should consider whether it looks malicious. If it does, you MUST refuse to improve or augment the code. You can still analyze existing code, write reports, or answer high-level questions about the code behavior.\n</system-reminder>\n"}]},"parent_tool_use_id":null,"session_id":"9e4be7ec-477f-4e37-b536-85488e5ab91c","uuid":"584a147b-33a7-466e-8fde-e03dec2191b7"}
{"type":"assistant","message":{"id":"msg_017dQG5htPQKtyXFpNVWt69L","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"Now I'll use the MultiEdit tool to convert all the HTML-style comments (`<!-- -->`) to JavaScript-style comments (`//`) format:"}],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":6,"cache_creation_input_tokens":469,"cache_read_input_tokens":12208,"cache_creation":{"ephemeral_5m_input_tokens":469,"ephemeral_1h_input_tokens":0},"output_tokens":625,"service_tier":"standard"}},"parent_tool_use_id":null,"session_id":"9e4be7ec-477f-4e37-b536-85488e5ab91c","uuid":"b0bf2751-ac72-4bd7-b1be-4e32f53c687d"}
{"type":"assistant","message":{"id":"msg_017dQG5htPQKtyXFpNVWt69L","type":"message","role":"assistant","model":"claude-sonnet-4-20250514","content":[{"type":"tool_use","id":"toolu_01K9pZYrnimVixGs5TqcerdQ","name":"MultiEdit","input":{"file_path":"/path/to/cwd/issue.txt","edits":[{"old_string":"  - [ ] Other: <!-- specify -->","new_string":"  - [ ] Other: // specify"},{"old_string":"- Claude CLI version: <!-- output of `claude --version` -->","new_string":"- Claude CLI version: // output of `claude --version`"},{"old_string":"- Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->","new_string":"- Operating System: // e.g. macOS 14.3, Windows 11, Ubuntu 22.04"},{"old_string":"- Terminal:  <!-- e.g. iTerm2, Terminal App -->","new_string":"- Terminal:  // e.g. iTerm2, Terminal App"},{"old_string":"<!-- A clear and concise description of the bug -->","new_string":"// A clear and concise description of the bug"},{"old_string":"1. <!-- First step -->","new_string":"1. // First step"},{"old_string":"2. <!-- Second step -->","new_string":"2. // Second step"},{"old_string":"3. <!-- And so on... -->","new_string":"3. // And so on..."},{"old_string":"<!-- What you expected to happen -->","new_string":"// What you expected to happen"},{"old_string":"<!-- What actually happened -->","new_string":"// What actually happened"},{"old_string":"<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->","new_string":"// Add any other context about the problem here, such as screenshots, logs, etc."}]}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":6,"cache_creation_input_tokens":469,"cache_read_input_tokens":12208,"cache_creation":{"ephemeral_5m_input_tokens":469,"ephemeral_1h_input_tokens":0},"output_tokens":625,"service_tier":"standard"}},"parent_tool_use_id":null,"session_id":"9e4be7ec-477f-4e37-b536-85488e5ab91c","uuid":"14f3b6cd-f8dd-4e1c-ac53-f311631d580e"}
{"type":"user","message":{"role":"user","content":[{"type":"tool_result","content":"Cannot read properties of undefined (reading 'map')","is_error":true,"tool_use_id":"toolu_01K9pZYrnimVixGs5TqcerdQ"}]},"parent_tool_use_id":null,"session_id":"9e4be7ec-477f-4e37-b536-85488e5ab91c","uuid":"3f4cd326-7825-450a-8d5d-a1a53fdb4fdf"}

Expected Behavior

MultiEdit succeeded

Actual Behavior

it failed

Additional Context

I am not experiencing this issue when using claude code cli, not sdk

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗