Skip to content

fix: address cd128e77 upstream sync follow-ups and test flakes - #501

Merged
shuv1337 merged 2 commits into
mainfrom
fix/sync-482-followups-484
Nov 25, 2026
Merged

shuv1337 merged 2 commits into
mainfrom
fix/sync-482-followups-484

Conversation

@shuv1337

Copy link
Copy Markdown
Owner

Closes #484.

Follow-up fixes from the #482 upstream sync (cd128e7774) plus the intermittent ENOTEMPTY checkpoint teardown flake seen in CI:

  • Watch admission during turn-end capture (apps/server/src/orchestration-v2/WatchAdmission.integration.test.ts): Added coverage between run completion and capture drain proving a plain requireIdle send is rejected with thread_busy while a queued send is admitted.
  • Pinned RFC links (docs/rfcs/watch-voice-control.md): Pinned upstream links updated in chore: sync with upstream pingdotgg/t3code cd128e7774 #482 to commit cd128e7774 and dropped the unsourced supersession claim.
  • SSH concurrent-launch test timeout (packages/ssh/src/tunnel.test.ts): Fixed the intermittent 5s timeout root cause in concurrent launches on one remote home record the server that owns it — the test fixture waited for a second server that the launch lock intentionally prevents and spent 10 real seconds polling for an absent runtime record; removed the impossible startup wait and used a fixture clock for the missing-record case (no timeout bump or retry).
  • UsageLimitFailover ENOTEMPTY teardown race (apps/server/src/orchestration-v2/UsageLimitFailover.integration.test.ts): Stopped the checkpoint worker before removing its temporary Git workspaces so background git work cannot race with rmdir .git/objects.
  • Previously covered / verified without source diff:
    • GitManager.test.ts createPullRequest reorder proof was already addressed by fix(server): pin pull_request_create push target and harden MCP PR fork safety #498.
    • Planted-bug verification recorded for apps/desktop/src/updates/DesktopUpdates.test.ts:
      • Same-channel floor: bypassing the minimum-version check failed (expected null, got "1.2.4").
      • Rollback: removing floor restoration on settings-write failure failed (expected "1.2.5", got null).

Verification

  • packages/ssh/src/tunnel.test.ts: 3 consecutive runs green (69 tests each).
  • apps/desktop/src/updates/DesktopUpdates.test.ts: 55 tests passed after reverting planted bugs.
  • check:changed passed format, lint, both Knip passes, GraphQL generation, typecheck across 5 packages, and 114 tests; agentContextBudget.json is unchanged.

Built with openai/gpt-6.2-sol-ultrafast (opencode_shuvcode).

Exercise Watch admission during turn-end capture, keep failover workspaces alive through worker shutdown, and remove wall-clock delays from the concurrent SSH launch fixture. Pin the Watch RFC references to the reviewed upstream revision.
Gate runtime record publication on a missed lookup and verified lock contention, and bound the lifetime of detached fixture servers.
@shuv1337
shuv1337 merged commit ceefd66 into main Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow-ups from the cd128e77 upstream sync review (#482)

1 participant