unsloth/.github/scripts
Lee Jackson 6ef0936180
Fix OpenClaw start default to local TUI (#6937)
* fix: launch OpenClaw local TUI by default

* Fix/adjust OpenClaw launch paths for PR #6937

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Default OpenClaw to the local TUI only on a bare invocation

The first-arg startswith('-') branch rewrote passthrough globals into a broken
command: OpenClaw's grammar is openclaw [--dev] [--profile <name>] <command>, so
'unsloth start openclaw --profile test' became 'openclaw tui --local --profile
test', but tui does not accept --profile (or --dev), so the invocation failed.

A leading '--flag value' is ambiguous between a global (--profile test) and a tui
option (--message hi), so it cannot be reinterpreted safely. Default to the local
TUI only when no passthrough args are given, and forward everything else verbatim
so OpenClaw parses it under its own grammar. The bare-launch default (the point
of this change) is preserved; explicit subcommands and global flags pass through.

---------

Co-authored-by: wasimysaid <112766706+wasimysaid@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: danielhanchen <danielhanchen@gmail.com>
Co-authored-by: Wasim Yousef Said <wasimysdev@gmail.com>
2026-07-08 04:25:42 -07:00
..
agent-guides-drive.sh Fix OpenClaw start default to local TUI (#6937) 2026-07-08 04:25:42 -07:00
agent-guides-install.sh CLI: Rename unsloth connect to unsloth start (#6613) 2026-07-03 08:17:27 -07:00
assert-llama-loads.sh studio: pick a macOS llama.cpp prebuilt that loads on the host OS (#5883) 2026-05-31 00:59:25 -07:00
assert-prompt-cache.sh Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00
ci-connect-prompt.txt Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00
ci-min-system-prompt.txt Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00
hf-download-with-retry.sh Windows installer: fix DiskPart UAC mid-install, drive-root cache, and spurious unsloth.exe rename warning (#6296) 2026-06-22 03:09:08 -07:00
serve-unsloth-run.sh CLI: Rename unsloth connect to unsloth start (#6613) 2026-07-03 08:17:27 -07:00