GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(grok): improve skills, plans, usage, and turn reliability by t3dotgg · Pull Request #8358 · pingdotgg/t3code

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Aug 27, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Grok threads miss skills, reasoning controls, proposed plans, and usage data. Some turns stay on Working after ACP stops responding.

Continues #7638 by @1xpixi. The original commits and authorship are preserved, including work from @SunkenInTime, @ahmed-besic, @mbrow190, @lnieuwenhuis, and @gbarros-dev. This PR retains the original Grok changes and adds fixes found during review:

  • Keep "Always allow this session" scoped to the matching operation. A different command still asks. A changed shell-command description does not invalidate the approval.
  • Use the provider instance's environment when finding Grok plan files.
  • Fix the shared ACP parser's unchecked array access so the server typecheck passes.
  • Add focused tests and an opt-in real-Grok turn test.

Verification

  • 194 focused tests passed, including Grok, shared ACP, Cursor, and usage handling.
  • Five real CLI tests passed against Grok 1.0.5, covering authentication, model discovery, reasoning selection, and a streamed model response.
  • Real Grok adapter checks passed in a private test home: approve a command for the session, repeat it without another prompt, request approval for a different command, deny it, and capture a proposed plan without implementing it.
  • Parsed token and cost records written by the real Grok CLI.
  • Server and web typechecks passed. Changed-file lint and formatting passed.
  • Mobile typecheck reports 56 navigation errors. Clean main at d3c24a14b produces identical output. No new mobile type errors.

No live T3 state or normal Grok state was changed. Fresh browser verification and before/after captures have not been run. The screenshots below are the contributor's existing evidence from #7638, not captures of this follow-up branch.

Original UI evidence

Grok usage, from @1xpixi's Windows desktop build:

Grok Build on the Usage page

Grok reasoning control, from the same build:

Grok composer with High Effort

Model: GPT-5.6 Sol. Harness: Codex in T3 Code.


Note

Medium Risk
Touches Grok turn lifecycle, permission mapping, and ACP parsing used beyond Grok; behavior changes (stall detection, rate-limit errors, session approval scoping) can affect live threads if mis-tuned.

Overview
Grok integration gains skill discovery (grok inspect --json), ACP-driven reasoning effort in the model picker and per-turn session/set_model metadata, and plan mode support that surfaces plan.md writes and _x.ai/exit_plan_mode as proposed-plan events while unblocking the native approval gate.

The Grok adapter adds a turn liveness watchdog (long silence after ACP progress fails the turn; longer window while tools run; refreshes on steer, plans, approvals, and user-input), maps usage limits from xAI rate_limit completions, and improves permissions: session-scoped auto-approval by operation identity, fallback when Grok omits allow_always, and CLI argv that mirror T3 runtime modes (--permission-mode / --always-approve).

Shared ACP changes emit in-progress tool updates, bound oversized tool output (including whitespace-only buffers), and coalesce streaming command output using content length—not just detail. The mobile usage chart adds Grok as a provider band with theme-aware colors. The ACP mock agent grows scenario flags to exercise these paths in tests.

Reviewed by Cursor Bugbot for commit 01cc3ac. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Add Grok turn watchdog, plan mode, usage tracking, and reasoning effort

  • Adds an inactivity watchdog to GrokAdapter.ts that cancels and settles stalled ACP turns (10 min default, 30 min with active tools), with liveness tracking around approvals and user input.
  • Detects enter_plan_mode and exit_plan_mode tool calls, emits turn.proposed.completed events when Grok writes plan.md, and intercepts x.ai/exit_plan_mode to capture plan content without native gating.
  • Adds Grok Build usage support across the stack: bumps usage contract to v5 with backward-compatible merge for v4, parses updates.jsonl transcripts via parseGrokLine in usageTranscripts.ts, and adds Grok series to web and mobile usage charts.
  • Propagates per-turn reasoning effort to setSessionModel metadata in GrokAcpSupport.ts, validates tokens, and skips redundant calls.
  • Discovers Grok skills at runtime via grok inspect --json in GrokSkills.ts with a 4 s timeout and soft-fail to empty.
  • Improves tool-call update coalescing in AcpRuntimeModel.ts to emit on status changes and track combined output growth (detail/content/rawOutput) instead of detail length alone.
  • Risk: USAGE_CONTRACT_VERSION bumps from 4 to 5 in usage.ts; older clients below USAGE_MERGE_COMPATIBLE_SINCE (4) will be marked stale. selectGrokPermissionOptionId falls back to allow_once when acceptForSession is missing, changing approval behavior for sessions where Grok omits that option.

Macroscope summarized 01cc3ac.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

SunkenInTime and Ivorisnoob reacted with eyes emoji
All reactions
  • 👀 2 reactions
SunkenInTime and others added 25 commits August 19, 2026 21:31
@SunkenInTime PC
fix(server): show Grok usage limit errors
3296723
@ahmed-besic PC
fix(grok): surface plan mode approval in proposed plan cards
dd4e5cf
Grok intercepts exit_plan_mode and reverse-RPCs the client for approval.
Without a handler the turn hung and plan.md was invisible in T3. Capture
plan.md writes and x.ai/exit_plan_mode into turn.proposed.completed, then
abandon the native gate so the existing plan card can finish the flow.
@ahmed-besic PC
fix(grok): address plan mode review feedback
082d24c
Clear lastKnownProposedPlanMarkdown on new turns and settlement so an
empty exit_plan_mode cannot re-surface a previous plan. Restrict plan.md
detection to paths under .grok/sessions so workspace plan.md files are
not promoted to proposed plans.
@ahmed-besic PC
fix(grok): address plan mode Bugbot findings
0dd07d9
Scope proposed-plan dedupe to the current turn so re-proposing the same
text later still emits a card. Use a fresh event stamp when promoting
plan.md writes (avoid shared eventIds with tool lifecycle events). Only
promote session plan.md while plan mode is active after enter_plan_mode.
@mbrow190 PC
fix(server): Always allow no longer cancels Grok turns
e5ac3e4
Grok 4.6 often omits ACP allow_always. T3 still shows Always allow this
session, then mapped a missing option to cancelled. Fall back to
allow_once and remember the choice for the rest of the session.

Fixes #6502
@mbrow190 PC
fix(server): Supervised Grok threads ask even when CLI always-approves
8a2310d
T3 only shows approval if Grok sends session/request_permission. A local
[ui] permission_mode = always-approve made Supervised a no-op. Start
Supervised sessions with grok --permission-mode default so the thread
mode wins. Full access still passes --always-approve.
@lnieuwenhuis PC
fix(grok): bound cumulative tool output updates
d36cd27
Grok's ACP CLI resends the ENTIRE accumulated terminal output on every
tool_call_update notification (~10/sec, 145 KB+ each) instead of a delta,
so a single redrawing terminal flooded runtime event ingestion and
head-of-line-blocked every other thread.

Bound tool call output to an 8 KB tail in the shared ACP parser (tool call
state, rawOutput and the raw payload alike, leaving non-text content
entries such as diffs untouched) and coalesce cumulative resends that did
not grow meaningfully, while terminal (completed/failed) updates always
emit immediately so the final tool call state stays correct.
@lnieuwenhuis PC
fix(grok): preserve bounded tool content ordering
05b1571
@gb1095 PC
fix(grok): settle stalled ACP turns
247dc0f
PC
feat(grok): surface Grok skills in the composer $ picker
71a9d5c
PC
fix(grok): expose advertised reasoning levels in the composer
a336a99
PC
fix(grok): bound whitespace-only ACP tool call content
fc7a94c
Display-text extraction trims before joining, so oversized whitespace-only (or whitespace-padded) content entries skipped the 8 KB tail cap and were persisted/emitted unbounded on toolCall.data.content and rawPayload.

Bound or normalize each text entry before those early returns, including the empty-chunks path.
PC
fix(grok): address remaining ACP review findings
f96b845
Keep live command output flowing by coalescing content/rawOutput growth even when detail stays the command, and emit the first tool_call even when it has no detail.

Distribute oversized text tails across the original entries so content around images/diffs keeps its order. Accept empty plan.md writes, require ~/.grok/sessions paths to live under the user home directory, and only set planModeActive after a successful enter_plan_mode (clear it on exit).
PC
fix(grok): unblock liveness, emit status, O(1) tail lookup
c3f1bd4
Signal the turn liveness watchdog after decrementing livenessUpdatesInFlight so a pause-consumed wake cannot leave it blocked forever.

Emit pending-to-inProgress tool updates even when detail and output are unchanged, and index retained text tails by original entry instead of scanning.
PC
fix(grok): accept non-home Grok plan.md paths
817ab8b
isGrokPlanMarkdownPath now matches spawn HOME, GROK_HOME, the ACP mock home, and canonical /home|/Users layouts, while still rejecting repo-local .grok/sessions paths.

Empty rawInput.content no longer hides a following plan.md diff: prefer non-empty markdown, and only cache empty when the write is actually a clear.
PC
fix(grok): match Windows canonical Grok plan paths
7753a1f
The canonical-home fallback ran against a lowercased haystack on Windows, so /Users/ never matched. Make that regex case-insensitive.
PC
fix(grok): reject plan.md path traversal
87d2b3a
isGrokPlanMarkdownPath treated /home/other/.grok/sessions/../../project/plan.md as a session plan because the canonical fallback used unrestricted .+ . Reject .. segments before matching and require real path segments under sessions/.
PC
feat(usage): include Grok Build on the usage page
7c7c883
Scan ~/.grok/sessions/**/updates.jsonl so Grok turns show up next to Claude and Codex. Contract v5 still merges v4 summaries.
PC
Merge origin/main into fix/grok-adapter-reliability
c02306e
PC
fix(grok): inject host runtime into plan path matching
c379139
isGrokPlanMarkdownPath and extractGrokPlanMarkdownFromToolCallData were reading process.platform and process.env directly, the only unsuppressed t3code/no-global-process-runtime hits in the tree. Take platform and environment as arguments; GrokAdapter resolves them from HostProcessPlatform and HostProcessEnvironment.
PC
docs(readme): list Grok reliability fixes at the top of the fork README
09974b6
PC
Merge origin/main into fix/grok-adapter-reliability
99b6e5c
PC
fix(grok): address cursor review - readme fork banner and reasoning e…
6683843
…ffort

- docs(readme): remove Grok reliability fork banner from PR branch so
  upstream README no longer claims to be a fork of itself after merge
  (Cursor 585a2287)

- fix(grok): do not treat omitted reasoningEffort as explicit clear in
  applyGrokAcpModelSelection (Cursor 8eb1e158)
  Session start and later turns send the selected model without a
  reasoning option until the user touches the control. Omitting the
  option now preserves the CLI-advertised default (e.g. Extra High)
  instead of calling session/set_model with no _meta and clearing it.
  GrokAdapter keeps currentReasoningEffort when the turn/start input
  does not provide reasoningEffort, so the composer snapshot stays
  consistent with the thread's actual effort.
PC @t3dotgg
Merge origin/main into fix/grok-adapter-reliability
91ef2da
@t3dotgg @1xpixi
fix(grok): keep approvals scoped and honor instance homes
7414763
Continue the Grok support work from #7638. Fix the shared parser typecheck and add focused approval, plan-path, and real-CLI tests.

Co-authored-by: 1xpixi <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c29d928a-c7b2-41ac-8687-bc7e3fca5c02

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Aug 27, 2026
@github-actions

github-actions Bot commented Aug 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.3 KiB 13.3 KiB +20 B (+0.1%) 15.1 KiB ✅
Codex Thread snapshot wire 6.9 KiB 6.9 KiB +2 B (+0.0%) 7.3 KiB ✅
Codex Live turn WebSocket wire 6.4 KiB 6.4 KiB +18 B (+0.3%) 7.8 KiB ✅
Codex Live turn WebSocket decoded 55.6 KiB 55.6 KiB +44 B (+0.1%) 66.4 KiB ✅
Codex Live turn messages 10 11 +1 (+10.0%) 21 ✅
Claude Total thread wire 13.3 KiB 13.3 KiB −5 B (−0.0%) 15.1 KiB ✅
Claude Thread snapshot wire 6.9 KiB 6.9 KiB 0 B (0.0%) 7.3 KiB ✅
Claude Live turn WebSocket wire 6.4 KiB 6.4 KiB −5 B (−0.1%) 7.8 KiB ✅
Claude Live turn WebSocket decoded 56.4 KiB 56.4 KiB −44 B (−0.1%) 66.4 KiB ✅
Claude Live turn messages 11 10 −1 (−9.1%) 21 ✅

Baseline: d3c24a1 · PR result: 01cc3ac · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 109.4 KiB
  • Claude decoded thread snapshot: 110.1 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 27, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/GrokAdapter.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/server/src/provider/acp/XAiAcpExtension.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

juliusmarminge added a commit that referenced this pull request Sep 2, 2026
@juliusmarminge @claude
fix(grok): fail hung prompts on xAI rate-limit completions (#8358, pa…
47b1560
…rtial)

Ports the rate-limit half of main's #8358 into the branch's reworked XAi
extension: a prompt_complete carrying stopReason rate_limit now fails the
hung prompt with the -32003 usage-limit error instead of settling it as a
normal end_turn, so the turn surfaces "usage limit reached" rather than
silently ending. The prompt-completion deferreds carry the error channel
end to end.

The exit_plan_mode approval gate from #8358 is NOT ported here: it needs
a v2 plan-flow design in AcpAdapterV2 (the v1 GrokAdapter it lived in is
gone) and is tracked separately.

Co-Authored-By: Claude Fable 5 <[email protected]>
juliusmarminge added a commit that referenced this pull request Sep 2, 2026
@juliusmarminge @claude
feat(grok): capture exit_plan_mode into the v2 proposed-plan card (#8358
8fdce45
)

Completes the deferred half of #8358: Grok's plan-approval gate now works
on the v2 runtime. The XAi extension regains main's exit-plan helpers
(request schemas, plan-markdown extraction, the abandoned-with-feedback
response, and the plan.md session-path sniffing), and the v2 ACP adapter
grows a captureProposedPlan primitive that emits a completed
proposed-plan artifact for the active turn — one plan id per turn, so
plan.md rewrites and the exit gate update a single card.

The Grok flavor wires both ends: tool calls that write plan.md under a
Grok session dir surface the plan while plan mode is still active, and
x.ai/exit_plan_mode (plus the underscore alias) captures the final plan —
request content first, then the sniffed plan.md contents, then the
empty-state placeholder — and abandons the native gate so the turn does
not hang, mirroring the Claude ExitPlanMode pattern.

Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Sep 2, 2026
fix(codex): treat usage-limit stops as quota, not errors #9236
Closed
[Bug]: Codex Business workspace credit exhaustion shows as a generic runtime error, not a usage-limit stop #9234
Closed
juliusmarminge added a commit that referenced this pull request Sep 4, 2026
@juliusmarminge @claude
fix(grok): fail hung prompts on xAI rate-limit completions (#8358, pa…
197d245
…rtial)

Ports the rate-limit half of main's #8358 into the branch's reworked XAi
extension: a prompt_complete carrying stopReason rate_limit now fails the
hung prompt with the -32003 usage-limit error instead of settling it as a
normal end_turn, so the turn surfaces "usage limit reached" rather than
silently ending. The prompt-completion deferreds carry the error channel
end to end.

The exit_plan_mode approval gate from #8358 is NOT ported here: it needs
a v2 plan-flow design in AcpAdapterV2 (the v1 GrokAdapter it lived in is
gone) and is tracked separately.

Co-Authored-By: Claude Fable 5 <[email protected]>
juliusmarminge added a commit that referenced this pull request Sep 4, 2026
@juliusmarminge @claude
feat(grok): capture exit_plan_mode into the v2 proposed-plan card (#8358
718ff37
)

Completes the deferred half of #8358: Grok's plan-approval gate now works
on the v2 runtime. The XAi extension regains main's exit-plan helpers
(request schemas, plan-markdown extraction, the abandoned-with-feedback
response, and the plan.md session-path sniffing), and the v2 ACP adapter
grows a captureProposedPlan primitive that emits a completed
proposed-plan artifact for the active turn — one plan id per turn, so
plan.md rewrites and the exit gate update a single card.

The Grok flavor wires both ends: tool calls that write plan.md under a
Grok session dir surface the plan while plan mode is still active, and
x.ai/exit_plan_mode (plus the underscore alias) captures the final plan —
request content first, then the sniffed plan.md contents, then the
empty-state placeholder — and abandons the native gate so the turn does
not hang, mirroring the Claude ExitPlanMode pattern.

Co-Authored-By: Claude Fable 5 <[email protected]>
juliusmarminge added a commit that referenced this pull request Sep 5, 2026
@juliusmarminge @claude
fix(grok): fail hung prompts on xAI rate-limit completions (#8358, pa…
6611d26
…rtial)

Ports the rate-limit half of main's #8358 into the branch's reworked XAi
extension: a prompt_complete carrying stopReason rate_limit now fails the
hung prompt with the -32003 usage-limit error instead of settling it as a
normal end_turn, so the turn surfaces "usage limit reached" rather than
silently ending. The prompt-completion deferreds carry the error channel
end to end.

The exit_plan_mode approval gate from #8358 is NOT ported here: it needs
a v2 plan-flow design in AcpAdapterV2 (the v1 GrokAdapter it lived in is
gone) and is tracked separately.

Co-Authored-By: Claude Fable 5 <[email protected]>
juliusmarminge added a commit that referenced this pull request Sep 5, 2026
@juliusmarminge @claude
feat(grok): capture exit_plan_mode into the v2 proposed-plan card (#8358
b48594e
)

Completes the deferred half of #8358: Grok's plan-approval gate now works
on the v2 runtime. The XAi extension regains main's exit-plan helpers
(request schemas, plan-markdown extraction, the abandoned-with-feedback
response, and the plan.md session-path sniffing), and the v2 ACP adapter
grows a captureProposedPlan primitive that emits a completed
proposed-plan artifact for the active turn — one plan id per turn, so
plan.md rewrites and the exit gate update a single card.

The Grok flavor wires both ends: tool calls that write plan.md under a
Grok session dir surface the plan while plan mode is still active, and
x.ai/exit_plan_mode (plus the underscore alias) captures the final plan —
request content first, then the sniffed plan.md contents, then the
empty-state placeholder — and abandons the native gate so the turn does
not hang, mirroring the Claude ExitPlanMode pattern.

Co-Authored-By: Claude Fable 5 <[email protected]>
juliusmarminge added a commit that referenced this pull request Sep 5, 2026
@juliusmarminge @claude
fix(grok): fail hung prompts on xAI rate-limit completions (#8358, pa…
1672ad3
…rtial)

Ports the rate-limit half of main's #8358 into the branch's reworked XAi
extension: a prompt_complete carrying stopReason rate_limit now fails the
hung prompt with the -32003 usage-limit error instead of settling it as a
normal end_turn, so the turn surfaces "usage limit reached" rather than
silently ending. The prompt-completion deferreds carry the error channel
end to end.

The exit_plan_mode approval gate from #8358 is NOT ported here: it needs
a v2 plan-flow design in AcpAdapterV2 (the v1 GrokAdapter it lived in is
gone) and is tracked separately.

Co-Authored-By: Claude Fable 5 <[email protected]>
juliusmarminge added a commit that referenced this pull request Sep 5, 2026
@juliusmarminge @claude
feat(grok): capture exit_plan_mode into the v2 proposed-plan card (#8358
c9b8971
)

Completes the deferred half of #8358: Grok's plan-approval gate now works
on the v2 runtime. The XAi extension regains main's exit-plan helpers
(request schemas, plan-markdown extraction, the abandoned-with-feedback
response, and the plan.md session-path sniffing), and the v2 ACP adapter
grows a captureProposedPlan primitive that emits a completed
proposed-plan artifact for the active turn — one plan id per turn, so
plan.md rewrites and the exit gate update a single card.

The Grok flavor wires both ends: tool calls that write plan.md under a
Grok session dir surface the plan while plan mode is still active, and
x.ai/exit_plan_mode (plus the underscore alias) captures the final plan —
request content first, then the sniffed plan.md contents, then the
empty-state placeholder — and abandons the native gate so the turn does
not hang, mirroring the Claude ExitPlanMode pattern.

Co-Authored-By: Claude Fable 5 <[email protected]>
@juliusmarminge juliusmarminge mentioned this pull request Sep 7, 2026
[Bug]: Codex reports "workspace is out of credits" when the weekly limit ran out, hiding the reset time T3 already shows #10472
Closed
2 tasks done
This was referenced Sep 7, 2026
[Bug]: A thread stopped by a usage limit is labelled Failed, indistinguishable from a crash #10545
Closed
feat(threads): show a usage-limit stop as Limited instead of Failed #10550
Closed
juliusmarminge added a commit that referenced this pull request Sep 8, 2026
@juliusmarminge @claude
fix(grok): fail hung prompts on xAI rate-limit completions (#8358, pa…
f41096e
…rtial)

Ports the rate-limit half of main's #8358 into the branch's reworked XAi
extension: a prompt_complete carrying stopReason rate_limit now fails the
hung prompt with the -32003 usage-limit error instead of settling it as a
normal end_turn, so the turn surfaces "usage limit reached" rather than
silently ending. The prompt-completion deferreds carry the error channel
end to end.

The exit_plan_mode approval gate from #8358 is NOT ported here: it needs
a v2 plan-flow design in AcpAdapterV2 (the v1 GrokAdapter it lived in is
gone) and is tracked separately.

Co-Authored-By: Claude Fable 5 <[email protected]>
juliusmarminge added a commit that referenced this pull request Sep 8, 2026
@juliusmarminge @claude
feat(grok): capture exit_plan_mode into the v2 proposed-plan card (#8358
9ed5dc8
)

Completes the deferred half of #8358: Grok's plan-approval gate now works
on the v2 runtime. The XAi extension regains main's exit-plan helpers
(request schemas, plan-markdown extraction, the abandoned-with-feedback
response, and the plan.md session-path sniffing), and the v2 ACP adapter
grows a captureProposedPlan primitive that emits a completed
proposed-plan artifact for the active turn — one plan id per turn, so
plan.md rewrites and the exit gate update a single card.

The Grok flavor wires both ends: tool calls that write plan.md under a
Grok session dir surface the plan while plan mode is still active, and
x.ai/exit_plan_mode (plus the underscore alias) captures the final plan —
request content first, then the sniffed plan.md contents, then the
empty-state placeholder — and abandons the native gate so the turn does
not hang, mirroring the Claude ExitPlanMode pattern.

Co-Authored-By: Claude Fable 5 <[email protected]>
juliusmarminge added a commit that referenced this pull request Sep 8, 2026
@juliusmarminge @claude
fix(grok): fail hung prompts on xAI rate-limit completions (#8358, pa…
a51784b
…rtial)

Ports the rate-limit half of main's #8358 into the branch's reworked XAi
extension: a prompt_complete carrying stopReason rate_limit now fails the
hung prompt with the -32003 usage-limit error instead of settling it as a
normal end_turn, so the turn surfaces "usage limit reached" rather than
silently ending. The prompt-completion deferreds carry the error channel
end to end.

The exit_plan_mode approval gate from #8358 is NOT ported here: it needs
a v2 plan-flow design in AcpAdapterV2 (the v1 GrokAdapter it lived in is
gone) and is tracked separately.

Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Sep 10, 2026
fix(grok): probe health with initialize and allow in-session model changes opencoredev/akeru-bot#214
Merged
fix(grok): encode session/cancel as a real notification and interrupt steers opencoredev/akeru-bot#224
Merged
fix(grok): discover skills with grok inspect and fail workspace probes loudly opencoredev/akeru-bot#225
Merged
fix(grok): map Always allow to allow_once when Grok omits allow_always opencoredev/akeru-bot#228
Merged
@yashranaway yashranaway mentioned this pull request Oct 1, 2026
fix(server): keep native workspace indexing off the event loop #11376
Closed
@MarcoDotIO MarcoDotIO mentioned this pull request Nov 2, 2026
fix(acp): Always allow no longer cancels the turn when an agent only offers allow-once #29463
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

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.

6 participants

@t3dotgg @SunkenInTime @ahmed-besic @mbrow190 @lnieuwenhuis @gb1095
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.