From ab930520d94099d15378c1d2548455759d355044 Mon Sep 17 00:00:00 2001 From: Max schwenk Date: Sun, 24 Aug 2025 15:54:19 -0400 Subject: [PATCH] Blow up hard if there's no org id? --- pkg/cmd/claude/remote.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cmd/claude/remote.go b/pkg/cmd/claude/remote.go index 72970dc1..fd98babe 100644 --- a/pkg/cmd/claude/remote.go +++ b/pkg/cmd/claude/remote.go @@ -51,6 +51,9 @@ func RunAgentRemote(ctx context.Context, opts *AgentRemoteOptions) error { } if opts.OrgID == "" { + if os.Getenv("DEPOT_ORG_ID") == "" { + return fmt.Errorf("organization ID is required. Set it via --org flag, DEPOT_ORG_ID environment variable, or run 'depot org switch '") + } opts.OrgID = os.Getenv("DEPOT_ORG_ID") }