diff --git a/FORK.md b/FORK.md index df00ac464b1d8..da75facefad48 100644 --- a/FORK.md +++ b/FORK.md @@ -181,6 +181,7 @@ These are direct edits to upstream-owned files that exist only because upstream - **A reconnecting environment can be retried at once on web and desktop** (register D37; Jackson's 2026-10-19 decision). `apps/web/src/components/ChatView.tsx` shows the unavailable banner's Reconnect button for every phase but `connecting`, where upstream hid it for `reconnecting` too. `apps/web/src/components/settings/ConnectionsSettings.tsx` adds a "Reconnect now" item to `SavedBackendListRow`'s menu while the environment is switched on and `reconnecting`, not `error`: a failed connection waits for a changed condition, so a retry would only resend what was refused. Both call upstream's `environmentCatalog.retryNow`, as mobile's `EnvironmentConnectionNotice` does; during an attempt it restarts that attempt, otherwise it skips the backoff wait. Watch signal: upstream offers a retry on web while reconnecting. Exit: remove both hunks and take upstream's. - **Threads finishing together play one completion sound** (case 82, register D38). `apps/web/src/threadNotifications.ts` carries upstream's `playingUntil` map, its check and its set in `playNotificationSound`, copied verbatim from pingdotgg/t3code#17540 (`c1f9d20263`, merged 2026-10-18, after the pin). Without it a burst of finishing threads stacks copies of a custom completion sound, which can last 30 seconds. The hunk is upstream's text exactly, so git takes upstream's commit without a conflict; keep it that way. Watch signal: `c1f9d20263` is in the advance's upstream range. Exit: confirm the merged hunk equals upstream's and delete this entry; case 82's lines in the same function stay. Upstream's `apps/web/src/threadNotifications.test.ts` arrives with it; the burst cases in `apps/web/src/j5/notifications/playback.test.ts` test the custom sound's slot and stay. - **Every patched package has an exact override.** `pnpm-workspace.yaml` ends its `overrides` with an exact pin for each `patchedDependencies` entry that lacked one, an early port of pingdotgg/t3code#23798 (`22840ab943`, merged 2026-10-22, after the pin). The desktop build installs its staged app without a lockfile, so a range such as the server's `node-pty: ^1.2.0-beta.15` resolved to node-pty's newer betas and the nightly failed with `ERR_PNPM_UNUSED_PATCH`. The versions are the pin's, not upstream's, and the lockfile's resolutions are unchanged. Watch signal: `22840ab943` is in the advance's upstream range. Exit: take upstream's `overrides` block and delete this entry, keeping a pin for any patch J5 alone carries. +- **Storage cleanup reads Git 2.56's broken-gitfile message.** `apps/server/src/storageCleanup.ts` treats "does not point to a valid repository" like "not a git repository" when it checks whether a worktree's repository or branch changed. Git 2.56 reports a worktree whose `.git` file points at a missing directory with the new message, so cleanup reported that worktree as failed instead of kept, and `storageCleanup.test.ts` failed on CI runners with Git 2.56 (#768). Upstream's file has the same check. Watch signal: upstream matches the Git 2.56 message. Exit: remove this hunk and take upstream's. Retired at the 2026-10-08 advance, when upstream's own fix landed or the maintainer ruled the patch out: the Codex generator steps and the protocol drift they absorbed (upstream regenerated its bindings), the migrated Codex replay transcripts (the fixtures are upstream's, unmodified; `scripts/j5/migrate-codex-fixtures.mjs` stays for the old recordings should upstream's tests need it), the SQLite boolean bindings (upstream's `booleanInt`), the remote pairing scopes (pingdotgg/t3code#9785 merged), committed Stop (register D5 and D23, removed by decision 10; its watch signal went with it), and the skip on upstream's V1 cutover test (`orchestration-v2/legacy/LegacyV1Cutover.integration.test.ts` equals upstream's and passes). @@ -794,6 +795,7 @@ explicitly marked. | `apps/server/src/provider/EventNdjsonLogger.ts` | N | 36 | | `apps/server/src/server.ts` | A | 5, 9, MCP idle connection patch, 53, 69, 70 | | `apps/server/src/serviceLauncher.ts` | R | H, 50 | +| `apps/server/src/storageCleanup.ts` | N | Git 2.56 gitfile patch | | `apps/server/src/telemetry/AnalyticsService.ts` | N | B, 63 | | `apps/server/src/testUtils/shardWeights.json` | N | 65 | | `apps/server/src/ws.ts` | A | 37, 42, 58, 78, Role library, Saved-agent mentions | diff --git a/apps/server/src/storageCleanup.ts b/apps/server/src/storageCleanup.ts index fbc9062181897..a87388cd6206c 100644 --- a/apps/server/src/storageCleanup.ts +++ b/apps/server/src/storageCleanup.ts @@ -473,7 +473,13 @@ const make = Effect.gen(function* () { ); if (result === null) return null; if (result.exitCode === 0 || result.exitCode === allowedExitCode) return result; - if (result.stderr.toLowerCase().includes("not a git repository")) return null; + const stderr = result.stderr.toLowerCase(); + // Git 2.56 reports a gitfile pointing at a missing directory this way. + if ( + stderr.includes("not a git repository") || + stderr.includes("does not point to a valid repository") + ) + return null; return yield* failure( result.stderr.trim().split(/\r?\n/)[0]?.slice(0, 1000) || "command failed", );