Skip to content

gut(providers): collapse isCliProvider hardcoded *-cli checks into CLI_RUNTIME_NAMES#2152

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/collapse-cli-provider-checks-2125
Apr 8, 2026
Merged

gut(providers): collapse isCliProvider hardcoded *-cli checks into CLI_RUNTIME_NAMES#2152
alexey-pelykh merged 1 commit intomainfrom
gut/collapse-cli-provider-checks-2125

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Closes #2125

  • Remove hardcoded "claude-cli" and "codex-cli" special-case branches from isCliProvider() — bare runtime names via CLI_RUNTIME_NAMES are now the only path
  • Remove "claude-cli" legacy fallback from getCliSessionId() and dual-write from setCliSessionId() in cli-session.ts
  • Remove providerOverride === "claude-cli"claudeCliSessionId cleanup from the session expiration handler in agent.ts
  • Update tests: -cli suffixed names now return false from isCliProvider(); legacy claudeCliSessionId test cases removed

Test plan

  • pnpm check passes (format + typecheck + lint)
  • Unit tests pass (1028 files, 8765 tests)
  • isCliProvider("claude")true, isCliProvider("claude-cli")false

🤖 Generated with Claude Code

…I_RUNTIME_NAMES (#2125)

Remove hardcoded `"claude-cli"` and `"codex-cli"` special-case branches
from `isCliProvider()`, `getCliSessionId()`, `setCliSessionId()`, and the
session expiration handler in `agent.ts`. After #2108 all callers pass
bare runtime names, making the `-cli` suffixed paths dead code.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 8, 2026 14:55
@alexey-pelykh alexey-pelykh merged commit 297131b into main Apr 8, 2026
9 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/collapse-cli-provider-checks-2125 branch April 8, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gut(providers): collapse isCliProvider hardcoded *-cli checks into CLI_RUNTIME_NAMES

1 participant