Skip to content

File read tool fails with absolutePath, offset, limit undefined (DeepSeek 4 Pro, macOS) #312

@ahmadawais

Description

@ahmadawais

Imported from CommandCodeAI/command-code#8 — originally opened by @hamzasgd on 2026-05-04T15:12:33Z

Expected Behavior

  • The agent resolves file paths correctly within the workspace
  • File read operations succeed and return file contents
  • Internal requests include valid parameters:
    • "absolutePath" is a string
    • "offset" and "limit" are defined numbers

Actual Behavior

  • File read operations fail before execution
  • Internal request contains undefined values for required fields
  • Validation layer throws errors and no file content is returned
[
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": ["absolutePath"],
    "message": "Invalid input: expected string, received undefined"
  },
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "undefined",
    "path": ["offset"],
    "message": "Invalid input: expected number, received undefined"
  },
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "undefined",
    "path": ["limit"],
    "message": "Invalid input: expected number, received undefined"
  }
]

Command Code Version

0.24.1

Operating System

macOS

Terminal/IDE

CMUX Terminal

Shell

zsh

Additional context

Environment specifics:

DeepSeek 4 Pro
macOS 26.4.1
Apple M1 Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions