Repository navigation
feat(claude-dev): ✨ add remoteControlModel, the sessions' default model - #132
Merged
Merged
Conversation
claude remote-control has no --model flag, and its sessions inherit the server's environment: claude-rc exports the option as ANTHROPIC_MODEL before starting it. claude-rc status shows the model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ PR Validation Passed
📋 Pipeline Status
🤖 Generated by @helpers4 CI • 2026-11-08 |
This was referenced Nov 9, 2026
Merged
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Sessions started from claude.ai/code on a devcontainer's Remote Control server run on Claude Code's default model. fajro sets a default in each container's Claude settings (
devc, baxyz/fajro#22), but that only covers containers started bydevc: an option of the feature carries it to every way of opening the container.Change (claude-dev 1.4.1 → 1.4.2)
remoteControlModel(string, default empty = Claude Code's default), saved inremote-control.envlike the other options.claude remote-controlhas no--modelflag, and the sessions it spawns inherit its environment:claude-rcexports the option asANTHROPIC_MODELright after loading its options.claude-rc statusprints amodel:line.Tests
with_remote_controlscenario setsremoteControlModel: sonnet;with_remote_control.shchecks the options file andclaude-rc status(model: sonnet). Reading/proc/<loop>/environwould not work: it only shows the environment at exec, not a laterexport, and the server itself does not start in CI (no login).bash -n, shellcheck clean, andclaude-rc statuswith a fake options file printsmodel: sonnet, ormodel: defaultwithout the option.Not verified: that a session spawned from claude.ai keeps
ANTHROPIC_MODELwhen the user picks another model in the UI (the UI choice is expected to win).🤖 Generated with Claude Code