Skip to content

feat(coana): forward SOCKET_CALLER_USER_AGENT to Coana CLI#1321

Merged
Martin Torp (mtorp) merged 5 commits into
v1.xfrom
feat/forward-user-agent-to-coana
May 20, 2026
Merged

feat(coana): forward SOCKET_CALLER_USER_AGENT to Coana CLI#1321
Martin Torp (mtorp) merged 5 commits into
v1.xfrom
feat/forward-user-agent-to-coana

Conversation

@mtorp
Copy link
Copy Markdown
Contributor

@mtorp Martin Torp (mtorp) commented May 20, 2026

Summary

  • Set SOCKET_CALLER_USER_AGENT on the env passed to @coana-tech/cli in spawnCoanaDlx, so the Coana CLI can append the Socket CLI's product token to its outbound axios User-Agent.
  • Format mirrors Coana's own base UA: socket/<version> node/<nodeVersion> <platform>/<arch>. Effective UA on traffic from Coana becomes e.g.: coana-tech-cli/15.3.1 node/v22.21.1 linux/arm64 socket/1.1.97 node/v22.21.1 linux/arm64.
  • Companion to coana-tech/coana-package-manager#2225 (Coana 15.3.1), which reads this env var on startup via configureAxiosUserAgent.

Test plan

  • pnpm check:lint — passes locally.
  • pnpm check:tsc — passes locally.
  • Once Coana 15.3.1 is published, bump INLINED_SOCKET_CLI_COANA_TECH_CLI_VERSION and verify outbound requests carry the combined UA (e.g. via API server logs or a local proxy).

Note

Low Risk
Low risk: changes are limited to spawning the Coana subprocess (adds one env var) and bumps the @coana-tech/cli dependency; no auth/permission logic changes, but could affect outbound request attribution and tooling compatibility.

Overview
Updates bundled Coana tooling by bumping @coana-tech/cli to 15.3.1 and releases Socket CLI 1.1.99.

When spawning Coana via spawnCoanaDlx (src/utils/dlx.mts), now forwards a SOCKET_CALLER_USER_AGENT env var (socket/<version> node/<nodeVersion> <platform>/<arch>) so Coana can append it to its axios User-Agent for better backend traffic attribution.

Reviewed by Cursor Bugbot for commit 822473f. Configure here.

Set SOCKET_CALLER_USER_AGENT on the env passed to @coana-tech/cli in
spawnCoanaDlx. Coana >= 15.3.1 appends this to its outbound axios
User-Agent so backend traffic identifies the originating Socket CLI
alongside the Coana version.

Format: socket/<version> node/<nodeVersion> <platform>/<arch>
Cuts a patch release for the SOCKET_CALLER_USER_AGENT forwarding
added in the previous commit.
Resolved CHANGELOG conflict by keeping both 1.1.98 entries (brotli
upload compression from v1.x and SOCKET_CALLER_USER_AGENT forwarding
from this branch). package.json bumps to 1.1.98 matched on both sides
and auto-merged.
1.1.98 was claimed by the brotli upload-compression change merged
into v1.x. Carve out a separate 1.1.99 section for the
SOCKET_CALLER_USER_AGENT forwarding from this branch.
Required for the SOCKET_CALLER_USER_AGENT forwarding added in this
branch — Coana 15.3.1 is the version that reads the env var and
appends it to its outbound axios User-Agent.
@mtorp Martin Torp (mtorp) marked this pull request as ready for review May 20, 2026 09:44
@mtorp Martin Torp (mtorp) merged commit b6c3411 into v1.x May 20, 2026
13 checks passed
@mtorp Martin Torp (mtorp) deleted the feat/forward-user-agent-to-coana branch May 20, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants