Skip to content

Conversation

jog1t
Copy link
Contributor

@jog1t jog1t commented Oct 7, 2025

TL;DR

Improved header handling in API clients by removing all Fern-related headers.

What changed?

  • Modified the cloud-data-provider.tsx to use a more robust approach for removing Fern-related headers by iterating through all headers and removing any that start with "x-fern-" (case-insensitive)
  • Fixed a typo in the cloud provider where fetcher was called instead of fetch
  • Added the same header cleaning logic to the engine-data-provider.tsx to ensure consistent behavior across both data providers

How to test?

  1. Make API calls using both cloud and engine data providers
  2. Verify that no "x-fern-" headers are being sent in the requests
  3. Confirm that API calls complete successfully with the updated header handling

Why make this change?

The previous implementation in the cloud provider only removed specific Fern headers by name, which could miss other Fern headers. The new implementation ensures all Fern-related headers are removed systematically. Adding this same functionality to the engine provider ensures consistent behavior across both providers and prevents potential issues with unwanted headers being sent to the API.

Copy link

vercel bot commented Oct 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rivet-inspector Ready Ready Preview Comment Oct 14, 2025 0:58am
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
rivet-cloud Ignored Ignored Preview Oct 14, 2025 0:58am
rivet-site Ignored Ignored Preview Oct 14, 2025 0:58am

@jog1t jog1t marked this pull request as ready for review October 7, 2025 22:41
Copy link
Contributor Author

jog1t commented Oct 7, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

claude bot commented Oct 7, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

pkg-pr-new bot commented Oct 7, 2025

Open in StackBlitz

npm i https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner@3106
npm i https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner-protocol@3106

commit: 6ff51f5

Copy link
Contributor

graphite-app bot commented Oct 7, 2025

Graphite Automations

"Test" took an action on this PR • (10/07/25)

1 assignee was added to this PR based on Kacper Wojciechowski's automation.

Copy link

claude bot commented Oct 7, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Oct 7, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Oct 7, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Oct 7, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@jog1t jog1t force-pushed the 10-08-fix_remove_frn branch from ed7cca1 to 58093a8 Compare October 8, 2025 20:34
Copy link

claude bot commented Oct 8, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Oct 13, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@jog1t jog1t changed the base branch from main to graphite-base/3106 October 13, 2025 23:43
@jog1t jog1t force-pushed the 10-08-fix_remove_frn branch from fa2b93b to a3e4d24 Compare October 13, 2025 23:44
@jog1t jog1t changed the base branch from graphite-base/3106 to 10-13-chore_add_namespace_to_serverless_health_check_query October 13, 2025 23:44
Copy link

claude bot commented Oct 13, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Oct 13, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@jog1t jog1t mentioned this pull request Oct 13, 2025
This was referenced Oct 14, 2025
@graphite-app graphite-app bot changed the base branch from 10-13-chore_add_namespace_to_serverless_health_check_query to graphite-base/3106 October 14, 2025 00:35
@jog1t jog1t force-pushed the graphite-base/3106 branch from c507238 to cf6d4d7 Compare October 14, 2025 00:52
@jog1t jog1t force-pushed the 10-08-fix_remove_frn branch from a3e4d24 to 6ff51f5 Compare October 14, 2025 00:52
@jog1t jog1t changed the base branch from graphite-base/3106 to main October 14, 2025 00:52
Copy link

claude bot commented Oct 14, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link
Contributor

graphite-app bot commented Oct 14, 2025

Merge activity

  • Oct 14, 4:18 AM UTC: NathanFlurry added this pull request to the Graphite merge queue.
  • Oct 14, 4:19 AM UTC: CI is running for this pull request on a draft pull request (#3186) due to your merge queue CI optimization settings.
  • Oct 14, 4:20 AM UTC: Merged by the Graphite merge queue via draft PR: #3186.

graphite-app bot pushed a commit that referenced this pull request Oct 14, 2025
### TL;DR

Improved header handling in API clients by removing all Fern-related headers.

### What changed?

- Modified the `cloud-data-provider.tsx` to use a more robust approach for removing Fern-related headers by iterating through all headers and removing any that start with "x-fern-" (case-insensitive)
- Fixed a typo in the cloud provider where `fetcher` was called instead of `fetch`
- Added the same header cleaning logic to the `engine-data-provider.tsx` to ensure consistent behavior across both data providers

### How to test?

1. Make API calls using both cloud and engine data providers
2. Verify that no "x-fern-" headers are being sent in the requests
3. Confirm that API calls complete successfully with the updated header handling

### Why make this change?

The previous implementation in the cloud provider only removed specific Fern headers by name, which could miss other Fern headers. The new implementation ensures all Fern-related headers are removed systematically. Adding this same functionality to the engine provider ensures consistent behavior across both providers and prevents potential issues with unwanted headers being sent to the API.
@graphite-app graphite-app bot closed this Oct 14, 2025
@graphite-app graphite-app bot deleted the 10-08-fix_remove_frn branch October 14, 2025 04:20
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