Skip to content

Browser tool still denies access due to saved permission settings after the site is allowed in the built-in browser #54807

Open

Description

@sunlianqiang

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

26.1013.31256

What subscription do you have?

pro x5

What platform is your computer?

Darwin 27.0.0 arm64 arm

What issue are you seeing?

问题描述

Codex 内置浏览器可以正常打开目标站点,用户已允许该站点,但智能体通过浏览器工具读取同一标签页时,仍被权限门禁拒绝。

完全退出并重新打开 Codex 后,问题依旧。

环境

  • 操作系统:macOS
  • Codex 版本:待补充
  • 浏览器:Codex 内置浏览器(IAB)
  • 目标站点:本地开发 HTTPS 站点,使用自定义域名和端口 8447
  • 示例地址:local.example.test:8447/workList/branch/995?env=dev

复现步骤

  1. 在 Codex 内置浏览器中打开上述地址。
  2. 完成登录,确认业务页面正常展示。
  3. 在内置浏览器中允许该站点供智能体访问。
  4. 请求智能体读取当前标签页。
  5. 工具返回权限拒绝。
  6. 完全退出并重新打开 Codex,再次请求读取同一标签页,仍然被拒绝。

实际结果

用户能够浏览页面,但智能体无法读取任何页面内容。

触发调用:

await cua.getTab(
  { url: 'https://local.example.test:8447/workList/branch/995?env=dev' },
  { browser: 'iab' }
);

工具返回:

Browser Use rejected this action due to browser security policy.
Reason: A saved user permission setting blocks this action.
Browser use could not acquire authority to observe page content.
The origin approval gate did not grant access for
https://z-local.ali-dev.xlbsoft.com:8447.
A saved permission or managed policy denies access.

多次明确授权重试,以及完整退出、重新打开 Codex,均得到相同结果。

预期结果

用户允许该站点后,智能体能够读取对应标签页。

如果存在覆盖用户授权的受管策略,界面应明确显示:

  • 当前生效的拒绝规则;
  • 规则来源;
  • 用户能否修改以及如何处理。

已尝试

  • 确认内置浏览器能够正常打开业务页面。
  • 允许该站点。
  • 明确授权智能体重新尝试。
  • 完全退出并重新打开 Codex。
  • 重试读取现有标签页。

未通过其他浏览器、底层接口或修改权限文件绕过门禁。

影响

无法继续执行已登录业务页面的自动化验收,包括页面交互、核心业务流程和浏览器证据采集。

希望协助确认

  1. 站点授权界面与浏览器工具侧的权限状态是否同步?
  2. 保存的拒绝记录是否可能在重新授权后继续生效?
  3. 自定义 HTTPS 域名和非标准端口是否涉及权限匹配问题?
  4. 能否区分“保存的用户拒绝”和“受管策略拒绝”,提供更具体的诊断信息?

附件

  • 内置浏览器正常展示业务页面的截图。
  • 完整错误信息,见上文。

What steps can reproduce the bug?

Feedback ID: 01a1477c-ae55-7ef3-bfc6-9586881b27a7

What is the expected behavior?

用户允许该站点后,智能体能够读取对应标签页。

如果存在覆盖用户授权的受管策略,界面应明确显示:

  • 当前生效的拒绝规则;
  • 规则来源;
  • 用户能否修改以及如何处理。

Additional information

No response

Activity

  1. added
    app
    on Oct 17, 2026
  2. added
    bug
    on Oct 17, 2026
  3. changed the title [-]内置浏览器允许站点后,浏览器工具仍因保存的权限设置拒绝访问[/-] [+]Browser tool still denies access due to saved permission settings after the site is allowed in the built-in browser[/+] on Oct 17, 2026
  4. github-actions commented on Oct 17, 2026

    @github-actions
    Contributor

    English translation:

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

    26.1013.31256

    What subscription do you have?

    pro x5

    What platform is your computer?

    Darwin 27.0.0 arm64 arm

    What issue are you seeing?

    Problem description

    The Codex built-in browser can open the target site normally, and the user has allowed the site, but when the agent reads the same tab through the browser tool, it is still denied by the permission gate.

    The issue persists after fully quitting and reopening Codex.

    Environment

    Steps to reproduce

    1. Open the URL above in the Codex built-in browser.
    2. Log in and confirm that the application page displays normally.
    3. Allow the agent to access the site in the built-in browser.
    4. Ask the agent to read the current tab.
    5. The tool returns a permission denial.
    6. Fully quit and reopen Codex, then request that the same tab be read again. Access is still denied.

    Actual result

    The user can browse the page, but the agent cannot read any page content.

    Triggering call:

    await cua.getTab(
      { url: 'https://z-local.ali-dev.xlbsoft.com:8447/workList/branch/995?env=dev' },
      { browser: 'iab' }
    );
    

    Tool response:

    Browser Use rejected this action due to browser security policy.
    Reason: A saved user permission setting blocks this action.
    Browser use could not acquire authority to observe page content.
    The origin approval gate did not grant access for
    https://z-local.ali-dev.xlbsoft.com:8447.
    A saved permission or managed policy denies access.

    Repeated retries with explicit authorization, as well as fully quitting and reopening Codex, all produce the same result.

    Expected result

    After the user allows the site, the agent should be able to read the corresponding tab.

    If a managed policy overrides the user's authorization, the interface should clearly display:

    • The denial rule currently in effect;
    • The source of the rule;
    • Whether the user can change it and how to address it.

    Already tried

    • Confirmed that the built-in browser can open the application page normally.
    • Allowed the site.
    • Explicitly authorized the agent to retry.
    • Fully quit and reopened Codex.
    • Retried reading the existing tab.

    No attempt was made to bypass the gate using other browsers, lower-level interfaces, or changes to permission files.

    Impact

    Unable to continue automated acceptance testing of the logged-in application page, including page interactions, core business workflows, and browser evidence collection.

    Questions to help investigate

    1. Are the permission states in the site authorization interface and the browser tool synchronized?
    2. Could a saved denial record remain in effect after access is authorized again?
    3. Could a custom HTTPS domain and a nonstandard port cause permission-matching issues?
    4. Can “saved user denial” and “managed policy denial” be distinguished to provide more specific diagnostic information?

    Attachments

    • A screenshot of the built-in browser displaying the application page normally.
    • The complete error message, shown above.

    What steps can reproduce the bug?

    Feedback ID: 01a1477c-ae55-7ef3-bfc6-9586881b27a7

    What is the expected behavior?

    After the user allows the site, the agent should be able to read the corresponding tab.

    If a managed policy overrides the user's authorization, the interface should clearly display:

    • The denial rule currently in effect;
    • The source of the rule;
    • Whether the user can change it and how to address it.

    Additional information

    No response

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

    appbrowserbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions