Skip to content

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Nov 4, 2025

Summary by cubic

Adds the x-continue-unique-id header to LLM requests and standardizes header casing to user-agent for reliable header merging. Also adds a safe proxyUrl fallback to env.apiBase when an on-prem proxy is not set.

  • New Features

    • Send x-continue-unique-id header (from PostHog uniqueId) with LLM requests.
  • Bug Fixes

    • Normalize header casing to user-agent and update tests to match.
    • Expose PosthogService.uniqueId publicly to build the header.
    • Fallback proxyUrl to env.apiBase when onPremProxyUrl is missing.

Written for commit e47a6d5. Summary will update automatically on new commits.

@sestinj sestinj requested a review from a team as a code owner November 4, 2025 18:59
@sestinj sestinj requested review from RomneyDa and removed request for a team November 4, 2025 18:59
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 4, 2025
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

⚠️ PR Title Format

Your PR title doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend using this format for better project organization.

Expected Format:

<type>[optional scope]: <description>

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

✅ Review Complete

Code Review Summary

⚠️ Continue API authentication failed. Please check your CONTINUE_API_KEY.


Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 3 files

Prompt for AI agents (all 2 issues)

Understand the root cause of the following 2 issues and fix them.


<file name="extensions/cli/src/telemetry/posthogService.ts">

<violation number="1" location="extensions/cli/src/telemetry/posthogService.ts:15">
Making uniqueId fully public allows outside code to rewrite it, which breaks the invariant that telemetry events share a stable distinctId. Please expose it as read-only instead of writable.</violation>
</file>

<file name="extensions/cli/src/config.ts">

<violation number="1" location="extensions/cli/src/config.ts:77">
Non-proxy LLM configs no longer merge in the telemetry headers, so the new user-agent/x-continue-unique-id values are now omitted for all providers except &quot;continue-proxy&quot;. Please keep calling mergeUserAgentIntoRequestOptions here so every request includes the intended headers.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Nov 4, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@sestinj sestinj merged commit 5519f27 into main Nov 4, 2025
70 of 73 checks passed
@sestinj sestinj deleted the nate/user-agent-lowercase-and-unique-id-header branch November 4, 2025 20:05
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PRs Nov 4, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2025
@sestinj
Copy link
Contributor Author

sestinj commented Nov 7, 2025

🎉 This PR is included in version 1.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Nov 18, 2025

🎉 This PR is included in version 1.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Nov 19, 2025

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Nov 20, 2025

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

released size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants