Skip to content

INT-843: send requested-by header from AI Authoring requests - #1106

Merged
slvinittomar merged 1 commit into
mainfrom
INT-843/requested-by-header
Sep 24, 2026
Merged

slvinittomar merged 1 commit into
mainfrom
INT-843/requested-by-header

Conversation

@slvinittomar

@slvinittomar slvinittomar commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

AIX attributes requests by the requested-by client-identity header. saucectl AI Authoring (saucectl ai … and saucectl run with kind: authoring) sent only User-Agent: saucectl/<version>.

This PR sets requested-by: saucectl/<version> on:

  • every AI Authoring API request, via AuthoringService.newRequest
  • the ai_authoring.enabled entitlement check, which builds its request separately

The shared internal/http/request.go is untouched, so other commands are unaffected.

Testing

  • Extended TestAuthoringService_BasicAuthAndEnvelope and TestAuthoringService_IsAIAuthoringEnabled to assert the header value.
  • go test ./internal/http/... ./internal/authoring/... ./internal/cmd/authoring/... passes; golangci-lint reports 0 issues.

🤖 Generated with Claude Code

AIX attributes requests by the requested-by client-identity header, which
IDE and MCP clients send. saucectl AI Authoring sent only User-Agent.
Set requested-by: saucectl/<version> on every authoring API request and
on the ai_authoring.enabled entitlement check. Other commands are
unaffected.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@slvinittomar
slvinittomar requested a review from a team as a code owner September 23, 2026 07:53
@slvinittomar slvinittomar added enhancement New feature or request go Pull requests that update Go code claude-code-assisted labels Sep 23, 2026
@slvinittomar
slvinittomar merged commit 31a6ceb into main Sep 24, 2026
30 of 34 checks passed
@slvinittomar
slvinittomar deleted the INT-843/requested-by-header branch September 24, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-code-assisted enhancement New feature or request go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants