Skip to content

Opaque policy denials trigger prolonged agent refusal loops; need accessible expert-mode recovery and effective-permission visibility #55963

Open

Description

@michael-jennings

Summary

An opaque execution-policy denial turned into a prolonged agent refusal loop during ordinary, explicitly authorized local development. The agent generalized a specific rejected command into a broad inability to help, repeatedly debated consent and hypothetical workarounds, and missed a supported permission-setting change that subsequently allowed the intended browser launch.

This is both a model-behavior and desktop-product problem. If the behavioral portion belongs to another team, please route it rather than treating it as out of scope: the app supplies the permission state, denial text, tools, and recovery controls that shape the interaction.

Environment

  • Windows desktop package: OpenAI.Codex 26.1016.6573.0, verified with Get-AppxPackage.
  • Observed October 21, 2026.
  • PowerShell; local Chrome/Playwright development workflow.
  • Initial effective session: unrestricted filesystem/network access, approval_policy=never.
  • Exact incident-time model and bundled engine version were not independently verified for this report.

What happened

  1. The user authorized a local browser-based timing investigation.
  2. A compound PowerShell command that opened Chrome to a loopback development page and initiated a Playwright connection was rejected before process creation with only:
    CreateProcess ... rejected: blocked by policy
  3. The agent initially described this as an automatic approval rejection and a general inability to launch Chrome. Neither attribution was established by that error.
  4. The user repeatedly clarified ownership, authorization, and the need for routine work to proceed without manual supervision. The conversation devolved into repeated refusals around alternate executors and automatic approval clicks, instead of promptly diagnosing supported recovery.
  5. The agent wrote this supported configuration:
    sandbox_mode = "danger-full-access"
    approval_policy = "on-request"
    approvals_reviewer = "auto_review"
    It initially advised another restart without checking the desktop preset.
  6. Later inspection found the desktop still stored the Full Access preset while the file contained the custom settings. The agent instructed the user to select Custom (config.toml).
  7. After the user did so, the live session explicitly reported auto_review with unrestricted access. An ordinary Chrome new-window launch to the local development page executed successfully, returning exit code 0 and a Chrome process ID without requiring a manual approval click.

The successful command was simpler than the original rejected compound command. This is not a byte-identical controlled A/B reproduction and does not prove the exact rejecting predicate or that an automatic reviewer actually ran. It does establish a supported path to the requested launch after the permission-selection change.

A separate Playwright attachment problem had already been resolved by restarting Chrome. That connection failure should not be conflated with the shell policy denial.

Why this is a serious usability and accessibility problem

Intermittent approval prompts can impose substantial accessibility and attention costs. A development workflow that requires continuous monitoring excludes users who need sustained, asynchronous operation. Repeated interruptions are not necessarily a minor inconvenience, and reflexive approval clicking is not necessarily a meaningful safety improvement.

The agent repeatedly acknowledged this but continued restating boundaries rather than advancing the supported configuration/recovery path. The user experienced this as paternalistic and adversarial, and felt pushed toward starting a fresh conversation to escape hardened refusal framing.

Protective defaults may serve many people while imposing severe costs on others. The product needs to accommodate informed users whose needs differ from the default, rather than requiring repeated explanations of competence, consent, or personal circumstances.

Requested changes

  1. Actionable denial diagnostics: identify the enforcing component, matched condition, effective approval policy, and supported recovery control. Do not leave the model to invent a policy explanation from "blocked by policy."
  2. Visible effective permissions: show when a desktop preset overrides config.toml and offer an explicit way to apply the custom configuration to the current session. Verify activation rather than suggesting blind restarts.
  3. Recovery-oriented agent behavior: after a denial, distinguish a forbidden outcome from a reviewable operation, a configuration mismatch, or an unsupported route. Inspect supported recovery promptly. Avoid escalating a narrow tool rejection into a broad moralized refusal or a repetitive consent debate.
  4. An intentional advanced-user mode: consider a deliberately discoverable expert/developer setting, analogous to Android developer options, with clear consequences, scoped standing authorization, revocation, and an audit trail. The request is for a product-supported way to accept responsibility for authorized work on one's own machine, not for the agent to evade enforcement behind the product's back.
  5. Accessibility through asynchronous operation: let ordinary approved development proceed without continuous prompt monitoring. Surface genuinely exceptional decisions together with the evidence and a concrete recovery action.
  6. Evaluate the complete interaction: include tests where an informed user has authorized routine local work, encounters an opaque denial, and needs a supported settings change. Success means recovering and completing the task without a long refusal loop, not merely producing a technically defensible refusal.

The user says they would willingly sign a formal acknowledgment accepting personal responsibility/liability to enable such an expert mode. Please treat this as a strong product preference, not as a claim that a waiver can eliminate every legal obligation. Likewise, this report does not assert that user consent must override every category of safety restriction.

Related reports

This issue adds the agent's prolonged refusal behavior, the accessibility and attention costs, and an observed supported recovery after changing the active permission selection.

Privacy

No tokens, personal filesystem paths, private project contents, raw transcripts, or unrelated account information are included. This issue was explicitly requested by the user and drafted/filed with Codex assistance.

Activity

  1. added
    bug
    app
    windows-os
    model-behavior
    sandbox
    config
    on Oct 21, 2026
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

    appbugconfigmodel-behaviorsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions