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 13, 2025 6:22pm
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
rivet-cloud Ignored Ignored Preview Oct 13, 2025 6:22pm
rivet-site Ignored Ignored Preview Oct 13, 2025 6:22pm

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

jog1t commented Oct 7, 2025


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: fa2b93b

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 10, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Oct 10, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Oct 12, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Oct 12, 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 90e8833 to fa2b93b Compare October 13, 2025 18:18
Copy link

claude bot commented Oct 13, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

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