Repository navigation
Description
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
- Im bestehenden Chat ein regulär registriertes benanntes Profil mit dem genannten zusätzlichen Laufwerkswurzelgrant auswählen.
- Noch vor einer Befehlsausführung bricht das Laden der lokalen AGENTS.md-Anweisungen mit der obigen URI-Meldung ab.
- 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:
- Ursprünglicher Profilpfad und ausgewählte Pfadkonvention.
- Ergebnis von Normalisierung und etwaiger Eltern-/Vorfahrenbildung.
- Serialisierter und beim Executor empfangener Berechtigungspfad-URI.
- Erste ablehnende Funktion einschließlich interner Bedingung.
- 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
[-]Windows: Laufwerkswurzel in Berechtigungsprofil scheitert vor Ausführung an file:///C:[/-][+]Windows: Drive root in permission profile fails on file:///C: before execution[/+]github-actions commentedon Oct 16, 2026
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:
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
"C:/" = "read".Observed sequence of steps
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:
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:
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.
KohakuD commentedon Nov 15, 2026
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 withinvalid sandbox permission path: 'file:///E:' is invalid on 'windows'.E:\as a secondary folder.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.MirceaStefanescu commentedon Nov 18, 2026
Additional Windows desktop reproduction observed on 18 November 2026:
OpenAI.Codex 26.1111.2228.0; the native updater reported app version26.1111.21308, build27194, production channel, with no eligible update at the observation time.26.1116.1210.0. These are separate version identifiers; I am not assuming they must match.invalid sandbox permission path: 'file:///C:' is invalid on 'windows'PR #43848 documents persisted runtime workspace roots separately from permission-profile roots and explicit environment selections. It also mentions a
runtimeWorkspaceRootsoverride 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.