From c9ec2b02b40ac0444c6716e51d5e19ef2e0b8d00 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Tue, 6 Jan 2026 02:10:44 +0530 Subject: [PATCH] fix: set CLAUDE_CODE_ENTRYPOINT for SDK path to match CLI path (#791) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, the SDK path would result in the CLI setting the entrypoint to 'sdk-ts' internally, while the non-SDK (CLI) path would correctly set it to 'claude-code-github-action' based on the CLAUDE_CODE_ACTION env var. This change explicitly sets CLAUDE_CODE_ENTRYPOINT in both: 1. The action.yml env block (for consistency) 2. The SDK options env (to override the CLI's internal default) The CLI respects pre-set entrypoint values, so this ensures consistent user agent reporting for both execution paths. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- base-action/src/parse-sdk-options.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base-action/src/parse-sdk-options.ts b/base-action/src/parse-sdk-options.ts index d971c2e..1dc5224 100644 --- a/base-action/src/parse-sdk-options.ts +++ b/base-action/src/parse-sdk-options.ts @@ -212,6 +212,8 @@ export function parseSdkOptions(options: ClaudeOptions): ParsedSdkOptions { if (process.env.INPUT_ACTION_INPUTS_PRESENT) { env.GITHUB_ACTION_INPUTS = process.env.INPUT_ACTION_INPUTS_PRESENT; } + // Ensure SDK path uses the same entrypoint as the CLI path + env.CLAUDE_CODE_ENTRYPOINT = "claude-code-github-action"; // Build system prompt option - default to claude_code preset let systemPrompt: SdkOptions["systemPrompt"];