Skip to content

Fix/zsh shell detection#22

Merged
kferrone merged 4 commits into
mainfrom
fix/zsh-shell-detection
Jun 16, 2026
Merged

Fix/zsh shell detection#22
kferrone merged 4 commits into
mainfrom
fix/zsh-shell-detection

Conversation

@duplocloud-matt

Copy link
Copy Markdown
Contributor
  • Adds support for zsh based containers like the anthropic reference container
  • Fixes startup logic to prevent non-interactive terminals prompting for op signin.

duplocloud-matt and others added 4 commits June 5, 2026 12:13
add_account could never enroll an account: `op account add` requires the
Secret Key (1Password exposes no flag/env for it), and it ran with
`</dev/null`, so the Secret Key prompt read EOF and failed with
"invalid account key format length 0". It was also gated behind
is_terminal_interactive, which is unreliable because the devcontainer CLI
allocates a PTY for lifecycle hooks (the gate passes with no human present).

Enrollment is inherently interactive, so it now lives solely on the
`op-session-reload --interactive` path (the shell rc, where a person just
opened a real terminal). on-create now performs a non-interactive session
refresh and verifies it with `op whoami` before claiming auth, since
op-session-reload also exits 0 on its deferral paths.

Also log OP_PASSWD presence/absence during op-session-reload sign-in to help
users spot a missing env var.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kferrone kferrone merged commit 98e8fbd into main Jun 16, 2026
89 of 90 checks passed
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.

2 participants