Skip to content

feat: tell Codex to run contextbridge open outside the sandbox #110

Closed

Description

@blimmer

What's the problem?

The Codex planbridge-open skill currently tells agents to run contextbridge open <path> like a normal command. In Codex, that usually starts the local annotation server, but the automatic browser launch depends on a GUI/desktop action and can fail or no-op from the default sandbox.

This makes $planbridge-open /path/to/file.md confusing: PlanBridge may print a localhost URL, but the browser does not reliably open automatically unless the command is run outside the sandbox.

Proposed solution

Update the Codex-installed planbridge-open skill so it explicitly tells Codex to run contextbridge open with sandbox escalation, for example using sandbox_permissions: "require_escalated" and an appropriate justification. For path-based usage, the guidance should also suggest a reasonably scoped reusable approval such as prefix_rule: ["contextbridge", "open"].

Implementation should avoid a one-off hardcoded appendix in the renderer. We will want:

  • a way to add harness-specific details to a given skill, so Codex can receive operational guidance that Claude or other harnesses should not see
  • a way to easily reuse standard Codex sandbox messaging, because future contextbridge commands will likely need to tell Codex to break out of the sandbox for browser, desktop, or other local integration behavior

Alternatives you considered

A direct Codex-only text block hardcoded in the skill renderer would solve this specific case, but it does not scale. The renderer should stay generic, and the skill source structure should own harness-specific operational guidance.

Additional context

Observed while using $planbridge-open /tmp/foo.md from Codex. The CLI logged that the annotation server was listening and that it was opening the annotation browser session, but the browser did not open automatically from the sandboxed command execution context.

Activity

  1. added
    enhancement
    on May 13, 2026
  2. added a commit that references this issue on May 14, 2026
    6cff1e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions