Version
v1.0.0-alpha.2
Environment
- OS: macOS
- Shell: zsh
- Install method: vanilla prerelease CLI binary install
What I ran
Expected behavior
If the vanilla CLI install does not ship bundled presets, the CLI should not advertise any preset names in help or list output.
Running an invalid subcommand like oc preset init should also avoid implying that bundled presets are available when they are not.
Actual behavior
The CLI prints preset help that includes a hardcoded "Available presets" section:
- mixed
- openai
- big-pickle
- minimax
- kimi
This suggests that bundled presets are installed and usable, even though a vanilla CLI install does not include default preset assets.
Steps to reproduce
- Install the prerelease CLI through the vanilla binary distribution path.
- Run
oc preset init.
- Observe that the command prints
preset help with a hardcoded bundled preset list.
- Optionally run
oc preset list and observe the same advertised preset names despite the install not including preset assets.
Notes
Investigation points to the preset catalog being hardcoded in the CLI instead of derived from installed assets:
cmd/preset.go hardcodes the preset names/descriptions in command help and list output.
internal/preset/preset.go hardcodes the valid preset names.
- The Go release config in
.goreleaser.yaml builds the binary, but does not appear to package preset files alongside it.
- Preset loading expects files relative to the executable (
presets/...) or repo-local files as a development fallback.
This creates a UX mismatch in vanilla installs: the CLI claims presets exist locally even when they are not actually present.
Version
v1.0.0-alpha.2
Environment
What I ran
Expected behavior
If the vanilla CLI install does not ship bundled presets, the CLI should not advertise any preset names in help or list output.
Running an invalid subcommand like
oc preset initshould also avoid implying that bundled presets are available when they are not.Actual behavior
The CLI prints
presethelp that includes a hardcoded "Available presets" section:This suggests that bundled presets are installed and usable, even though a vanilla CLI install does not include default preset assets.
Steps to reproduce
oc preset init.presethelp with a hardcoded bundled preset list.oc preset listand observe the same advertised preset names despite the install not including preset assets.Notes
Investigation points to the preset catalog being hardcoded in the CLI instead of derived from installed assets:
cmd/preset.gohardcodes the preset names/descriptions in command help and list output.internal/preset/preset.gohardcodes the valid preset names..goreleaser.yamlbuilds the binary, but does not appear to package preset files alongside it.presets/...) or repo-local files as a development fallback.This creates a UX mismatch in vanilla installs: the CLI claims presets exist locally even when they are not actually present.