Repository navigation
fix: preserve scheduled task isolation and editing (v0.9.10) - #96
Merged
Merged
Conversation
release: v0.9.9 — readable task details on narrow panels
… held by the predecessor (issue #94) spawnNextCycle copied branch/branches into the successor, but the predecessor's in_review worktree keeps that branch checked out until a human accepts it. From cycle 2 on, prepareWorktree('fresh') could not 'git branch -f' the branch, returned undefined, and the whole run silently degraded to in-place execution with no evidence. - spawnNextCycle no longer inherits branch/branches: each cycle pins its own task/<title>+<newTaskId> on its first run. - prepareWorktree('fresh') now falls back to a per-run branch (<branch>+r<rand>) when 'branch -f' fails because another live worktree holds the branch, instead of degrading the run to the main checkout. - Regression: scripted git fallback test, successor-branch assertion updates, and a real-git end-to-end preparing cycle 2 while cycle 1's worktree is still alive.
…saveable (issue #95) After a one-shot (定时一次) fired, the ledger kept mode 'scheduled' with no cron/runAt: the edit form inferred mode 'once' with an empty datetime and a permanently disabled Save button, and the card/detail rendered an empty ⏰ badge. - New shared predicate isSpentOneShot(exec, now): scheduled, no cron, no queued/dispatching window, and no FUTURE runAt. A past runAt counts as spent (its window is gone; only queue fields are still live). - Host normalizes mode to claim (and consumes a leftover past runAt) at settlement, on a missed window, on queue expiry/clear, and on a dead cron — a mid-run re-arm with a fresh future runAt is left untouched. - Client defense-in-depth: TaskFormModal treats a spent one-shot as a plain claim task (heals legacy ledgers), a queued one-shot still edits as 定时一次 seeded with its dispatch window, and TaskCard/TaskDetail hide the ⏰ badge/chip when no trigger field remains. - Regression: settlement + missed-window + mid-run re-arm host tests and a jsdom form test asserting Save enables and submits mode 'claim'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么?
Fix scheduled task isolation and editing for v0.9.10:
如何验证?
关联 Issue(可选)
Fixes #94
Fixes #95