Skip to content

Repo lockfile pins @anthropic-ai/claude-agent-sdk 0.2.105; consult's claude lane gets API 400 on claude-opus-5 in local dev builds #1906

Closed as not planned

Description

@waleedkadous

Problem

In a build from this repo (builder worktrees, local dev), consult's claude lane fails against claude-opus-5 with API 400: "thinking.type.enabled" is not supported for this model (use adaptive). The released/installed consult works. Reported independently by two builders (bugfix-1898, bugfix-1902), who both worked around it by running the claude lane through the installed consult.

Root cause (as reported, to be verified)

packages/codev/package.json declares @anthropic-ai/claude-agent-sdk ^0.2.41, and pnpm-lock.yaml resolves it to 0.2.105. A fresh npm i -g resolves a newer version (0.2.141 observed), which sends the thinking configuration the model accepts. So the lockfile build and the published install behave differently.

Why it matters

  • Builders dogfooding a branch's own consult cannot run the claude lane.
  • Possible release blocker: confirm what the release packaging actually ships. If a release is built from the lockfile, or an adopter's lockfile holds an old resolution, the claude lane breaks for them.

Fix

Raise the declared floor to a version known to work with claude-opus-5, refresh the lockfile, and verify the claude lane end to end from a worktree build. Check whether consult sets the thinking option itself anywhere and whether that should change.

Testing

Run consult -m claude from a worktree build against claude-opus-5 and confirm a review comes back. Confirm the subscription/API-key auth path is unchanged.

Activity

  1. added
    area/consult
    on Nov 16, 2026
  2. waleedkadous commented on Nov 16, 2026

    @waleedkadous
    ContributorAuthor

    On it! Working on a fix now.

  3. added 3 commits that reference this issue on Nov 16, 2026
    c43c7d5
    ca286a8
    f30b2bf
  4. waleedkadous commented on Nov 17, 2026

    @waleedkadous
    ContributorAuthor

    Superseded by issue #1912 (run the claude lane through the installed claude CLI). PR #1907 closed unmerged on the owner's ruling. Until #1912 lands, repo builds still hit this; run the claude lane through the installed consult.

  5. added a commit that references this issue on Nov 17, 2026
  6. waleedkadous commented on Nov 24, 2026

    @waleedkadous
    ContributorAuthor

    Final note: the change that superseded this has landed. Issue #1912 (run consult's claude lane through the installed claude CLI instead of the Agent SDK) merged as PR #1913 and was verified live on 2026-11-23, with follow-ups in PR #1942. Repo builds no longer depend on the pinned @anthropic-ai/claude-agent-sdk version for the claude lane, so the API 400 described here cannot occur on that path. PR #1907 (raising the SDK floor) stays closed unmerged; its branch builder/bugfix-1906 is kept for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/consult

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions