Skip to content

fix: prevent todo list mutations while a runner attempt is active#102

Merged
charlesrhoward merged 1 commit intomainfrom
codex/fix-81-lock-todo-edits-while-running
Feb 16, 2026
Merged

fix: prevent todo list mutations while a runner attempt is active#102
charlesrhoward merged 1 commit intomainfrom
codex/fix-81-lock-todo-edits-while-running

Conversation

@charlesrhoward
Copy link
Copy Markdown
Contributor

@charlesrhoward charlesrhoward commented Feb 16, 2026

Summary

  • reject todo item list edits when a job currently has an in-flight runner process
  • preserve stable in-flight todo attribution by forcing pause-before-mutate semantics
  • add smoke regression for edit-while-running behavior via todoRunner IPC

Validation

  • pnpm run lint:desktop
  • pnpm run typecheck
  • pnpm exec playwright test tests/smoke/desktop.smoke.spec.ts -c playwright.smoke.config.ts --workers=1

Closes #81


Note

Low Risk
Small, localized guard in upsertJob plus a smoke test; behavior change is limited to rejecting edits during an active run.

Overview
Prevents mutating a job’s todo list while its runner process is active, throwing a clear error to enforce pause-before-edit and keep in-flight todo attribution stable.

Adds a Playwright smoke regression that exercises the todoRunner IPC flow: start a job, wait until isRunning, attempt to upsert with changed todoItems, and assert the update is rejected.

Written by Cursor Bugbot for commit de6b327. This will update automatically on new commits. Configure here.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 16, 2026

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

Project Deployment Actions Updated (UTC)
agent-space-web Ready Ready Preview, Comment Feb 16, 2026 4:05am

Request Review

@charlesrhoward charlesrhoward enabled auto-merge (squash) February 16, 2026 04:05
@charlesrhoward charlesrhoward merged commit 9239e24 into main Feb 16, 2026
7 checks passed
@charlesrhoward charlesrhoward deleted the codex/fix-81-lock-todo-edits-while-running branch February 16, 2026 04:10
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.

Stabilize Todo Runner state when jobs are edited mid-run

1 participant