fix(server): keep the native Grok default model - #10025
Conversation
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This changes runtime handling of the built-in Grok default model, including session setup and subsequent model switches. The scope is focused and well tested, but default-model behavior warrants human review. You can add or adjust custom eligibility rules. Learn more. |
There was a problem hiding this comment.
reviewed diff and relevant surrounding code at 0ab3cb4150b0243e98340928e06e1435b2432ccd. no blocking findings.
the flavor hook is called during session configuration and the existing grok helper suppresses the product slug while retaining explicit model switching. reviewed the added constructor-to-acp cases and helper/caller context. no code changes needed. i did not rerun the adapter suite or a live grok session.
ci snapshot: no failing or pending checks; some checks are skipped. this is a comment review, not an approval or merge.
There was a problem hiding this comment.
All clear
Posted via Macroscope — Effect Service Conventions
9242b91 to
3d81172
Compare
|
Ran an independent automated first-pass review (Amp/Astra, read-only) on One real finding surfaced, pre-existing but on the path this PR codifies: same-session model switches compare against stale session-setup metadata, so A → B → A skipped the final |
|
Macroscope has since reviewed this pull request. An earlier review was skipped by a cost limit; a review has now completed, so that notice no longer applies. |
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
- Re-route steering that races completion into idempotent follow-up dispatches - Preserve scheduled-task attribution and provider ownership history across clients
Port main's pull-request discovery, active thread ordering, async question dismissal, settlement fixes, provider-session import, attachment context, and provider correctness changes into orchestration v2. Keep the branch's intentional composer and subagent behavior while adopting main's web and mobile fixes. Prevent headless setup terminals from hanging on the color probe, and move the v2 migration block to 050-061 after main claimed 048-049.
Restore the failed-before-start timer guard, align two server fixtures with the reconciled behavior, and remove dead files, exports, and dependencies surfaced by Knip. Drop the temporary branch push trigger now that the PR is mergeable, so each update runs the pull-request workflow once.
Keep main's batch machine-update banner and update action while preserving the v2 runtime-based environment lock used by draft load balancing.
Adopt TypeScript 7 and Effect rc.112 across orchestration v2, including the TaggedError API migration and updated Effect-aware tests. Restore main's composer-aware scroll-to-end clearance while retaining selected-model settings sync, preview recording transfer, image galleries, desktop context menus, and layout hit targets. Regenerate the lockfile on the upgraded dependency baseline.
efd9994 to
6102d00
Compare
Same-runtime model switches compare against the stored session-setup metadata, which is never refreshed after a switch. Switching A -> B -> A therefore skipped the final set_model and silently left the session on B. configureSession now records the model the session actually runs on into activeSessionSetup after applying a selection, for the generic path and flavor-provided applyModelSelection alike, and a Grok regression test covers the return trip against the mock ACP agent.
Advertise bounded socket snapshots and authoritative dispatch validation, omit raw command output and inline file bodies at the wire boundary, and preserve compact status metadata across web and mobile. Add transport-budget coverage for snapshots, resume, commands, legacy import, and projection maintenance.
8f65bb5 to
bde7c4d
Compare
There was a problem hiding this comment.
All clear
Posted via Macroscope — Effect Service Conventions
This comment has been minimized.
This comment has been minimized.
8187b17 to
ada72ce
Compare
The Grok V2 adapter keeps the session’s native model when the default grok-build product entry is selected, while explicit native selections still switch models. ACP setup metadata follows successful same-session changes so switching A → B → A applies the final switch.
Current head
dc4ab339fincludes current V2 base7dd9873edand the shared test-only prerequisite #10865. Merge #10865 first; the topic itself changes 3 files. This rebuild removes the obsolete merged-base history from the PR diff.Validation: 180 focused tests pass across the affected feature and foundation persistence coverage. Scoped server typecheck passes; targeted lint, formatting and diff checks pass. New-head CI is pending.
Earlier live-provider adapter probes reproduced the original issue and verified the feature patch on combined candidate fa6a1ab04. Those are historical adapter evidence, not fresh rendered-client or live-provider verification of this rebuilt head.
Independent cross-provider review was unavailable: the direct Claude Opus 5 high launcher in this audit exited 1 with expired OAuth before inference. No Claude review is claimed.
Targets Orchestrator V2 in #2829. Updated with GPT-6 in Codex/T3.