PostHog / PostHog/posthog-vscode

Redirect URI mismatch on Antigravity

Open
#44 1 comment 0 reactions 1 assignee View on GitHub

@fercgomes is already working on this.

Since May 18, 2026.

bug
Dominant language
TypeScript
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

The extension is currently not working on Antigravity. When trying to log in to the extension, the OAuth redirect responds with invalid_request error. Antigravity has it's own scheme, so I think it just might be a misconfiguration in GitHub OAuth app (the redirect URI is antigravity://posthog.posthog-vscode/auth/callback).

Steps to reproduce

  1. Install the extension
  2. Click on "Sign in with PostHog" button in extension setup screen
  3. Select an EU PostHog Cloud
  4. Get redirected to an error page

Expected behavior

The login flow should be correctly handled and I should be taken back to Antigravity and be logged into the extension.

Environment

  • VS Code version: 1.107.0 (Antigravity 1.23.2)
  • Extension version: 0.71.1
  • OS: MacOS 26.1
  • PostHog instance: EU Cloud

Screenshots

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.