Skip to content

Saved root strategy for an unbound scheduled task goes stale if the folder becomes a repository #69

Closed

Description

@chrisohearn

An unbound scheduled task's workspace strategy is computed once, at scheduling time (scheduledTaskWorkspaceStrategy), and recomputed on update only when the thread binding changes. After #40, a task in a folder that isn't a repository is saved as { type: "root" }. If someone later runs git init or clones into that folder, the task keeps running in the folder itself, which is now a shared checkout. That breaks the intent that unbound tasks never run in a shared checkout.

Suggested fix: re-check at launch, or treat a saved root on an unbound task as "check again" and fail closed if the folder has become a repository. Found in the substitute review of #40.

🤖 Generated with Claude Code

Activity

  1. chrisohearn commented on Nov 13, 2026

    @chrisohearn
    OwnerAuthor

    Fixed by #71 (merged 2026-11-12T22:22Z, commits 2fb8a65 and c720472). Launching an unbound task whose saved root workspace has since become a repository now fails with a clear error that names the .git it found, and an MCP update re-derives the workspace. The fix shipped in v0.1.10-preview.20261112.9 and is in the build now serving (0.1.10-preview.20261113.1). The same PR fixed the misleading last-run status from #67: runs record their real outcome, and MCP reports started while a run is in progress.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions