Skip to content

Windows: Drive root in permission profile fails on file:///C: before execution #54695

Open

Description

@Umoy

Windows: Laufwerkswurzel in Berechtigungsprofil scheitert vor Ausführung an file:///C:

Zusammenfassung

Bei Auswahl eines benannten Dateisystem-Berechtigungsprofils mit einem zusätzlichen C:-Laufwerkswurzel-Leserecht scheitert das Laden der lokalen Agentenanweisungen vor der Befehlsausführung. Der Fehler nennt einen Berechtigungspfad-URI ohne abschließenden Separator:

failed to load AGENTS.md instructions for environment `local`:
invalid sandbox permission path URI:
'file:///C:' is invalid on 'windows'

Der genaue installierte Erzeuger dieses URI ist noch unbekannt. Bitte die Profilpfad-/URI-Rundreise untersuchen; dies ist keine Aufforderung, die Windows-Pfadvalidierung oder Sandbox zu umgehen.

Umgebung und Belegart

  • Codex Desktop auf Windows, gemeldete App-Version 26.1013.31256, Build 20586, Kanal prod; am 16.10.2026 über das reguläre App-Werkzeug gelesen.
  • Exakter Backend-/Executor-Build und seine Gleichheit zu öffentlichem Quellcode: nicht nachgewiesen.
  • Ein benanntes eingeschränktes Profil war zuvor auswählbar. Das neue Profil erbte dessen bestehende Regeln; der zusätzliche positive Dateipfadgrant lautete ausschließlich "C:/" = "read".
  • Netzwerk- und Schreibgrenzen sollten unverändert bleiben; keine Vollzugriffsauswahl oder Backendumstellung.
  • Der oben wiedergegebene Fehler wurde vom Benutzer aus der Oberfläche mitgeteilt. Keine neue unabhängige Reproduktion dieses Fehlers wurde für diesen Bericht ausgeführt.

Beobachtete Schrittfolge

  1. Im bestehenden Chat ein regulär registriertes benanntes Profil mit dem genannten zusätzlichen Laufwerkswurzelgrant auswählen.
  2. Noch vor einer Befehlsausführung bricht das Laden der lokalen AGENTS.md-Anweisungen mit der obigen URI-Meldung ab.
  3. Der Benutzer wählt das vorherige eingeschränkte Profil wieder aus.

Das ist die beobachtete Schrittfolge, keine separat geprüfte Minimalreproduktion. Private Profilnamen, weitere Pfade und vollständige Konfigurationsinhalte sind bewusst nicht enthalten. Der einzelne Grant ist keine vollständige eigenständig getestete Reprokonfiguration.

Erwartet: Ein unterstützter absoluter Windows-Laufwerkswurzelgrant bleibt über Profilauflösung, URI-Transport und native Prüfung konsistent. Falls diese Konstellation nicht unterstützt wird, sollte eine eindeutige Profilvalidierung dies erklären. Die Sicherheitsprüfung muss erhalten bleiben.

Konkreter öffentlicher Untersuchungshinweis

Geprüfter Quellenstand: 0e67502123b4c6952b9fa5d672d2907fe4059f56. Dies ist ein Lesestand, kein behaupteter Einführungs- oder Fixcommit und keine Attestation der installierten Appbytes.

In tests.rs, Zeilen755–805 erwarten zwei Tests ausdrücklich die separatorlose Wurzelform:

Test Eingabe Erwartung
parent_stops_at_posix_drive_and_unc_roots file:///C:/Users Elternpfad file:///C:
ancestors_include_self_and_stop_at_native_path_roots file:///C:/workspace/src Letzter Vorfahr file:///C:

Diese Testkörper prüfen lexikalische Ergebnisse, nicht die anschließende native Windows-Konvertierung dieser Wurzel. Sie wurden für diesen Bericht statisch gelesen, nicht ausgeführt.

Die passende parent-/ancestors-Implementierung bearbeitet URI-Segmente; ancestors verwendet wiederholt parent. Dagegen erhält der separate Normalisierer bei der Konstruktion einer Windows-Laufwerkswurzel ausdrücklich den abschließenden Separator.

Der passende öffentliche Fehlerpräfix entsteht in validate_file_system_paths_for_current_host, das explizite Berechtigungspfade mit PathUri::to_abs_path validiert. Mehrere innere Ablehnungen verwenden denselben Fehlertyp; die konkrete innere Bedingung ist aus der Meldung allein nicht bestimmt.

Daraus ergibt sich eine gezielte Frage nach der Komposition von Rootkonstruktion, Elternbildung, Serialisierung und nativer Prüfung. Es ist NICHT belegt, dass parent()/ancestors() im installierten Profilladepfad den abgewiesenen URI erzeugen. Auch der Verweis auf AGENTS.md im Fehlertext beweist diese Aufrufkante nicht.

Verwandter offener Bericht, kein Duplikatnachweis

Issue #52473 berichtet dieselbe abgewiesene URI-Schreibweise bei Work-Inlinevisualisierungen, dort jedoch im Feld cwd. Hier nennt der Fehler ausdrücklich einen sandbox permission path. Der andere Bericht enthält separate Executor-Beobachtungen; sie wurden hier weder wiederholt noch als eigene Messergebnisse übernommen. Seine Quellenlinks verwenden zudem eine andere Revision.

Die Berichte sind konkrete Hinweise für eine gemeinsame Untersuchung von Windows-Laufwerkswurzeln. Eine gemeinsame Ursache, derselbe Erzeuger oder identische installierte Backendbytes sind nicht nachgewiesen.

Gewünschte Klärung durch Maintainer

Bitte für den betroffenen Desktop-/Backendstand die folgenden Übergänge zuordnen:

  1. Ursprünglicher Profilpfad und ausgewählte Pfadkonvention.
  2. Ergebnis von Normalisierung und etwaiger Eltern-/Vorfahrenbildung.
  3. Serialisierter und beim Executor empfangener Berechtigungspfad-URI.
  4. Erste ablehnende Funktion einschließlich interner Bedingung.
  5. Falls sich ein Vertragsfehler bestätigt: Regression über die vollständige Windows-Rundreise, nicht nur lexikalische Gleichheit; ungültige oder fremde Pfadformen müssen weiterhin gesperrt bleiben.

Grenzen und Datenschutz

Keine privaten Konfigurationsdumps, Benutzerpfade, Dokumente, Credentials, Umgebungsinhalte oder Rohlogs beigefügt. Kein Zugriff auf Netzfreigaben. Keine neuen Pfadvarianten, Startversuche oder produktiven Aktionen für diesen Bericht. Kein bestätigter Workaround und kein Ursachenfix behauptet.

Der aktuelle installierte Programmcode konnte unter den bestehenden Zugriffsgrenzen nicht vollständig geprüft werden. Öffentliche Test- und Quellenbefunde ersetzen diesen fehlenden Nachweis nicht.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    config
    on Oct 16, 2026
  2. changed the title [-]Windows: Laufwerkswurzel in Berechtigungsprofil scheitert vor Ausführung an file:///C:[/-] [+]Windows: Drive root in permission profile fails on file:///C: before execution[/+] on Oct 16, 2026
  3. github-actions commented on Oct 16, 2026

    @github-actions
    Contributor

    English translation:

    Windows: Drive root in permission profile fails on file:///C: before execution

    Summary

    When selecting a named filesystem permission profile with an additional read permission for the C: drive root, loading the local agent instructions fails before command execution. The error identifies a permission path URI without a trailing separator:

    failed to load AGENTS.md instructions for environment `local`:
    invalid sandbox permission path URI:
    'file:///C:' is invalid on 'windows'
    

    The exact installed component that generates this URI is still unknown. Please investigate the profile path/URI round trip; this is not a request to bypass Windows path validation or the sandbox.

    Environment and evidence type

    • Codex Desktop on Windows, reported app version 26.1013.31256, build 20586, prod channel; read through the standard app tool on October 16, 2026.
    • Exact backend/executor build and whether it matches public source code: not established.
    • A named restricted profile was previously selectable. The new profile inherited its existing rules; the only additional positive file path grant was "C:/" = "read".
    • Network and write restrictions were intended to remain unchanged; no full-access selection or backend switch.
    • The error reproduced above was reported by the user from the UI. No new independent reproduction of this error was performed for this report.

    Observed sequence of steps

    1. In the existing chat, select a normally registered named profile with the additional drive root grant described above.
    2. Before any command execution, loading the local AGENTS.md instructions fails with the URI message above.
    3. The user selects the previous restricted profile again.

    This is the observed sequence of steps, not a separately verified minimal reproduction. Private profile names, other paths, and complete configuration contents are intentionally omitted. The single grant is not a complete, independently tested reproduction configuration.

    Expected: A supported absolute Windows drive root grant remains consistent through profile resolution, URI transport, and native validation. If this configuration is unsupported, clear profile validation should explain that. The security check must remain in place.

    Specific lead for investigation in the public source

    Reviewed source revision: 0e67502123b4c6952b9fa5d672d2907fe4059f56. This is the revision reviewed, not a claimed introduction or fix commit, nor an attestation of the installed app binaries.

    In tests.rs, lines 755–805, two tests explicitly expect the root form without a separator:

    Test Input Expected result
    parent_stops_at_posix_drive_and_unc_roots file:///C:/Users Parent path file:///C:
    ancestors_include_self_and_stop_at_native_path_roots file:///C:/workspace/src Final ancestor file:///C:

    These test bodies check lexical results, not the subsequent native Windows conversion of this root. They were read statically for this report, not executed.

    The corresponding parent/ancestors implementation manipulates URI segments; ancestors repeatedly uses parent. By contrast, the separate normalizer explicitly preserves the trailing separator when constructing a Windows drive root.

    The matching public error prefix originates in validate_file_system_paths_for_current_host, which validates explicit permission paths using PathUri::to_abs_path. Several internal rejection paths use the same error type; the specific internal condition cannot be determined from the message alone.

    This raises a focused question about the composition of root construction, parent derivation, serialization, and native validation. It has NOT been established that parent()/ancestors() generate the rejected URI in the installed profile-loading path. The reference to AGENTS.md in the error text does not prove this call relationship either.

    Related open report, not proof of duplication

    Issue #52473 reports the same rejected URI spelling in Work inline visualizations, but in the cwd field. Here, the error explicitly identifies a sandbox permission path. The other report contains separate executor observations; they were neither repeated here nor adopted as this report's own measurements. Its source links also use a different revision.

    The reports provide concrete leads for a joint investigation of Windows drive roots. A shared cause, the same generating component, or identical installed backend binaries have not been established.

    Requested clarification from maintainers

    Please trace the following transitions for the affected Desktop/backend revision:

    1. Original profile path and selected path convention.
    2. Result of normalization and any parent/ancestor derivation.
    3. Serialized permission path URI and the URI received by the executor.
    4. First rejecting function, including its internal condition.
    5. If a contract violation is confirmed: regression coverage for the complete Windows round trip, not just lexical equality; invalid or foreign path forms must remain blocked.

    Limitations and privacy

    No private configuration dumps, user paths, documents, credentials, environment contents, or raw logs are attached. No access to network shares. No new path variants, launch attempts, or production actions were undertaken for this report. No confirmed workaround or root-cause fix is claimed.

    The currently installed program code could not be fully examined under the existing access restrictions. Public test and source findings do not replace this missing evidence.

  4. KohakuD commented on Nov 15, 2026

    @KohakuD

    Additional reproduction in Codex Desktop on native Windows: an existing local project chat has E:\ as an additional writable workspace root. Browser automation fails before creating a tab with invalid sandbox permission path: 'file:///E:' is invalid on 'windows'.

    1. Start a local chat in a project configured with a Windows drive root such as E:\ as a secondary folder.
    2. Remove the drive root in the app’s Edit project dialog.
    3. In the same chat, reset the browser runtime and retry. Both browser inventory (cua.getState()) and a direct integrated browser launch (cua.createBrowserTab("iab", ...)) reproduce the failure.

    Read-only inspection confirmed that the saved project folder list no longer included E:\, while the existing chat’s separately persisted writable-root list still included it. Restarting the browser runtime did not refresh that list. Expected: the Windows drive root round-trips as a valid absolute path, and a supported way exists to refresh or remove a stale folder grant for an existing chat.

  5. MirceaStefanescu commented on Nov 18, 2026

    @MirceaStefanescu

    Additional Windows desktop reproduction observed on 18 November 2026:

    • Desktop MSIX: OpenAI.Codex 26.1111.2228.0; the native updater reported app version 26.1111.21308, build 27194, production channel, with no eligible update at the observation time.
    • Managed PrimaryRuntime package: 26.1116.1210.0. These are separate version identifiers; I am not assuming they must match.
    • Native CUA initialization fails before JavaScript or browser-page access with:
      invalid sandbox permission path: 'file:///C:' is invalid on 'windows'
    • The current chat has Windows drive-root workspace grants. The literal malformed URI is absent from the inspected configuration file.
    • One native reset of this chat's CUA session followed by one initialization produced the same error. No further unchanged retries were made.
    • The main desktop package is already registered on a secondary Appx volume. A compatibility junction makes its installation path appear to be on C:. Moving the application is therefore not a demonstrated remedy for this failure.

    PR #43848 documents persisted runtime workspace roots separately from permission-profile roots and explicit environment selections. It also mentions a runtimeWorkspaceRoots override on resume, but I have not found an exposed Desktop operation that safely applies this to the affected existing chat.

    Is there a supported Desktop procedure or released fix that normalizes/reconciles these Windows drive-root paths for an existing chat while preserving its history and current sandbox restrictions? Please distinguish a runtime-workspace-root refresh from a permission-profile-root refresh if both are required.

    During this diagnostic stage, no internal runtime patch, raw session/database edit, alternate browser route, or reduction of sandbox protections has been attempted. This report intentionally excludes account details, credentials, session transcripts and private project files.

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

    appbugconfigsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions