From 860d423baa02f0dab06400f51b8fa1aa3707fe0e Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 30 Jan 2026 10:48:50 -0600 Subject: [PATCH] Set the `GH_REPO` environment variable in session startup (#17774) Otherwise, `gh` fails because it cannot determine what the target repository is. Co-authored-by: Claude --- .claude/hooks/session-start-web.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.claude/hooks/session-start-web.sh b/.claude/hooks/session-start-web.sh index 95a987889..5536abf99 100755 --- a/.claude/hooks/session-start-web.sh +++ b/.claude/hooks/session-start-web.sh @@ -9,3 +9,8 @@ fi # Install clippy and rustfmt for the active toolchain. rustup component add clippy rustfmt + +# Set GH_REPO so `gh` works even when the git remote points to a local proxy +if [ -n "${CLAUDE_ENV_FILE:-}" ]; then + echo 'export GH_REPO=astral-sh/uv' >> "$CLAUDE_ENV_FILE" +fi