Skip to content

fix(grok): the requested model is no longer overridden by launch campaigns - #8

Merged
eshatalov merged 1 commit into
mainfrom
claude/grok-subturn-investigation-786573
Oct 11, 2026
Merged

eshatalov merged 1 commit into
mainfrom
claude/grok-subturn-investigation-786573

Conversation

@eshatalov

Copy link
Copy Markdown
Owner

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 -m being 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.json records the grok-4.7-launch campaign as dismissed, so their own grok behaves. Each Subturn shadow home starts empty, so the campaign fired on every session. GROK_DEFAULT_MODEL and a shadow config.toml are overridden the same way.

Fix

  • The grok shadow home sets GROK_CAMPAIGNS=0, grok's own switch for remote campaign patches.
  • The live smoke now asserts that the model a harness echoes back (await's bundle.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).
  • ACP handshakes in a shadow home, no prompts: with the fix, -m grok-4.6, grok-4.5, grok-4.7-build-fast and grok-4.7 are each acknowledged as requested.
  • One live turn on grok-4.6/low through the built CLI: 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

…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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T21:27:41.698847Z cccb983 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@eshatalov
eshatalov merged commit 0ae4f84 into main Oct 11, 2026
1 check passed
@eshatalov
eshatalov deleted the claude/grok-subturn-investigation-786573 branch October 11, 2026 21:31
@eshatalov eshatalov mentioned this pull request Oct 11, 2026
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>
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