protocol/server: expose an explicit Claude-family capability on provider_list (migration notice for Anthropic-compatible providers)

Open
#9,191 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
api, backend

Research direction

Read the review of PR #9190, then inspect provider_list, the provider classes' claudeFamily flags, anthropic-compatible-session.js, and the dashboard migration notice. Check how the provider allowlist identifies Claude model ids and how server tests cover each provider class. Done means the explicit capability is returned and used by the notice, with tests covering every provider class and the Anthropic-compatible case decided.

Written by the indexing model from the issue text.

Description

enhancement from-review

Context

Found in the review of PR #9190 (#9175). The New Session migration notice ("A saved default from an older version was cleared (model …)") now decides which providers it applies to using capabilities.thinkingLevelLegacyFallback from provider_list. The server derives that capability from the provider class's claudeFamily flag (isClaudeProvider).

Description

  1. The signal is indirect. thinkingLevelLegacyFallback is a thinking-level capability that happens to equal "Claude family" today. If a Claude-family provider stopped using the legacy thinking fallback, or a non-Claude provider started using it, the notice would quietly change behaviour. provider_list should expose an explicit capability, for example claudeFamily: true, or acceptsClaudeModelIds, and the dashboard should key on that.
  2. Config-driven Anthropic-compatible providers are not covered. anthropic-compatible-session.js sets claudeFamily = false, because these endpoints use strict operator-chosen model allowlists. An operator who points one at Anthropic with Claude model ids can still use a cleared Claude pin, and the notice never explains it there. The new capability should be true for an Anthropic-compatible provider whose allowlist contains Claude ids, or this should be documented as out of scope.

Acceptance Criteria

  • provider_list entries carry an explicit capability for "can run Claude model ids", with server tests pinning its value for every provider class.
  • The dashboard notice keys on it instead of thinkingLevelLegacyFallback.
  • The Anthropic-compatible case is decided and tested.
Dominant language
JavaScript
Stars
7
Forks
1
Avg merge
2h 3m
Merged PRs (30d)
333

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blamechris/chroxy

All issues in blamechris/chroxy

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.