Skip to content

[macOS][26.818.41509] Chrome control fails trusted RPC path validation under managed permissions #40254

Open

Description

@liby

What version of the Codex App are you using (From “About Codex” dialog)?

Codex/ChatGPT Desktop 26.818.41509 (build 6962)

  • Bundled Browser plugin: 26.818.41509
  • Bundled Chrome plugin: 26.818.41509
  • Bundled Codex CLI: 0.149.0

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Darwin 25.5.0 arm64 arm

macOS 26.5.2 (build 25F84), Apple Silicon.

What issue are you seeing?

Chrome control cannot initialize under the managed development permission profile after removing only the explicit Browser cache read rule that was previously required as a workaround.

The active filesystem profile during the test was:

default_permissions = "development"

[permissions.development.filesystem]
":root" = "write"

[permissions.development.filesystem.":workspace_roots"]
".env" = "read"
".env.local" = "read"

This was the complete effective filesystem profile, not an excerpt: there was no project-level permission profile, inheritance, home-directory deny, or legacy sandbox selector. The source-managed profile and modifier that removes legacy sandbox selectors are pinned to immutable commit 8d546bd; the reproduction removed only the Browser-cache read entry shown there.

The generated configuration still included the user's Codex home directory in NODE_REPL_TRUSTED_CODE_PATHS, and NODE_REPL_TRUSTED_SERVICES.browser pointed to the installed bundled Browser service. Chrome initialization nevertheless stopped before browser discovery with:

Trusted RPC dependency must resolve within a configured trusted code path: file:///Users/<redacted>/.codex/plugins/cache/openai-bundled/browser/26.818.41509/scripts/browser-service.mjs

No page was opened, so the requested example.com title was not available.

What steps can reproduce the bug?

  1. Start with the managed development permission profile shown above.

  2. Remove only this explicit local workaround from the live configuration:

    "/Users/<redacted>/.codex/plugins/cache/openai-bundled/browser" = "read"
  3. Fully quit and restart Codex/ChatGPT Desktop.

  4. Create a new task.

  5. Confirm that the live filesystem permission table does not contain an explicit Browser cache read rule.

  6. Ask the bundled Chrome plugin to open https://example.com and return the page title.

  7. Observe that initialization fails with the trusted RPC path error above before Chrome discovery or navigation.

Fresh reproduction task ID: 01a02f73-b129-7183-b659-f44784b22b6f.

The test made one Chrome initialization attempt. It did not modify configuration, retry, or use another browser.

What is the expected behavior?

The bundled Chrome integration should initialize under the configured managed permission profile and open the requested page without requiring a user-added read rule for the bundled Browser service cache.

Additional information

This is a current macOS follow-up to #39136, whose primary report is Windows-scoped and is now closed. I previously documented the same macOS error and the controlled read-rule workaround in this comment.

Issue #39591 also reports a macOS Browser initialization failure, but its observed error is trusted Node process exited unexpectedly; this reproduction stops on the trusted RPC service-path validation error shown above.

After collecting the fresh-task result, the explicit Browser cache read rule was restored in the live configuration and the configuration passed strict parsing. No post-restore Browser or Chrome attempt is included in this report.

Activity

  1. added
    bug
    app
    sandbox
    on Aug 23, 2026
  2. carter-smalls commented on Aug 23, 2026

    @carter-smalls

    Looks like trusted rpc dependency must resolve within a configured trusted code path error.

    Use badgr-config-doctor to identifies missing or mis‑configured permission entries causing the trusted rpc error.

    That should help confirm node_repl_trusted_code_paths missing browser cache read permission.

    Run it now on Badgr →

  3. xMythicx commented on Aug 31, 2026

    @xMythicx

    @liby

    Ok so I believe this issue is perhaps related to project level config profiles when the global .codex/config.toml specifically sets sandbox_mode = "workspace-write". Removing this setting and creating a new task with the permission profile set to "ask for approval' seems to have fixed the RPC error for me, This raises more questions as I am using custom project level configuration profiles. Perhaps I need to move those rules up to global and just use the global config for now. As Open ai docs do state the project level permission are still in beta. Thought to share if others are hitting this wall too. It has impacted my productivity since the Aug 20 release , and thought this detail may help others get passed the blocker.

  4. xMythicx commented on Aug 31, 2026

    @xMythicx

    @liby following up , What I have come to find through troubleshooting this RPC error is that it has to do with your permission profile hierarchy and boundaries. Set in your global config and in project-level config. Here is the thing that helped me get past this blocker . If either profile specifically has a setting for "/your-home-dir" = deny , then this supersedes all later configured settings for attempts to access it. Even if you later have a custom subdirectory read permission . Example: "/your-home-dir/subpath" = "read" . That later setting seems to be discarded and the earlier deny is enforced. Yes, it seems odd, so Codex task needs access to your home directory from many processes it runs. How to give it controlled access without allowing it access to personal data? For me, I created a custom profile that extends :workspace, named it :safe-workspace, then white-listed all the custom paths in the home folder that I did not want the threads to access . Then my project-level permission profiles extend that safe workspace. Here is an example from my global ~/.code/config . This lets Codex access its needed directories inside the home folder while securing my personal directories. I have not been successful with any other configuration to restore Chrome or Browser. This also restored an issue I was having when sending messages from mobile and my permission profile was being downgraded. Hope this helps :), this took me weeks to sort, so hoping it’s helpful to others, the down side to this is you must explicitly list every private directory. But I have not found any other way .

    Global config.toml
    ~/your-home-dir/.codex/config.toml
    
    default_permissions = "safe-workspace"
    
    [permissions.safe-workspace]
    description = "Workspace access with selected sensitive personal paths denied."
    extends = ":workspace"
    
    [permissions.safe-workspace.filesystem]
    # Personal folders that are not current project locations
    "~/Desktop" = "deny"
    "~/Downloads" = "deny"
    "~/Movies" = "deny"
    "~/Music" = "deny"
    "~/Pictures" = "deny"
    
    # Sensitive macOS application data
    "~/Library/Accounts" = "deny"
    "~/Library/AddressBook" = "deny"
    "~/Library/Calendars" = "deny"
    "~/Library/Mail" = "deny"
    "~/Library/Messages" = "deny"
    "~/Library/Mobile Documents" = "deny"
    "~/Library/Safari" = "deny"
    
    # Codex authentication material
    "~/.codex/auth.json" = "deny"
    

    Then my project level config , extends this profile

    model = "gpt-5.6-sol"
    model_reasoning_effort = "medium"
    approval_policy = "on-request"
    approvals_reviewer = "user"
    
    [permissions.custom-profile]
    description = "Coordinate registered repositories while sensitive personal paths remain denied."
    extends = "safe-workspace"
    
    [permissions.custom-profile.filesystem]
    Redacted system file paths
    
    [permissions.custom-profile.workspace_roots]
    "path-to-project" = true
    
    [permissions.custom-profile.network]
    enabled = true
    
    [permissions.custom-profile.network.domains]
    "github.com" = "allow"
    "api.github.com" = "allow"
    "objects.githubusercontent.com" = "allow"
    "raw.githubusercontent.com" = "allow"
    "codeload.github.com" = "allow"
    "chatgpt.com" = "allow"
    
    [agents]
    max_concurrent_threads_per_session = 5
    
  5. liby commented on Sep 1, 2026

    @liby
    Author

    Thanks — this looks like a separate trigger for the same RPC error. The standalone development profile used here had no home-level deny or inheritance; the only test change was removing the Browser-cache read entry. The modifier also removed the legacy sandbox selectors, and there was no project-level permission profile. Extending :workspace gives the Browser cache read-only coverage through :root = read, so that result can be explained independently of the parent/child deny behavior.

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

    appbrowserbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions