Repository navigation
fix(worker): allow grok bots to persist sessions on linux - #1073
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 21, 2026 12:34
Grant the Linux bot sandbox write access to the resolved session directory so ACP can open and resume turns outside the worker temporary directory. Fixes: #104
nixuuu
force-pushed
the
fix/grok-cli-proxy-worker
branch
from
November 21, 2026 12:42
07cb50a to
38504dd
Compare
This was referenced Nov 22, 2026
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.
Summary
Grok's Linux read-only sandbox follows the sessions symlink to Canopy's durable storage. When that storage is outside the writable temporary directory, ACP fails to open the bot session before reaching the model endpoint.
The bot launcher adds the resolved session directory to a private sandbox profile that extends
read-only. It keeps the existing session layout and allows a fresh CLI process to resume the same conversation.Fixes: #104
Verification
Permission deniedwith the official CLI and durable storage outside the worker temporary directory. The regression test now creates that layout and checks session creation, transcript recovery, and resume.check:tmp. Lint for the edited TypeScript files andgit diff --checkalso passed.OKfromgrok-4.7through a live CLIProxyAPI connection.