Skip to content

Forward session-bearing site feedback to the Kernel API - #259

Closed
ulziibay-kernel wants to merge 1 commit into
mainfrom
hypeship/forward-site-reports
Closed

ulziibay-kernel wants to merge 1 commit into
mainfrom
hypeship/forward-site-reports

Conversation

@ulziibay-kernel

Copy link
Copy Markdown
Contributor

Summary

submit_feedback already captures site_compatibility and config_registry reports to PostHog. When such a report names a browser_session_id, the server now also posts it to the Kernel API's new POST /browsers/{id_or_name}/site-reports endpoint using the caller's token, so the outcome is attached to the session with its browser and proxy configuration.

  • site-report-forwarder.ts maps the feedback fields onto the site-report request (outcome, challenge type, provider, reproducibility, task, notes, config-registry attribution). The feedback schema only carries the registrable domain, so the report URL is the site root.
  • Forwarding runs inside the existing capture callback and swallows every error. The tool's response and PostHog capture are unchanged, and nothing is forwarded when analytics is disabled (the "unavailable" contract stays as is).
  • The tool schema and description are untouched, so agents keep calling it the same way.

Depends on kernel/kernel#5002 being deployed. Until then the forward fails quietly and the PostHog path keeps working, so this is safe to merge in either order.

Testing

  • bun test for site-report-forwarder, feedback, analytics, prompts, register: 84 pass
  • bunx tsc --noEmit clean
  • Prettier clean on changed files (bun run format:check flags AGENTS.md, which is unformatted on main)

🤖 Generated with Claude Code

submit_feedback site_compatibility and config_registry reports that
name a browser session are now also posted to
POST /browsers/{id}/site-reports, so the outcome lands next to the
session's telemetry instead of only in analytics. Forwarding is
fail-open and never changes the tool's result.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
mcp Ready Ready Preview Oct 26, 2026 5:33pm UTC

This branch was successfully deployed

1 active deployment
Preview — fa1595b3 Deployed Oct 26, 2026 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.

1 participant