Skip to content

Conversation

@Sahil5963
Copy link
Contributor

Summary

  • Adds headers prop to CopilotProvider for passing custom headers with each request

Usage

<CopilotProvider
  runtimeUrl="/api/chat"
  headers={{
    "Authorization": "Bearer token",
    "X-Custom-Header": "value",
  }}
>

🤖 Generated with Claude Code

Sahil5963 and others added 7 commits January 27, 2026 14:41
…mponents

- Add BackButton compound component (auto-connected to context)
- Add ThreadPicker compound wrapper (auto-connected, renders only with persistence)
- Add ChevronLeftIcon to icons
- ChatView now supports Header/Footer children for view-specific layouts
- Memoize context value to prevent unnecessary re-renders
- Add accessibility props (aria-label, disabled override) to BackButton

Usage:
<CopilotChat.ChatView>
  <CopilotChat.Header>
    <CopilotChat.BackButton />
    <CopilotChat.ThreadPicker />
  </CopilotChat.Header>
</CopilotChat.ChatView>

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Compound Components section to chat.mdx with examples for
  Root, HomeView, ChatView, Header, Footer, Input, Suggestions,
  BackButton, and ThreadPicker components
- Document view-specific headers pattern
- Add useCopilotChatContext hook documentation
- Add new semantic CSS classes to customizations.mdx

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Expand SDK response formats to include JSON (Non-Streaming) for batch processing and simpler integrations.
- Update documentation with new examples for using `generateText()` and `runtime.chat()` methods.
- Clarify when to use non-streaming responses, including use cases for logging and analytics.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Allows passing custom headers with each request to the runtime endpoint.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 27, 2026

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

Project Deployment Review Updated (UTC)
copilot-sdk-docs Ready Ready Preview, Comment Jan 27, 2026 1:16pm

Request Review

@Rohitjoshi9023 Rohitjoshi9023 merged commit 4abad59 into main Jan 27, 2026
2 of 3 checks passed
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.

3 participants