GeezerVison is showing github.com — fix(server): disable Grok startup updates during health checks by bompus · Pull Request #16879 · pingdotgg/t3code
Conversation
bompus
commented
Oct 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Periodic Grok health checks can trigger the CLI's launch-time npm updater. The previously captured Windows health-check process chain was Grok -> npm -> vp, matching the reported brief blank console popup. Health probes should inspect availability without starting an update.
Set GROK_DISABLE_AUTOUPDATER=1 in a copied environment inside checkGrokProviderStatus, now in the Grok provider package. Version, model, skill and ACP metadata probes receive that environment. Normal sessions and manual updates keep their existing environment.
The per-workspace skill discovery in driver.ts still runs with the driver's own environment and is not changed here.
The regression fixture records startup update attempts. It checks that the probe records none, leaves the caller's environment unchanged, and still discovers ready status, authentication and models.
Related: #2537 and the closed #14442. This addresses Grok's updater path; it changes no shared spawn helper, setting or dependency. Maintainer approval of this side-effect change remains pending.
Validation on the refreshed candidate tree:
- Targeted format and lint checks passed for the two changed files.
- Node 24.21.0: all 57 tests passed across
GrokProvider.test.ts, acpSupport.test.ts and skills.test.ts, using --maxWorkers=1.
- Provider-grok
tsc --noEmit passed, with four suggestions in untouched files.
The first test invocation rejected the obsolete --minWorkers option before running tests. The corrected invocation above passed; setup, format and lint were not repeated. Historical Windows evidence used Grok 1.0.46. An isolated native ACP initialization with the disable flag exited successfully without starting the stub npm command. The baseline did not reproduce the updater launch, so this is not a verified visual before/after. No new Windows reproduction or desktop recording accompanies this refresh.
Claude Opus 5.5 (diff review) and GPT-6.1 Sol (merge refresh), in Claude Code and Codex. The model that wrote the original commit was not recorded.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Not approved
Macroscope's review found this PR not approvable — The change alters an existing production health-check path by forcing Grok's launch-time updater off for all probe commands, thereby gating potentially substantial work. Although the scope is narrow and covered by a focused regression test, the runtime behavior change should be reviewed by a human.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-merge checks failed. Please resolve the failing checks before merging.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
bf39b79e-7186-417b-8e26-f174beb5f230
📥 Commits
Reviewing files that changed from the base of the PR and between 7d17488 and d4ffcd9.
📒 Files selected for processing (1)
packages/provider-grok/src/server/status.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
Grok status checks now use a copied environment with auto-updates disabled. The readiness test checks that no update is recorded and that the caller’s GROK_DISABLE_AUTOUPDATER value remains unchanged.
Changes
Grok status probes
| Layer / File(s) |
Summary |
Probe environment and readiness test packages/provider-grok/src/server/status.ts, apps/server/src/provider/GrokProvider.test.ts |
checkGrokProviderStatus copies the provided environment and sets GROK_DISABLE_AUTOUPDATER to "1" for its probes. The readiness test runs with the value set to "0" and verifies that no update is recorded and the value remains unchanged. |
Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk
Merge Risk: ⚪ Minimal · up to d4ffc
The change passes the updater override to status probes while preserving caller settings. The exact CLI-version behavior is unverified, but no concrete merge-blocking defect is established.
-
Security Architecture Review
Security architecture risk: 🔵 Low · up to d4ffc
The change is narrowly scoped and preserves the caller’s environment, credentials, and normal update behavior. No increased privileges or new security finding were established. Confidence remains limited because updater suppression was not conclusively verified against the installed production CLI.
Retained concerns
No architecture-level concerns identified.
-
Security review details
Security Blast Radius
- inferred — The changed control applies to status-probe subprocesses using the existing provider executable and inherited environment. It adds no credential or permission grant. Potential updater effects concern the existing CLI installation, but the external executable’s actual update behavior remains unverified.
Trust Boundaries and Controls
- observed — The existing subprocess trust boundary still accepts the configured CLI path and inherited environment. API-key authentication selection is unchanged, and the metadata probe calls initialize without calling authenticate or creating a session. The new environment setting expresses an updater restriction; it is not a sandbox or privilege boundary.
Resilience and Maintainability Implications
- observed — The regression checks environment isolation and absence of a simulated startup update while retaining readiness and authentication assertions. Because the fake CLI implements the expected variable behavior itself, this is not proof that every production Grok version honors the restriction.
🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
| Check name |
Status |
Explanation |
Resolution |
| Description check |
 |
The description clearly covers the problem, change, scope, related issues, and verification results. However, it states that maintainer approval for the side-effect change is still pending, so the req… |
Obtain and link explicit maintainer approval for the change, including the approval comment, or explain why this focused fix qualifies for an approval exemption under the repository template. |
✅ Passed checks (3 passed)
| Check name |
Status |
Explanation |
| Linked Issues check |
 |
No active directly linked issue remains. Issue #14442 is closed and provides historical context only. Therefore, no linked-issue coding requirements apply. The reported change adds a copied probe envi… |
| Out of Scope Changes check |
 |
The changes stay within the Grok health-probe scope described in the pull request. checkGrokProviderStatus applies the disable flag only to probe commands. Normal sessions and manual updates retain … |
| Title check |
 |
The title clearly and concisely describes the main change: disabling Grok startup updates during health checks. |
Full details: Description check
Explanation
The description clearly covers the problem, change, scope, related issues, and verification results. However, it states that maintainer approval for the side-effect change is still pending, so the required scope and approval information is incomplete.
- Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Required checks are satisfied on d4ffcd9712. Seven passed and one was skipped. CodeRabbit approved that head and reported no actionable findings.
This two-file fix disables Grok's startup updater only for health probes. It preserves the caller's environment and leaves normal sessions and manual updates unchanged.
Could a maintainer confirm the direction and whether this focused fix needs prior scope approval? Integration remains held pending that decision.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by claude-opus-5-5 on behalf of Maria
Hi! We are cleaning up open PRs, and this one does not say which model or harness was used to create it. If this change is really important, we recommend rebuilding the PR with a newer model and noting the model and harness in the PR description.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Replaced by #18075, which names the model and harness. The code is unchanged.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|