Skip to content

Add WSL2 mode with drive-resident ext4 state and native CLI support - #48

Closed
nicklongmore86 wants to merge 2 commits into
techjarves:mainfrom
nicklongmore86:feature/wsl2-drive-mode
Closed

nicklongmore86 wants to merge 2 commits into
techjarves:mainfrom
nicklongmore86:feature/wsl2-drive-mode

Conversation

@nicklongmore86

Copy link
Copy Markdown

Summary

  • WSL2 Auto-Detection: Automatically detects WSL2 execution in launch/lib/drive.sh via /proc/version, WSL_DISTRO_NAME, or PORTABLE_AI_WSL.
  • Zero Host Footprint: Adheres to the strict all-state-on-drive contract by creating and mounting a 4GB sparse ext4 state image directly on the drive (AI-SHARED/state/wsl-state.ext4).
  • Native WSL CLIs: Resolves and uses official Linux claude and codex binaries installed inside WSL Ubuntu, strictly ignoring Windows .exe / .cmd / /mnt/* shims.
  • Authoritative Shared Credentials: Synchronizes claude-oauth-token and codex-auth.json across Windows, macOS, native Linux, and WSL2.
  • Safe Teardown: Automatically unmounts the loop image and cleans up mountpoints on exit/signals.
  • Verification: Fully passing test suite (92 passed, 1 skipped pwsh), Python tests (7 passed), shellcheck, and syntax checks.

nicklongmore86 and others added 2 commits October 8, 2026 10:25
* Build partitioned portable drive with native Claude and Codex

Add verified release provisioning, native-volume launchers, shared subscription credentials, session supervision, partition safety checks and host-write audits. Keep Node scoped to the dashboard and document prep and platform limits.

Co-authored-by: omnigent <noreply@omnigent.ai>

* Harden portable credentials, audit scratch and launcher cleanup

Normalize Claude token CR/LF on save and load, traverse audit root symlinks, isolate and clean audit scratch, add null-identity refusal regressions, poll child cleanup, and support distro npm layouts. Harden native argument quoting and error retrieval.

Co-authored-by: omnigent <noreply@omnigent.ai>

* Assert normalized token in Windows regression fixture

Co-authored-by: omnigent <noreply@omnigent.ai>

* Set native GPT types and no-default-letter flags for foreign volumes

Use explicit type GUIDs and set bit 63 only on APFS/ext4 partitions. Add exact dry-run command coverage and document format-prompt warnings, post-diskutil verification and hardware guidance.

Co-authored-by: omnigent <noreply@omnigent.ai>

---------

Co-authored-by: omnigent <noreply@omnigent.ai>
@nicklongmore86

Copy link
Copy Markdown
Author

Closing: meant for fork repository nicklongmore86/ClaudeCode-Portable

@nicklongmore86
nicklongmore86 deleted the feature/wsl2-drive-mode branch October 8, 2026 18:46
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