[Bug]: Grok /goal planner activity stays invisible until the first main-session reply
Before submitting
- [x] I searched existing issues and did not find an exact duplicate.
- [x] I included enough detail to investigate the problem.
What happened
In a Grok conversation, a /goal request produced its first main-session reply after about 4 minutes and 9 seconds. Grok ran a goal plan writer subagent before it started the main turn. T3 Code did not show that planner's activity in the conversation timeline.
The user sees a running timer without an explanation of the planning work. The first message appears only after planning finishes.
Environment
- T3 Code: 0.1.6, Linux host.
- Grok CLI: 1.0.70.
- Provider model ID:
grok-4.7-build-fast. - The UI showed
4.7 Fast Extra High. - A new conversation with a multi-page implementation request and several image attachments.
Area
apps/server, Grok provider event handling and conversation status.
Version or commit
T3 Code 0.1.6. An application source commit was not verified.
Steps to reproduce
- Select the Grok provider in T3 Code.
- Start a new conversation and submit a
/goalrequest that requires planning. - Watch the timeline while Grok's planner subagent runs.
The observed request concerned a browser extension and several pages. The business content and images are omitted. A generic example is /goal Continue the existing browser extension work across these pages, and verify every export. This example is a sanitized substitute, not a separately tested reproducer.
Expected behavior
Show that goal planning has started before the main-session reply arrives. Update the timeline or status as planner events arrive. A long planning phase should have a visible status.
Impact
Minor bug or occasional failure. The task continues, but the user cannot distinguish active planning from a stalled request for several minutes.
Actual behavior and timing evidence
Times below are relative to submission of the request. Identifiers and absolute timestamps have been removed.
| Offset | Source | Event |
|---|---|---|
| 0 ms | T3 | Request submitted. |
| 270 ms | T3 | Run marked as running. |
| 518 ms | T3 | provider-thread.updated has goal=null and pendingBackgroundTasks=[]. |
| 582 ms | Grok | goal_planner_fired. |
| 584 ms | Grok | goal_updated has planning=true; subagent_spawned identifies the goal planner. |
| 239,347 ms | Grok | goal_planner_completed, latency_ms=238764; subagent_finished reports 23 tool calls. The main turn starts. |
| 248,800 ms | Grok | Main-session first_token. |
| 248,801 ms | Grok | First agent_message_chunk. |
| 249,147 ms | T3 | First assistant message persisted. |
During the planning interval, T3's event store contains no planner activity for this conversation. The only events after the initial provider state and before the first reply are two thread.visited events. Grok's local update log contains the goal and subagent events listed above. Whether those custom events reach T3's transport or are filtered earlier is unverified.
The planner made seven model requests, which took 235,994 ms in total. Each request reports attempts=1. The longest request took 111,178 ms. This explains the time spent planning. The issue here is the missing planning status during that interval.
T3 persisted the first assistant message about 346 ms after Grok emitted the first message chunk. The evidence does not show a multi-minute delay in forwarding the main-session reply.
Logs or stack traces
{"offset_ms":582,"event":"goal_planner_fired","model_id":"grok-4.7-build-fast"}
{"offset_ms":584,"event":"goal_updated","planning":true}
{"offset_ms":584,"event":"subagent_spawned","child":"planner"}
{"offset_ms":239347,"event":"goal_planner_completed","latency_ms":238764}
{"offset_ms":239347,"event":"subagent_finished","child":"planner","duration_ms":238712,"tool_calls":23}
{"offset_ms":248800,"event":"first_token"}
{"offset_ms":248801,"event":"agent_message_chunk"}
{"offset_ms":249147,"event":"message.updated","role":"assistant"}
Scope and privacy
This report is based on one observed run. The specific adapter code path is unverified. The exact duration may vary with the request.
The excerpts retain event names, public product versions, relative timing, and execution status. They omit conversation content, screenshots, URLs from the task, local paths, user names, session and project identifiers, tool arguments, tool outputs, credentials, and model reasoning text. No raw logs are attached.
Related issues
- #9892 reported Grok subagents missing from the Agents panel in an older release. This report concerns the initial
/goalplanner before the first main turn. - #21865 concerns invisible Codex goal turns after a server restart. This run used Grok and did not require a server restart.
Workaround
No workaround was tested for the missing planning status.