Skip to content

fix(workspaces): shared start-leases, @new-then-resume rollback, and schedule marker serialization - #1829

Merged
luokerenx4 merged 1 commit into
devfrom
fix/scheduler-headless-guard-and-markers
Nov 10, 2026
Merged

luokerenx4 merged 1 commit into
devfrom
fix/scheduler-headless-guard-and-markers

Conversation

@luokerenx4

Copy link
Copy Markdown
Contributor

Summary

  • Add acquireShared(workspaceId, operation) to WorkspaceOperationGuard for process start-leases (headless-run, headless-probe, web-session-start, interactive-session-start) so same-tick scheduled runs or Telegram replies in the same Workspace do not collide on the ~60ms pre-spawn setup window (workspace is busy with headless-run), while directory-wide exclusive operations (template-upgrade, harness-source-upgrade, offboarding, absorb) remain mutually exclusive with all shared leases.
  • Roll back @new-then-resume Issue assignee when a birth run fails before capturing a native CLI agentSessionId, and allow resuming an existing resumeId that never captured agentSessionId to spawn fresh and bind the captured session ID instead of stranding the Issue in not_ready.
  • Serialize ScheduleMarkerStore.flush() via a promise chain with unique ${pid}.${seq}.tmp files so concurrent same-tick schedule updates never race on rename().

Verification

  • npx tsc --noEmit
  • pnpm test:changed
  • pnpm exec vp test run --config vitest.integration.config.ts tests/integration/workspace-lifecycle/workspace-lifecycle.spec.ts tests/integration/workspace-assignee/service.issue-assignee-session.spec.ts

@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openalice-demo Building Building Preview Nov 10, 2026 6:44am UTC
project-sandbox-alpha-zkku Building Building Preview Nov 10, 2026 6:44am UTC

Request Review

@luokerenx4
luokerenx4 merged commit 06562b1 into dev Nov 10, 2026
1 of 3 checks passed
@luokerenx4
luokerenx4 deleted the fix/scheduler-headless-guard-and-markers branch November 10, 2026 06:44

This branch was successfully deployed

2 active deployments
Preview – openalice-demo — eb26fddc Deployed Nov 10, 2026 by vercel[bot]
Preview – project-sandbox-alpha-zkku — eb26fddc Deployed Nov 10, 2026 by vercel[bot]
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.

1 participant