Skip to content

fix(react-core): add headers to runtime client configuration in useCoAgent function - #1803

Closed
utvara wants to merge 1 commit into
CopilotKit:mainfrom
utvara:main
Closed

utvara wants to merge 1 commit into
CopilotKit:mainfrom
utvara:main

Conversation

@utvara

@utvara utvara commented May 13, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix issue with authentication headers are not sent the first time coagent is used.

Related PRs and Issues

Checklist

  • I have read the Contribution Guide
  • If the PR changes or adds functionality, I have updated the relevant documentation

@changesets-bot-copilotkit

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 1c145c0

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 if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented May 13, 2025 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
registry ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 8:11am

@vercel

vercel Bot commented May 13, 2025

Copy link
Copy Markdown
Contributor

@utvara is attempting to deploy a commit to the CopilotKit Team on Vercel.

A member of the Team first needs to authorize it.

@utvara utvara changed the title fix: add headers to runtime client configuration in useCoAgent function fix(react-core): add headers to runtime client configuration in useCoAgent function May 13, 2025
@tylerslaton

Copy link
Copy Markdown
Contributor

Hi Utvara, we're overhauling our CI for contibutors but for now you can ignore everything except the CI/Test and Quality actions.

@utvara

utvara commented May 23, 2025

Copy link
Copy Markdown
Contributor Author

Hi Utvara, we're overhauling our CI for contibutors but for now you can ignore everything except the CI/Test and Quality actions.

@tylerslaton that is sometimes a good problem to have :) usually is an indicator that you're doing something right with so many contributions 👍

@gnaryak

gnaryak commented May 27, 2025

Copy link
Copy Markdown

Hi CoPilotKit Team and specifically @mme, @ataibarkai, @ranst91, @tylerslaton, and @suhasdeshpande - The Viaduct team is being impacted by the bug that this PR fixes, where headers are not sent to the agent when using useCoAgent. It would be really helpful if it could be merged. Until it is merged, we are resorting to locking to the current version of CPK and monkey patching it. Not awesome.

I can confirm that the change in this PR works well in our codebase. It fixes the problem and has no negative side effects.

Thanks for your help!

@tylerslaton

Copy link
Copy Markdown
Contributor

Hey everyone, this has been merged into main as apart of our latest community contribution's PR.

Thank you for the contribution @utvara, it is present in main (we just cherry-picked this PR and made sure you got credit!) and will be apart of the next release.

@gnaryak you can use our latest next release in the mean-time to get around your production issue until we do that official release, it should be out in about 15-20 minutes.

#1868

@trainoasis

Copy link
Copy Markdown

Thanks @tylerslaton and @utvara 🙏🏼

This branch was successfully deployed

1 active deployment
Preview – registry — 1c145c0e Deployed May 13, 2025 by vercel[bot]
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.

4 participants