Implement custom Kapa support handoff chat with polished codeblock UX - #502
Implement custom Kapa support handoff chat with polished codeblock UX#502dannyneira wants to merge 12 commits into
Conversation
Co-Authored-By: Warp Agent <agent@warp.dev>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
There was a problem hiding this comment.
Overview
This PR restores the custom Kapa chat panel, adds code-block rendering and copy UX, documents MCP OAuth workarounds, and introduces support handoff/highlight API routes.
Concerns
- The code highlighting cleanup path can still emit an unhandled rejection when Shiki highlighting fails.
Security
- The new support handoff endpoint is public and can be scripted to create support tickets without a rate limit or proof that the request came from a real Kapa conversation.
Verdict
Found: 0 critical, 2 important, 0 suggestions
Request changes
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
|
|
||
| let upstreamResponse: Response; | ||
| try { | ||
| upstreamResponse = await fetch(supportHandoffEndpointUrl, { |
There was a problem hiding this comment.
page_url, email, thread id) as proof, so anyone can script POSTs and spam Front through the shared server secret; require an anti-abuse gate such as rate limiting plus a CAPTCHA/Kapa-issued token or server-side thread verification before forwarding.
Co-authored-by: oz-for-oss[bot] <277970191+oz-for-oss[bot]@users.noreply.github.com>
Co-Authored-By: Warp Agent <agent@warp.dev>
Co-Authored-By: Warp Agent <agent@warp.dev>
Summary
This PR restores a custom Kapa side-chat experience for docs and adds a robust support handoff flow to Front, while preserving Kapa answer quality and improving chat UX.
What’s included
Verification
npm run buildpasses.Notes
Co-Authored-By: Warp Agent agent@warp.dev