t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Grok plan mode has no exit/approve UI in T3 Code

Open ahmed-besic opened this issue 4 months ago • 10 comments

Problem

When using the Grok provider, if I ask it to write a plan first, Grok enters its own plan mode (via enter_plan_mode).

In the native Grok TUI you then get a plan preview with approve / request changes / quit. T3 Code has no equivalent UI, so once Grok is in plan mode I can’t approve the plan or get out of it.

From the user side it just looks stuck: plan is written, but there’s no way in T3 to see, finish or abandon plan mode.

Repro

  1. Open a project with the Grok provider in T3 Code.
  2. Ask Grok to craft a plan before implementing anything.
  3. Grok enters plan mode and writes the plan.
  4. Try to approve / exit plan mode from T3.

Expected

T3 should surface Grok plan approval (or at least: show the plan + Approve / Request changes / Quit), instead of treating plan mode as something only the native Grok TUI can complete.

Env

  • T3 Code v0.0.29-nightly.20260724.896
  • Provider: Grok

ahmed-besic avatar Jul 25 '26 12:07 ahmed-besic

Just ran into the same issue in 0.0.32, and Grok was getting stuck being unable to exit plan more or receive my "approved" prompt.

Sawtaytoes avatar Aug 09 '26 04:08 Sawtaytoes

Confirming this is still happening as of 2026-08-18 when using Grok Build as the harness in T3 Code.

What I see

  • T3 plan mode stays empty / the plan never appears in the T3 UI
  • There is no proposed-plan card and no approve / request-changes / exit UI
  • The only way to continue is to resume/approve the same session in the Grok CLI/TUI

This matches the diagnosis in #5409 and the earlier closed-but-unmerged #4233: Grok intercepts exit_plan_mode and reverse-RPCs _x.ai/exit_plan_mode / x.ai/exit_plan_mode with planContent, but T3 still does not surface that as a proposed plan. From T3 it just looks like plan mode is broken/empty.

Workaround: open the same session in the Grok CLI and approve/resume there.

Happy to add version/logs if useful. Latest nightlies I can see are still in the 0.0.34-nightly.20260818.* range and I do not see the exit_plan_mode handler on main yet.

ruttydm avatar Aug 18 '26 11:08 ruttydm

I am maintaining a parallel fork with this issue fixed. https://github.com/9cb14c1ec0/t3code , check the most recent nightly release.

9cb14c1ec0 avatar Aug 20 '26 14:08 9cb14c1ec0

Image

Still happening in in 0.34

Thanks for working on a fix for this @9cb14c1ec0 @netpro2k

michaelcummings avatar Aug 26 '26 16:08 michaelcummings

I made a fix for this pr #5409 like 20d ago, dont know if they fixed it.

Edit: Jup just saw the fix, its much better

ahmed-besic avatar Aug 26 '26 17:08 ahmed-besic

@t3dotgg doesn't use plan mode, or grok it seems, so I suspect this is very low on their priority list.

9cb14c1ec0 avatar Aug 26 '26 17:08 9cb14c1ec0

fwiw, I don't use plan mode but grok decided it wanted to at some point and then got stuck unable to exit it, so its still worth making sure it can do that.

netpro2k avatar Aug 26 '26 23:08 netpro2k

Yeah it automatically goes into plan mode if you don’t give it a specific coding task automatically

Michael Cummings

"It's important to have a healthy disregard for the impossible"

On Wed, Aug 26, 2026 at 7:24 PM Dom @.***> wrote:

netpro2k left a comment (pingdotgg/t3code#4514) https://github.com/pingdotgg/t3code/issues/4514#issuecomment-5432266494

fwiw, I don't use plan mode but grok decided it wanted to at some point and then got stuck unable to exit it, so its still worth making sure it can do that.

— Reply to this email directly, view it on GitHub https://github.com/pingdotgg/t3code/issues/4514?email_source=notifications&email_token=AAALJVPBPNT5464EXEX6BHL5L5WTDA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNBTGIZDMNRUHE2KM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5432266494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALJVK4VBX6B46524G6LND5L5WTDAVCNFSNUABGKJSXA33TNF2G64TZHMYTCNJTGEZTAMZUHE5US43TOVSTWNBZG42TOOBXHA4TBILWAI . You are receiving this because you commented.Message ID: @.***>

michaelcummings avatar Aug 27 '26 00:08 michaelcummings

And it going into plan mode basically means I waste a ton of tokens on work that can never hit the disk. I'd love for it to have a way around that.

Sawtaytoes avatar Aug 27 '26 05:08 Sawtaytoes

Thanks for the report and the follow-up testing. We believe this is fixed by PR #8358.

The Grok adapter now handles both xAI exit-plan RPC names, publishes the plan to T3's proposed-plan UI, and answers the native gate so the turn can finish. It also detects plan.md writes made during plan mode.

I'm closing this as fixed as part of an automated pass on all open issues. If plan approval is still missing in a build that includes PR #8358, please reply with the exit-plan RPC name and the Grok event sequence, and we can reopen it.

t3dotgg avatar Aug 27 '26 11:08 t3dotgg