Skip to content

[codex] Simplify show-password behavior#6

Merged
batteryshark merged 1 commit into
mainfrom
codex/show-password-simplify
Apr 24, 2026
Merged

[codex] Simplify show-password behavior#6
batteryshark merged 1 commit into
mainfrom
codex/show-password-simplify

Conversation

@batteryshark
Copy link
Copy Markdown
Contributor

Summary

  • Make show-password [name] reveal credentials directly and remove its --reveal flag.
  • Allow lifecycle command flags to appear before or after the optional instance name.
  • Update README, security notes, operator docs, and regression tests for the new behavior.

Root Cause

The previous CLI used Go's standard flag parsing for lifecycle commands, so flags after a positional instance name were not parsed. That made show-password brain --reveal ignore --reveal, while the command name itself also implied it should reveal the password without another flag.

Validation

  • go test ./...
  • ./scripts/build.sh dev
  • ./build/opencode-agent-darwin-arm64 show-password brain --reveal now rejects the removed flag
  • ./build/opencode-agent-darwin-arm64 help shows show-password [name]

@batteryshark batteryshark marked this pull request as ready for review April 24, 2026 17:31
@batteryshark batteryshark merged commit b40457c into main Apr 24, 2026
4 checks passed
@batteryshark batteryshark deleted the codex/show-password-simplify branch April 24, 2026 17:31
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