Skip to content

Minimax "Request failed" unless started from the terminal #305

@agross

Description

@agross

Description

If OpenUsage is run from e.g. Spotlight, Minimax requests always fail ("Check your network connection" - which is working).

When I open -a OpenUsage from iTerm (zsh), the environment block containing MINIMAX_API_KEY is inherited to OpenUsage and there are no errors.

I've had a look at the code and it seems in my case /bin/zsh -ilc 'printenv MINIMAX_API_KEY' will be executed at some point:

agross@firiel ~
$ echo $MINIMAX_API_KEY

agross@firiel ~
$ /bin/zsh -ilc 'printenv MINIMAX_API_KEY'
sk-cp-miEs...

Steps to Reproduce

  1. Open OpenUsage from Spotlight

Expected Behavior

It should work in both cases.

Actual Behavior

Check your network.

OpenUsage Version

0.6.10

Operating System

macOS (Apple Silicon)

Screenshots

Image

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions