Skip to content

HEY skill should retry outside the Codex sandbox when Keychain auth is unavailable #433

Description

@mrhead

On macOS, the HEY skill in Codex can report that hey is not authenticated even though hey auth status succeeds in the user's terminal.

The Codex process may be sandboxed and unable to access credentials stored in the macOS Keychain. In that case, hey auth status --json and other HEY commands return authenticated: false or a Not logged in error. Running the same command with elevated sandbox permissions succeeds using the existing credentials.

HEY_NONINTERACTIVE=1 does not resolve the problem because it only prevents an interactive login prompt. The current skill tells the agent to report the task as blocked and ask the user to run hey auth login, even though the user is already logged in.

The skill should tell Codex agents on macOS to retry the HEY command with elevated sandbox permissions when Keychain access may be blocked. It should only ask the user to log in if that retry also returns an authentication error.

This happened with hey 1.4.0. I also checked the skill on main and in the latest 1.4.3 release, and the current authentication instructions do not cover this case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions