fix(grok): preserve safe TUI composer navigation - #867
Draft
vansin wants to merge 7 commits into
Draft
Conversation
added 7 commits
August 14, 2026 14:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
runtime_closedforeverRoot cause
The live
通信狗incidents had three layers. Its original x-search profile denied a repository tool that Grok nevertheless auto-resolved; the bridge correctly failed closed, but agent-node cached that terminal runtime. The repo-read pilot then exposed an obsolete literal-bunaudit comparison. After those were fixed, the real Grok event stream emitted three automatic permission requests first (search_tool,list_dir,search_tool) and resolved them later as (search_tool,search_tool,list_dir). A scalar pending-permission slot misclassified this valid batched lifecycle as an approval-boundary violation, after which six queued tasks failed within seconds.Frozen coordinates
b830403b82a97a98ec004e59c86eb294ddfd177119af299adea89cb6296a5d3971b574ad88e2c423sha256:261ade0fd44147370df56a7377f409c840f3e65a07aa472174e7761184b45ecb5c0d5cbcfb0350af1eb27e78de1ccd5902c5ba22be732df415fe26851c269a45This Draft remains stacked on the existing Grok co-presence work. It does not publish npm or merge into the base branch.
Validation
duplicate preview automatic permission request84 pass / 0 fail / 3 files1288 pass / 0 fail / 92 files; named mutation red;RESULT: PASS通信狗with0:nodeand1:tui; it reached TUI input-ready, CommHub registration, and SSE, and Hub reports idle with zero pending/in-flight tasksFull evidence:
docs/tests/report-grok-copresence-fatal-recovery-7914755a.txt.Honest limits
/modelremains intentionally blocked: the current FIFO protocol cannot yet prove when Grok's interactive model picker has returned to the composer. Persisted model changes still require a controlled config update and restart.