Skip to content

Studio: add UNSLOTH_SKIP_AUTOSTART installer flag - #7093

Merged
danielhanchen merged 3 commits into
mainfrom
feat/skip-studio-autostart
Jul 13, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
feat/skip-studio-autostart

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Jul 13, 2026

Copy link
Copy Markdown
Member

Summary

  • add UNSLOTH_SKIP_AUTOSTART to the POSIX and PowerShell Studio installers
  • skip the interactive post-install launch prompt for truthy values while preserving the existing default behavior
  • forward the opt-out through the managed WSL distro reroute and document macOS/Linux/WSL and Windows usage
  • add regression coverage for combined UNSLOTH_NO_TORCH + autostart parsing, prompt gating, documentation, and WSL forwarding
  • run the focused parser tests natively in the existing Windows/macOS parity matrix

Tests

  • uv run --no-project --with pytest python -m pytest -q tests/test_installer_skip_autostart.py tests/python/test_cross_platform_parity.py tests/test_studio_install_workspace_guard.py
  • bash tests/sh/test_strixhalo_wsl_reroute.sh
  • bash tests/sh/test_tauri_install_exit_order.sh
  • bash tests/sh/test_mac_intel_compat.sh
  • sh -n install.sh
  • PowerShell AST parse of install.ps1
  • ruff check tests/test_installer_skip_autostart.py
  • workflow trigger lint (45 passed; full workflow tree clean)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the UNSLOTH_SKIP_AUTOSTART environment variable to both the bash (install.sh) and PowerShell (install.ps1) installers, allowing users to bypass the interactive post-install prompt that launches Unsloth Studio. This is useful for automated installations. The changes are documented in the README.md and verified with new tests. Feedback suggests adding a platform check to skip the POSIX-specific test on environments where sh is unavailable (such as native Windows) to prevent test failures.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tests/test_installer_skip_autostart.py Outdated
@danielhanchen
danielhanchen force-pushed the feat/skip-studio-autostart branch from d9e7a2b to 6c32ddc Compare July 13, 2026 04:10
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 8baf68f5b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit ca979e9 into main Jul 13, 2026
56 checks passed
@danielhanchen
danielhanchen deleted the feat/skip-studio-autostart branch July 13, 2026 04:23
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