Skip to content

feat: Claude Other provider login step in Telegram - #279

Merged
popodidi merged 2 commits into
mainfrom
axe/task-2390--work
Dec 1, 2026
Merged

popodidi merged 2 commits into
mainfrom
axe/task-2390--work

Conversation

@popodidi

@popodidi popodidi commented Dec 1, 2026

Copy link
Copy Markdown
Owner

axe task 2390 (harness C1; design: store doc harvis/research/20261201-claude-code-providers.md, section 5 row C1).

What

  • /runtimes -> Claude login methods gain Other provider… when a provider row has an Anthropic-Messages endpoint (runtime_views::other_provider, G7). It opens O1's provider screen (rows Claude takes: DeepSeek, OpenRouter), then O1's key screen and sealed form (provider on the target, G3). Back returns to the login methods; a provider the runtime already holds is still offered, since its key replaces the one login.
  • runtime::tier_env: when a rule names a provider model that is not one of the row's tier models (claude-code:openrouter/deepseek/deepseek-v4-flash), every Claude Code tier (ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL, CLAUDE_CODE_SUBAGENT_MODEL) uses that model. Without this, background and subagent calls go to the row's defaults, which for OpenRouter are Claude models. Set for task and bot runs. The DeepSeek row's own mapping is unchanged.
  • docs/user: the Telegram step (guides/runtimes-from-telegram.md) and the tier rule (concepts/runtimes.md).

Tests

  • Unit: claude_other_provider_step_reuses_provider_screens, a_provider_model_off_the_rows_tiers_takes_every_claude_tier.
  • Integration: claude_logs_in_to_another_provider_from_telegram runs /runtimes, Log in Claude, Other provider…, DeepSeek, sealed form, key check (mock), ready card; afterwards the login dir holds only DEEPSEEK_API_KEY.
  • Mock run (scratch server+node, real claude 2.1.332): the run gets ANTHROPIC_BASE_URL = the provider URL, the key as a bearer and an empty ANTHROPIC_API_KEY. The mock saw Authorization: Bearer and no x-api-key.
  • Local cargo fmt --check, clippy -D warnings, cargo test --locked, ts_bindings: pass. One run hit an unrelated flake (cost_buttons_edit_the_reply_in_place_with_no_web_button, QueryReturnedNoRows race); it passed 3/3 on rerun.

No schema or protocol change.

🤖 Generated with Claude Code

haojr and others added 2 commits December 1, 2026 15:37
- /runtimes Claude login methods gain "Other provider…" when a provider row
  has an Anthropic-Messages endpoint; it reuses O1's provider and key screens
  and sealed form, Back returns to the login methods, and a held provider is
  still offered (its key replaces the one login)
- runtime::tier_env: a rule's provider model that is none of the row's tier
  models takes every Claude Code tier, so background and subagent calls stay
  on it (OpenRouter's tier defaults are Claude models)
- docs/user: the Telegram step and the tier rule

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@popodidi
popodidi merged commit f6100b9 into main Dec 1, 2026
3 checks passed
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.

1 participant