Skip to content

Allow packed agent metadata in analytics - #8246

Open
isaacroldan wants to merge 1 commit into
mainfrom
isaac/allowlist-agent-info-ids
Open

Allow packed agent metadata in analytics#8246
isaacroldan wants to merge 1 commit into
mainfrom
isaac/allowlist-agent-info-ids

Conversation

@isaacroldan

Copy link
Copy Markdown
Contributor

Why

AI Toolkit sends packed CLI attribution through SHOPIFY_CLI_AGENT_INFO and SHOPIFY_CLI_AGENT_IDS. The analytics allowlist currently drops both variables, while the data-warehouse model already reads them as fallbacks.

What

  • Add both packed agent variables to getShopifyEnvironmentVariables().
  • Extend the allowlist regression test and keep unknown SHOPIFY_* variables excluded.

Testing

  • pnpm vitest run packages/cli-kit/src/public/node/analytics.test.ts
  • pnpm eslint packages/cli-kit/src/private/node/analytics.ts packages/cli-kit/src/public/node/analytics.test.ts
  • pnpm nx bundle cli --skip-nx-cache
  • Verified both packed variables in real verbose CLI output while SHOPIFY_SOMETHING_KEY=123 remained excluded.
  • git diff --check

No changeset: this only restores internal analytics collection.

Assisted-By: devx/2ae47aa3-adba-4060-adf8-d3b99e6b63f3
@isaacroldan
isaacroldan requested a review from a team as a code owner August 4, 2026 09:36
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant