Skip to content

fix(worker): allow grok bots to persist sessions on linux - #1073

Merged
nixuuu merged 1 commit into
devfrom
fix/grok-cli-proxy-worker
Nov 21, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/grok-cli-proxy-worker

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 21, 2026

Copy link
Copy Markdown
Member

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

  • Reproduced Permission denied with 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.
  • Six targeted Grok adapter tests passed through check:tmp. Lint for the edited TypeScript files and git diff --check also passed.
  • An isolated bot turn on Linux returned OK from grok-4.7 through a live CLIProxyAPI connection.
  • The full gate runs in GitHub CI.

@nixuuu
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
nixuuu force-pushed the fix/grok-cli-proxy-worker branch from 07cb50a to 38504dd Compare November 21, 2026 12:42
@nixuuu
nixuuu merged commit 260233d into dev Nov 21, 2026
29 of 31 checks passed
@nixuuu
nixuuu deleted the fix/grok-cli-proxy-worker branch November 21, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant