Skip to content

feat(cli): print the openshell rename notice by default - #6206

Draft
purp wants to merge 4 commits into
ai-openshell:mainfrom
purp:feat/6199-rename-notice-default-on/purp
Draft

purp wants to merge 4 commits into
ai-openshell:mainfrom
purp:feat/6199-rename-notice-default-on/purp

Conversation

@purp

@purp purp commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Turns on the rename notice that #6203 ships switched off. Started as openshell, the CLI prints a one-line notice to stderr and then runs normally; OPENSHELL_SUPPRESS_RENAME_WARNING hides it.

Depends on #6203: this branch is stacked on it, so the diff includes its commits until it merges. Only the last commit, feat(cli): print the openshell rename notice by default, belongs to this PR.

Related Issue

Related to #6199

Changes

  • CLI: RENAME_WARNING_ON_BY_DEFAULT becomes true.
  • Docs: the installation page and the os(1) man page say that openshell prints the notice, and document OPENSHELL_SUPPRESS_RENAME_WARNING. The snap section notes that the snap's openshell command doesn't print it, because the snap still runs bin/os for that app.
  • Packaging: the Homebrew formula test sets OPENSHELL_SUPPRESS_RENAME_WARNING=1 for its openshell --version check. Package comments describe the notice again.
$ openshell --version
warning: `openshell` has been renamed to `os`; `openshell` will be removed in a future release.
os 0.1.12-dev.35+gcef65e3b3
$ OPENSHELL_SUPPRESS_RENAME_WARNING=1 openshell --version
os 0.1.12-dev.35+gcef65e3b3

Release Notes

Running the CLI as openshell now prints a rename notice to stderr. Switch scripts to os, or set OPENSHELL_SUPPRESS_RENAME_WARNING=1 to hide the notice. Snap users don't see it yet.

Testing

  • cargo test -p openshell-cli --bin os rename passes, including rename_warning_follows_default_unless_suppressed.
  • Manual: an openshell symlink to the debug build prints the notice; with the suppression variable it doesn't.
  • tasks/scripts/test-packaging-assets.sh and tasks/scripts/release_formula_test.py pass.
  • The commit skipped the pre-commit hook; it changes one constant plus docs and comments restored from feat(cli): rename the openshell command to os #6203's earlier revision.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

purp added 4 commits December 3, 2026 12:03
Build the CLI as `os` and keep `openshell` as a link to it in every
package. Started through `openshell`, the CLI runs the same command and
prints a one-line rename notice to stderr, which
OPENSHELL_SUPPRESS_RENAME_WARNING hides.

Release archives, the deb, the RPM, and the Homebrew formula install
`os` with an `openshell` link. The snap adds an `os` app with an `os`
alias request, and its `openshell` app runs the CLI without the notice
until the Store grants the alias. SSH configs record the `os` path
even when generated through the old name.

CLI hints, help examples, tests, and development scripts use `os`.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
Document the rename on the installation page, including the snap's
`openshell.os` app and `os` alias and the variable that hides the
rename notice. Snap instructions keep `openshell`, which runs the CLI
without the notice until the Store grants the `os` alias.

Completion help writes the files that bash, fish, and zsh load for
`os`.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
Running the CLI as openshell no longer prints the rename notice unless
it is switched on in a later release. OPENSHELL_SUPPRESS_RENAME_WARNING
still hides it once it is on.

Related to ai-openshell#6199

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
Running the CLI as openshell now prints a one-line rename notice to
stderr. OPENSHELL_SUPPRESS_RENAME_WARNING hides it.

Related to ai-openshell#6199

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 3, 2026
@purp purp mentioned this pull request Dec 3, 2026
3 tasks done

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant