Skip to content

codev import: Claude session bypasses resolveClaudeBin, and its -p contradicts the 'stays interactive' comment #1927

Open

Description

@amrmelsayed

Problem

codev import (packages/codev/src/commands/import.ts, about line 292) starts its Claude session with commandLaunch().spawn('claude', ['-p', prompt], …):

  1. It bypasses resolveClaudeBin(), so CODEV_CLAUDE_BIN and the consult: run the claude review lane through the installed claude CLI instead of the Agent SDK, on the user's subscription #1912 test-isolation guard don't apply. tests: full suite on native Windows stops the live Tower and fails on main (launchers.windows port 4100, EPERM temp cleanup) #1922 fixed the same bypass in codev update and codev adopt (shared runClaudeSession in lib/agent-process.ts). import is the third instance. No test reaches it today.
  2. -p is --print, but the comment above the spawn says "We use -p to pass the initial prompt, but NOT --print so it stays interactive". -p is the short form of --print, so the session it describes as interactive runs in print mode. Which behaviour is intended needs a decision.

Fix shape

Decide whether import should be interactive (as the comment says, and as update/adopt are). Then route it through runClaudeSession (or resolveClaudeBin + the same launch), with the args matching that decision.

Found in CMAP review of #1926 (#1922).

Activity

  1. added
    area/core
    on Nov 18, 2026
  2. added a commit that references this issue on Nov 18, 2026
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/core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions