Skip to content

Allow packed agent metadata in analytics - #8246

Merged
isaacroldan merged 1 commit into
mainfrom
isaac/allowlist-agent-info-ids
Aug 6, 2026
Merged

Allow packed agent metadata in analytics#8246
isaacroldan merged 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

isaacroldan commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

  • Aug 6, 9:30 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Aug 6, 9:30 AM UTC: @isaacroldan added this pull request to the GitHub merge queue with Graphite.

@isaacroldan
isaacroldan added this pull request to the merge queue Aug 6, 2026
Merged via the queue into main with commit 7f04851 Aug 6, 2026
46 of 54 checks passed
@isaacroldan
isaacroldan deleted the isaac/allowlist-agent-info-ids branch August 6, 2026 09:38
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.

2 participants