Skip to content

Codex shell execution does not match real user session (1Password/op + glab), causing auth mismatches #13160

@dzwicker

Description

@dzwicker

I’m reporting a reproducible workflow issue that makes Codex unreliable for real developer automation.

In my normal terminal, zsh + op + glab work correctly (same directory, same hooks, same token resolution).
In Codex-run commands, even with login/interactive zsh attempts, the environment is different:

1Password desktop app integration is not reliably available
op://-based secret loading behaves differently
glab resolves to a different auth context than in my actual terminal
group/project access checks fail in Codex while succeeding locally
This leads to repeated failures and manual copy/paste fallbacks, which defeats the purpose of agent automation.

Expected behavior

Codex should be able to run in the exact same effective shell/session context as the user’s terminal (including keychain/app bridges and shell hooks), or
clearly expose a “true user session mode” for auth-sensitive developer workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIauthIssues related to authentication and accountsbugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions