codex icon indicating copy to clipboard operation
codex copied to clipboard

[macOS Desktop] Worktree shell setup fails when fs/getMetadata is called without environmentId

Open FoxsterDev opened this issue 1 week ago • 3 comments

Actual behavior

In a two-day local desktop audit, the host app-server manager logged 10 Failed to apply worktree shell environment config warnings with fs/getMetadata requires environmentId. First seen Nov 18 19:45 UTC; last Nov 19 23:50 UTC. The thread configuration layer also recorded dependency-feature check failures in the same window. I do not know whether each attempt affected a command or a specific workspace configuration.

Expected behavior

When applying the shell environment for a local worktree, pass the selected executor environment ID to environment-scoped metadata calls. If the environment is not yet known, defer setup or show a specific recoverable diagnostic rather than proceeding with unverified shell configuration.

Scope

Installed macOS desktop at review was 26.1111.71704 (29030), macOS 27.2.1 arm64. The logged period spans an update. No independent clean reproduction or claim that this causes Git/DNS or Simulator failures. Only sanitized method/error strings and counts are included.

FoxsterDev avatar Nov 20 '26 00:11 FoxsterDev

Follow-up on desktop 26.1117.31558 (29513), macOS 27.2.1 arm64, after the primary runtime 26.1119.11507 passed validation (16:04 UTC, Nov 20). The post-launch desktop process still logged seven Failed to apply worktree shell environment config warnings with the exact fs/getMetadata requires environmentId response, from 18:15:31 to 23:40:54 UTC. This is a newer-build recurrence of the same call-contract failure, not a new issue. No new commands were run in those worktrees for this check, and the log does not show that seven user actions failed.

FoxsterDev avatar Nov 20 '26 23:11 FoxsterDev

The same worktree shell configuration failure is still present on Desktop 26.1117.41037 (29803), macOS 27.2.1 arm64, after the November 21 relaunch at about 20:58 UTC. In the retained post-launch logs I counted six Failed to apply worktree shell environment config warnings with fs/getMetadata requires environmentId, from 21:31:30 to 23:58:17 UTC. This is a read-only observation from normal use. It does not establish that any specific worktree operation or task failed.

FoxsterDev avatar Nov 21 '26 23:11 FoxsterDev

The same worktree shell setup error recurred on ChatGPT/Codex desktop 26.1120.41243 (build 30607), on Apple Silicon macOS 27.2.1 (26B131). During normal use on November 24, 2026, post-launch desktop logs show 10 Failed to apply worktree shell environment config warnings with fs/getMetadata requires environmentId, from 21:29:45 through 23:19:21 UTC. These are warning entries, not independent reproductions or known failed worktrees. No worktree operation was initiated for this read-only check, and the warnings do not establish that Git or a specific command subsequently failed.

FoxsterDev avatar Nov 25 '26 00:11 FoxsterDev