Repository navigation
fix(grok): the requested model is no longer overridden by launch campaigns - #8
Merged
Merged
Conversation
…aigns Grok's remote "campaigns" can force their own default model in session/new over `-m`. The user's ~/.grok remembers dismissed campaigns, but every Subturn shadow home starts fresh, so the grok-4.7 launch campaign fired on every session: grok-4.6, grok-4.5 and grok-4.7-build-fast all silently ran as grok-4.7. The shadow home now sets GROK_CAMPAIGNS=0. The live smoke now asserts that the model a harness echoes back is the one requested, so a silent substitution fails the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merged
eshatalov
added a commit
that referenced
this pull request
Oct 11, 2026
Version bump for 0.2.0. Minor rather than patch because OpenCode support moved to OpenCode 2 (#6). Ships since 0.1.1: - #5 the newest installed copy of a harness is launched - #6 support OpenCode 2 - #7 OpenCode model is set once, without a retry - #8 Grok's requested model is no longer overridden by launch campaigns - #9 README: the caller's instructions are an inline example Done by Claude Opus 5.5 in Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Grok sessions launched through Subturn always ran on grok-4.7, whatever model the caller asked for. Effort was applied correctly.
Cause
Grok's remote "campaigns" can set their own default model inside
session/new, and that wins over-m. The debug log shows-mbeing read (default model resolved model_id=grok-4.6 source=cli) and then replaced (applying campaign-driven default model model=grok-4.7). The user's real~/.grok/campaigns_state.jsonrecords thegrok-4.7-launchcampaign as dismissed, so their own grok behaves. Each Subturn shadow home starts empty, so the campaign fired on every session.GROK_DEFAULT_MODELand a shadowconfig.tomlare overridden the same way.Fix
GROK_CAMPAIGNS=0, grok's own switch for remote campaign patches.await'sbundle.model) matches the requested one, so a silent substitution fails the test. Before this change the grok live test used grok-4.6, passed, and served grok-4.7.Verification
npm run typecheck,npm test: 34 pass, 3 skipped (live).-mgrok-4.6, grok-4.5, grok-4.7-build-fast and grok-4.7 are each acknowledged as requested.acknowledged_model: grok-4.6,served_models: ["grok-4.6-build"].Unknown ids (including
latest,grok,auto) still fall back silently to grok's default model. That is grok's behavior, visible in the ack, and Subturn does not validate models.Model and harness: Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code