Skip to content

[Windows Work] Background Outlook COM access returns E_ACCESSDENIED; request supported integration and diagnostics #56156

Open

Description

@joarocman-jpg

Environment

Observed on 22 October 2026.

  • Windows 11 Professional, build 10.0.26300, x64 (from the local doctor report).
  • Installed desktop package: OpenAI.Codex 26.1016.8120.0.
  • Bundled CLI: 0.163.0-alpha.11.1.
  • Bundled Windows Computer Use skill: 26.1016.61520; @oai/sky: 0.7.12.
  • Classic desktop Outlook is running. A later successful probe from normal interactive PowerShell returned Outlook.Version = 16.0.0.19725.

Observed behavior

The user needs background access to the existing desktop Outlook session while continuing to use the mouse and keyboard.

Read-only connection probes from the Windows execution context fail:

  1. In Windows PowerShell 5.1:
    [Runtime.InteropServices.Marshal]::GetActiveObject('Outlook.Application')
    returns 0x800401E3 (MK_E_UNAVAILABLE).

  2. In the task's PowerShell:
    New-Object -ComObject Outlook.Application
    fails to obtain the Outlook.Application COM class factory with 0x80070005 (E_ACCESSDENIED).

The command process has Low mandatory integrity (S-1-16-4096); the Administrators group is deny-only. Its visible process inventory contains only the isolated shell and console host. These observations describe the execution context; they do not establish which specific access check rejects the COM call.

The owner subsequently ran the same New-Object COM connection probe from normal interactive Windows PowerShell outside the task. It succeeded and returned OK: Outlook 16.0.0.19725. The result was independently read from the saved diagnostic output as well as the owner's screenshot. This establishes a working COM activation/version query in the interactive context and a failing activation in the restricted task context; it does not identify the exact denying access check or verify all mailbox operations. No registry/COM/security permission repair is claimed.

Separate launch failure that recovered

Initially, the supported @oai/sky import succeeded, but sky.list_apps() returned:

failed to launch codex app-server: program not found

The configured per-user bundled codex.exe existed and ran by its absolute path, but its directory was absent from the saved User PATH. After adding that actual CLI directory to User PATH and fully terminating/reopening the desktop app:

  • the task can resolve codex by name;
  • sky.list_apps() succeeds and detects classic Outlook;
  • the direct background COM probes above still fail.

This is a before/after observation for this installation, not proof that all occurrences have the same cause. Related launch report: #51867.

A subsequent UI inspection was interrupted by the user's physical Escape key. UI screenshot/input functionality is therefore not presented as fully verified.

Requested guidance / diagnostics

Please clarify whether attaching to the existing Outlook COM session is supported from this restricted Windows execution route, and provide a supported background integration or recovery path if available. The user specifically needs an approach that leaves desktop input free.

If this isolation boundary intentionally prevents COM access, please make that limitation and the supported alternative actionable in the product. If access is expected to work, diagnostics identifying the failed COM activation/binding boundary would help.

The exact cause, any relationship between the launch and COM failures, and whether this is a product regression remain unconfirmed. The local doctor report's installation, network, and database integrity checks pass outside the task.

Submitted with the account owner's authorization and AI assistance. This report contains technical versions and minimal probe results only.

Controlled comparison completed

Probe Normal interactive Windows PowerShell Restricted task PowerShell
New-Object -ComObject Outlook.Application, then .Version Succeeds: 16.0.0.19725 Activation fails: 0x80070005 E_ACCESSDENIED

Please focus follow-up guidance on the supported execution/authorization boundary for background COM, rather than assuming an Outlook installation failure. No attempt was made to evade the task isolation or create an out-of-sandbox execution bridge.

Historical working-route comparison verified from local session records

Read-only inspection of the owner's local session records from 20 October 2026 found successful direct Outlook COM connection/account enumeration using New-Object -ComObject Outlook.Application, with command exit code 0. These were local desktop sessions (originator codex_work_desktop) using CLI 0.162.0-alpha.17.2. Their recorded permission state was:

  • sandbox_policy.type = danger-full-access
  • permission_profile.type = disabled
  • approval_policy = never

By contrast, the currently affected Work conversation receives a managed restricted workspace-write execution profile and cannot request sandbox escalation. Its COM activation fails with E_ACCESSDENIED as described above.

The app's saved local mode is still full-access (agent-mode-by-host-id.local and permission-selection-by-host-id:local.agentMode). This saved local default must not be confused with the affected conversation's effective permissions. Startup logs also show other local threads resuming with full-access profiles. This is not proof that the current conversation is incorrectly configured, or that it should override any enforced policy.

Please clarify the supported way to select the appropriate local execution route and inspect the effective permissions for this conversation type. The exact reason for the difference in effective policy remains unknown. No local settings, enforced policies, or execution boundaries were bypassed or modified during this comparison. No private session identifiers, paths, mailbox contents, or raw records are attached.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 22, 2026
  2. dkoepg commented on Oct 27, 2026

    @dkoepg

    Additional Windows Outlook Classic case observed on 27 October 2026:

    • The Outlook Classic compose window was visibly open, with the requested recipients, subject, and replacement message ready.
    • During earlier attempts in this session, Computer Use repeatedly failed to capture the visible Outlook window with FrameArrived timed out: timed out waiting on channel. A screenshot supplied by the user showed Outlook still open; the timeout did not indicate Outlook had been closed.
    • Accessibility/focus observations did not reliably match the visible UI: focus continued to be reported on Outlook's search box while the compose window was visible. Attempts to act on the body failed with coordinate input geometry is unavailable or a focus error.
    • In the current execution context, native Windows app controls were unavailable; the app inventory exposed browser surfaces only. Codex therefore could not click Send or verify the result, even after the user explicitly authorized sending.

    Impact: The user could not complete a routine email in Outlook Classic through Codex and had to be asked to send it manually.

    Please clarify the supported Windows execution path for Outlook Classic and investigate the repeated capture timeouts and mismatch between visible Outlook UI and available focus/input state. A supported Outlook connector or clear setup path would also address the inability to operate the compose window. These symptoms may be related to existing Computer Use capture reports, but a shared root cause has not been established. No private message text, recipient addresses, or mailbox contents are included.

  3. joarocman-jpg commented on Oct 27, 2026

    @joarocman-jpg
    Author
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

    appbugcomputer-usesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions