Skip to content

Conversation

@pugazhendhi-m
Copy link
Contributor

@pugazhendhi-m pugazhendhi-m commented Mar 6, 2025

Context

Adds a custom header to requests to track the origin of the request. Streaming requests already contain the custom header. This change is to add the same for non-streaming requests.

Implementation

Added a custom header "X-Unbound-Metadata" which has the application name "roo-code". This is used to track the origin of the requests.

Screenshots

before after

How to Test

Modified test files to verify the presence of custom header.

Get in Touch


Important

Adds X-Unbound-Metadata header to non-streaming requests in UnboundHandler to track request origin.

  • Behavior:
    • Adds custom header X-Unbound-Metadata with app name roo-code to non-streaming requests in UnboundHandler.
    • Header was already present in streaming requests.
  • Tests:
    • Updates unbound.test.ts to verify presence of X-Unbound-Metadata header in both streaming and non-streaming requests.

This description was created by Ellipsis for 4073bdc. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2025

⚠️ No Changeset found

Latest commit: 4073bdc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pugazhendhi-m pugazhendhi-m marked this pull request as ready for review March 6, 2025 05:00
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. Enhancement New feature or request labels Mar 6, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 6, 2025
@cte cte merged commit c9e21eb into RooCodeInc:main Mar 6, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants