Skip to content

Claude Code agent returns empty reply with exit code -4058 on Windows #28

@Kieutran26

Description

@Kieutran26

Environmen

Image

t

  • OS: Windows 11
  • Claude Code: v2.1.168
  • html-video studio: v0.7

Problem

After successfully detecting Claude Code as the agent, sending
any prompt results in an empty reply with exit code -4058.

Error message in Studio

"The agent returned an empty reply. Try rephrasing your request"
"agent exit code -4058"

Steps to reproduce

  1. Install Claude Code globally via npm
  2. Start html-video studio
  3. Select Claude Code as agent
  4. Send any prompt (e.g. "create a 30s video about vibe coding")
  5. Agent returns empty reply

Notes

Exit code -4058 on Windows typically indicates the process was
terminated or could not spawn correctly. May be related to how
the studio invokes claude --print on Windows (missing .cmd extension).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions