fix(grok): improve skills, plans, usage, and turn reliability #8358
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 27 commits into
main fromrefs/pull/8358/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
- apps/server/src/provider/Layers/GrokAdapter.ts line 468OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -296,0 +448,21 @@448+ event: Extract<449+ AcpSessionRuntime.AcpSessionRuntimeEvent,450+ {451+ _tag:452+ | "AssistantItemStarted"453+ | "AssistantItemCompleted"454+ | "PlanUpdated"455+ | "ToolCallUpdated"456+ | "ContentDelta";457+ }458+ >,459+ ) {460+ if (461+ ctx.livenessTurnId !== turnId ||462+ (event._tag === "ContentDelta" && event.text.length === 0)463+ ) {464+ return;465+ }466+ ctx.livenessUpdatesInFlight += 1;467+ try {468+ const activityAtNanos = yield* Clock.currentTimeNanos;apps/server/src/provider/acp/XAiAcpExtension.ts lines 350 to 350OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -198,0 +330,21 @@330+ if (331+ normalized.length === 0 ||332+ !normalized.endsWith("/plan.md") ||333+ pathHasTraversalSegment(normalized)334+ ) {335+ return false;336+ }337+ const win32 = host.platform === "win32";338+ const haystack = win32 ? normalized.toLowerCase() : normalized;339+ for (const prefix of grokPlanSessionPrefixes(host.environment)) {340+ const needle = win32 ? prefix.toLowerCase() : prefix;341+ if (!haystack.startsWith(needle)) {342+ continue;343+ }344+ const rest = haystack.slice(needle.length);345+ // Session layout: <home>/.grok/sessions/<encoded-cwd>/<session-id>/plan.md346+ if (rest !== "plan.md" && rest.endsWith("plan.md")) {347+ return true;348+ }349+ }350+ return CANONICAL_HOME_GROK_SESSION_PATH.test(haystack);
- apps/web/src/components/usage/usageProviders.ts lines 28 to 30OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -24,3 +24,7 @@2424 color: "#d97757",2525 mark: ClaudeAI,2626 },27+ grok: {28+ label: "Grok Build",29+ // Mid zinc so the series stays visible on both light and dark chart surfaces.30+ color: "#71717a",
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
c29d928a-c7b2-41ac-8687-bc7e3fca5c02You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Comment `@coderabbitai help` to get the list of available commands.