Repository navigation
fix(server): storage cleanup no longer sweeps at launch - #672
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Every server start ran a full storage cleanup sweep immediately, including dependency and generated-build cleanup with their worktree walks. That competes with launch-time Git work, and each relaunch restarts the full sweep from scratch. Automatic sweeps now start one interval after launch and repeat hourly as before. Settings changes and thread deletions still request sweeps directly. Carry-Group: incubator Carry-Observation: The full launch-time sweep belongs to the incubator's dependency and build cleanup; upstream's launch sweep covers worktree removal only. Co-Authored-By: Claude <[email protected]>
runGitCommand spans carried no attributes, so traces could not say which caller or Git command a spike came from. Record the caller's operation name and the Git subcommand. Full arguments stay out because they can carry remote URLs or configuration values. Carry-Group: incubator Carry-Observation: Diagnostics for cleanup Git load; separable, but no other carry group owns tracing. Co-Authored-By: Claude <[email protected]>
Treat --config-env as an option that takes a value, and record an argument as the subcommand only when it is shaped like one, so option values never reach trace attributes. The launch-delay test now reads the production default instead of injecting one hour. Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
The worker lifecycle cases publish bursts while the first automatic sweep inventories, so they provide a zero first-sweep delay like the other cleanup fixtures. Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
|
@codex review |
033da52 to
771ebe3
Compare
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Every server start ran a full storage cleanup sweep immediately: worktree removal plus dependency and generated-build cleanup and the saved-workspace passes. That competes with launch-time Git work, and each relaunch restarts the full sweep from scratch. In one incident, three relaunches in about a minute each started a fresh full sweep alongside the launch Git burst. Traces also couldn't say which caller or Git command a
runGitCommandspan came from.Fix
FirstAutomaticSweepDelayreference. The test fixture sets it to zero so the existing sweep tests keep starting on activation.runGitCommandspans recordgit.operation(the caller's operation name) andgit.subcommand. Full arguments are never recorded, nor is anything not shaped like a subcommand, because they can carry remote URLs or-c/--config-envvalues.Decisions
node_modulesand worktrees for open-file evidence, is out of scope here and handled in a separate PR.Proof
storageCleanup.test.ts, "automatically removes an eligible archived thread checkout an hour after launch": with the production default it checks that at 59 minutes there is no report, no worktree inventory and the worktree is still present, and at 60 minutes it expects the removal. It fails with the delay removed or with the default set to zero, and passes with the change.storageCleanup.test.tsandGitVcsDriverCore.test.tspass (596 tests).GeneratedDependencies.test.tspasses (162 tests); its worker-burst cases now start the first sweep on activation, because they test bursts during that sweep.vp run check:changed origin/lastcode/mainpasses (format, lint, typecheck, changed tests). Knip's exports pass failed on the earlier base because ofLegacyFeaturesSection; feat(web): drop the legacy sidebar mode, matching upstream #671 removed it, and this PR is rebased onto that.Local review: 2 rounds with gpt-6.1-terra (xhigh), approved.
🤖 Generated with Claude Code (Claude Opus 5.5 in T3 Code)