OpenAI-curated PostHog plugin: OAuth callback consistently returns HTTP 400 in Codex Desktop
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- python
- Domain
- api, authentication, backend
Research direction
Start with the OpenAI connector/backend logs for the connector ID and timestamps listed in the report, then compare the callback failure with the documented PostHog OAuth flow. Done means identifying the underlying OAuth error and confirming whether the fix belongs in this repository or with the OpenAI connector owner.
Written by the indexing model from the issue text.
Description
Summary
Installing the PostHog plugin from the OpenAI-curated marketplace succeeds, but completing the PostHog OAuth flow consistently fails when Codex Desktop submits the callback to OpenAI's connector backend.
The visible UI reports only:
We couldn't connect your account. Please try again.
Codex then automatically rolls back and uninstalls the plugin.
Environment
- Codex Desktop release:
26.730.61639 - macOS:
26.5.1 - Architecture: Apple Silicon (
arm64) - Plugin source:
posthog@openai-curated-remote - Plugin version observed locally:
0.1.2 - Connector ID:
asdk_app_699caef2d680819188727b0ddbb349dd
Steps to reproduce
- Open the Codex Desktop plugin marketplace.
- Install the OpenAI-curated PostHog plugin.
- Complete the PostHog authorization flow in the browser.
- Return to Codex.
Expected behavior
The OAuth callback completes and the PostHog app remains installed and connected.
Actual behavior
Plugin installation initially succeeds:
plugin_install_succeeded
pluginName=plugin_asdk_app_699caef2d680819188727b0ddbb349dd
remoteMarketplaceName=openai-curated-remote
The subsequent callback request fails:
POST /aip/connectors/links/oauth/callback
status=400
{"detail":{"message":"We couldn't connect your account. Please try again.","status_code":400,"connector_id":"asdk_app_699caef2d680819188727b0ddbb349dd"}}
Failed to finish app OAuth callback
Codex then rolls back the installation:
plugin_uninstall_succeeded
pluginId=plugin_asdk_app_699caef2d680819188727b0ddbb349dd
The local reconciliation state records both oauthFailed: true and rolledBack: true.
Reproducibility
This occurred on five separate fresh installation/authorization attempts on 2026-08-07:
- 09:06:42 UTC
- 09:09:02 UTC
- 09:45:01 UTC
- 10:04:40 UTC
- 10:07:00 UTC
The plugin installation itself succeeded every time; the failure was consistently at the OAuth callback. No PostHog provider error, token-exchange response, or more specific diagnostic was exposed in the local client logs.
Additional context
This appears to be the OpenAI-curated app/connector flow, rather than the direct GitHub-marketplace MCP installation path documented in this repository. If this report belongs in a different tracker, please point me to the appropriate owner.
Could the connector/backend logs for the connector ID and timestamps above reveal the underlying PostHog OAuth error?
- Dominant language
- Python
- Stars
- 100
- Forks
- 21
- Avg merge
- 3h 25m
- Merged PRs (30d)
- 43
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PostHog/ai-plugin
-
Write gate prompts for approval even in Claude Code bypassPermissions modePossibly taken @tlq5l claimed this 16 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
PostHog/ai-plugin#181 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
PostHog/ai-plugin#166 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
PostHog/ai-plugin#147 · 3 comments · 6 reactions ·
Maintainers usually reply within 1 day
All issues in PostHog/ai-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Install the skills as a Claude Code pluginPossibly taken @ruban-24 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
FAIRmat-NFDI/pynxtools#874 ·
-
Eval: PublicationOpendata
Difficulty 2/5 1-3 hours Newbie friendliness 66/100