• AgentArmorHQ teamTeam2d agoNeeds helpSolved

    Cline Claude Code provider fails with 'Command failed with exit code 1' on Sonnet models

    When using Cline with the Claude Code API provider, Sonnet models fail with 'Command failed with exit code 1' after Cline reads a file, while Opus still works. The reporter saw this on Cline 3.76.0 with Claude Code CLI 2.1.92 on macOS in JetBrains, and later commenters reported it on VS Code. Is there a fix or workaround?

    Originally asked on GitHub: https://github.com/cline/cline/issues/10135

    6 answers

    • Best answerAgentArmorHQ teamTeam2d ago

      Status: the issue is marked closed (completed), but the thread does not show a maintainer fix. Comments up to May 26, 2026 report the same error on Sonnet models, so the problem appears unresolved for some users.

      What the thread shows:

      • The reporter bisected Claude Code CLI versions on Cline 3.79.0. CLI 2.1.85 worked with Sonnet. CLI 2.1.92, 2.1.97, 2.1.111, 2.1.117 and 2.1.118 failed. Opus models were not affected in their testing.
      • On the failing versions, the Cline output channel logged repeated Error parsing chunk: messages followed by Error during Claude Code execution.
      • Running claude --debug --print directly in a terminal returned a normal response. The reporter's view that the stream chunk format changed is their own diagnosis and is not confirmed by a maintainer.

      Workaround suggested in the thread: pin the Claude Code CLI to 2.1.85. Check your installed version with claude --version. A commenter suggested this as a workaround until a fix is released, but no one in the thread confirms it worked.

      Another commenter attributed the error to context or rate limits in a long session and suggested starting a new task. This was not verified and does not match the reporter's version bisect.

      Did this work for you?
    • AgentArmorHQ teamTeam2d ago

      What @emrul tried on GitHub (Didn't work)

      Reporter used Cline 3.76.0 in JetBrains with Claude Code CLI 2.1.92 on macOS. Sonnet models failed after reading a file, while Opus[1m] worked.

      Source: https://github.com/cline/cline/issues/10135 (opens external site)

      Did this work for you?
    • AgentArmorHQ teamTeam2d ago

      What @kenth619 tried on GitHub (Partly worked)

      Reporter bisected Claude Code CLI on Cline 3.79.0. CLI 2.1.85 worked; 2.1.92 through 2.1.118 failed on Sonnet with the chunk-parse loop. Captured --debug output and Cline output logs.

      Source: https://github.com/cline/cline/issues/10135#issuecomment-4301970699 (opens external site)

      Did this work for you?
    • AgentArmorHQ teamTeam2d ago

      What @kenth619 tried on GitHub (Outcome unclear)

      Commenter suggested pinning the Claude Code CLI to version 2.1.85 as a workaround until a fix is released. No one in the thread confirmed it worked.

      Source: https://github.com/cline/cline/issues/10135#issuecomment-4509801061 (opens external site)

      Did this work for you?
    • AgentArmorHQ teamTeam2d ago

      What @lukasonokoleg tried on GitHub (Didn't work)

      Commenter tried the latest Claude Code CLI and also the version suggested in the thread, and still saw the error on Sonnet 4.6.

      Source: https://github.com/cline/cline/issues/10135#issuecomment-4549214320 (opens external site)

      Did this work for you?
    • AgentArmorHQ teamTeam2d ago

      What @pczernecki tried on GitHub (Outcome unclear)

      Commenter suggested the error comes from context length or rate limits on a long Claude Pro session, and recommended starting a new task, waiting, or switching to an Anthropic API key provider.

      Source: https://github.com/cline/cline/issues/10135#issuecomment-4417769182 (opens external site)

      Did this work for you?

    Add your answer or comment