Repository navigation
Conversation
vx watch's first run has no watcher, and a file written while a command of its own project ran was taken for that command's. An edit to a task already keyed (a hit, or done) then waited for the next save. The keys tell the two apart: taken again once the loop arms, one that moved makes those files changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W6xuYbJ4nYmSNRHVnNwVx2
Under VX_DEBUG_TIMING the keys-only plan printed a stage table of its own, which read as a cycle's (tests/watch-timing.test.ts). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W6xuYbJ4nYmSNRHVnNwVx2
This branch has not been deployed
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.
vx watchno longer drops an edit made during its first run while another task of the same project was running.Before
vx watch lint build:lintis done (a hit, or finished),buildof the same project still runs, you save a filelintreads. Watch arms, printswatching, and runs nothing:lint's output stays built from the old bytes until the next save. Reproduced on 0.0.657 in a plain workspace at every moment of the build.After
The loop arms, sees the file was written inside a command's window, takes the keys again, finds
lint's moved, and runs a cycle on the file.How it works
The first run has no watcher, so the arm scans the files git lists as dirty and written since the run started. One written while a command of its own project ran was skipped: it may be that command's own write. Now those files are kept aside, and when there are any and no cycle is already coming, a keys-only plan (no store asked, nothing printed) is compared with the keys the first run took. A moved key means a task was built from bytes the tree no longer holds, and the files become events. The check holds
running, so an event meanwhile queues as it does behind a cycle.A start where the first run's commands wrote no dirty file inside a window pays nothing new.
Breaking changes
None.
Proof
tests/watch-initial-edit-done.test.ts:Found by the workday probe with the watcher killed and restarted (seed 42); seeds 42 to 44 pass on this branch.
Generated by Claude Code