Skip to content

Don't call uploads from the OpenAI directory plugin hook #672

Description

@zachdunn

Follow-up to #668. The Codex plugin ships hooks/hooks.json with:

"command": "uploads hook pre-pr-screenshot"

That assumes a global uploads binary on PATH. Official directory plugins either ship no hooks (Cloudflare, GitHub, Vercel directory) or vendor a script under the plugin root. ChatGPT has no hook runtime. Codex skips plugin hooks until the user trusts them.

A portal scan that rejects undeclared local binaries will flag this. It is also a silent no-op for anyone who installed the plugin without the CLI — the opposite of what the reminder is for.

Options

  1. Omit the hook from the directory package. Keep it for the Claude marketplace and uploads install. Cleanest for ChatGPT review.
  2. Vendor a fail-open script in the plugin zip (${PLUGIN_ROOT}/hooks/…) that no-ops if uploads is missing. Matches Figma / vercel-plugin.

Prefer (1) unless Codex-in-the-directory still wants the reminder without a separate CLI install.

What this is not

Not a change to the hook's behavior when the CLI is installed. Not a rewrite of the screenshot reminder itself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions