Skip to content

feat(snap): run the CLI as os through the granted Store alias - #6207

Draft
purp wants to merge 5 commits into
ai-openshell:mainfrom
purp:feat/6199-snap-os-alias/purp
Draft

purp wants to merge 5 commits into
ai-openshell:mainfrom
purp:feat/6199-snap-os-alias/purp

Conversation

@purp

@purp purp commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Finishes the snap side of the os rename, assuming the Snap Store has granted the snap an os alias. Snap installs run the CLI as os, and the snap's openshell command prints the rename notice like every other package.

Do not merge until the Snap Store grants the os alias. Without it, Store installs have no os command and the snap canary fails.

Depends on #6206, which depends on #6203: this branch is stacked on both, so the diff includes their commits until they merge. Only the last commit, feat(snap): run the CLI as os through the granted Store alias, belongs to this PR.

Related Issue

Closes #6199

Changes

  • snapcraft.yaml: the part installs bin/os and an openshell -> os link. The openshell app runs bin/openshell, so the CLI sees that name and prints the notice; the os app keeps command: bin/os and the os alias. Setup instructions in the description use os.
  • Docs: the snap section of the installation page uses os, and says that locally built snaps, which don't get Store aliases, use openshell.os.
  • install.sh registers the snap gateway with /snap/bin/openshell.os, which works with or without the alias and doesn't print the notice.
  • Snap canary runs os for version, gateway, and sandbox checks, and checks that openshell --version prints the notice.
  • Packaging and installer tests assert the link, the openshell app command, the docs commands, and the installer path.

Release Notes

Snap installs now provide the CLI as os. The snap's openshell command still works and prints the same rename notice as the other packages.

Testing

  • tasks/scripts/test-packaging-assets.sh and tasks/scripts/test-install-sh.sh pass. snapcraft.yaml and release-canary.yml parse as YAML.
  • mise run markdown:lint passes.
  • Not run: building the snap and the snap canary. The canary needs the Store alias, so it can only pass after the grant.

Checklist

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

purp added 5 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>
The Snap Store granted the os alias, so snap installs now run the CLI as
os. The snap's openshell app runs the CLI through an openshell link and
prints the rename notice like the other packages. Snap docs, the snap
canary, and install.sh use os.

Closes 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.

feat(cli): rename the openshell command to os, keeping openshell as a deprecated shim

1 participant