feat(coana): forward SOCKET_CALLER_USER_AGENT to Coana CLI#1321
Merged
Conversation
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.
Benjamin Barslev Nielsen (barslev)
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SOCKET_CALLER_USER_AGENTon the env passed to@coana-tech/cliinspawnCoanaDlx, so the Coana CLI can append the Socket CLI's product token to its outbound axiosUser-Agent.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.configureAxiosUserAgent.Test plan
pnpm check:lint— passes locally.pnpm check:tsc— passes locally.INLINED_SOCKET_CLI_COANA_TECH_CLI_VERSIONand 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/clidependency; no auth/permission logic changes, but could affect outbound request attribution and tooling compatibility.Overview
Updates bundled Coana tooling by bumping
@coana-tech/clito15.3.1and releases Socket CLI1.1.99.When spawning Coana via
spawnCoanaDlx(src/utils/dlx.mts), now forwards aSOCKET_CALLER_USER_AGENTenv var (socket/<version> node/<nodeVersion> <platform>/<arch>) so Coana can append it to its axiosUser-Agentfor better backend traffic attribution.Reviewed by Cursor Bugbot for commit 822473f. Configure here.