diff --git a/app/Concerns/HasAClient.php b/app/Concerns/HasAClient.php index ed25919d..502bcd4c 100644 --- a/app/Concerns/HasAClient.php +++ b/app/Concerns/HasAClient.php @@ -116,7 +116,7 @@ function () use ($apiTokens) { } } - if (! stream_isatty(STDIN) || $this->isNonInteractiveEnvironment()) { + if (! $this->isInteractiveSession()) { throw new RuntimeException('Multiple API tokens found. Run `cloud repo:config --organization=` to set a default for this repository, or use `cloud auth:token` to manage tokens.'); }