feat(watch): Publish fresh graph state - #164
Conversation
Publish atomic instance-local generations after a quiet window and acknowledge freshness requests through the project runtime bridge. Co-Authored-By: GPT-5.6 Sol <codex@openai.com>
Flush watcher state before rendering and keep input, cleanup, subprocesses, and output within the hook deadline. Co-Authored-By: GPT-5.6 Sol <codex@openai.com>
Retry failed publishes, bound control artifacts, drain queued events, and propagate final session-stop failures. Co-Authored-By: GPT-5.6 Sol <codex@openai.com>
|
Reviewed with live daemon fixtures and adversarial deadline tests. The session-stop bounding work is the strongest part of this PR — see the positive findings at the bottom. Two blockers. 1. BLOCKING — failed publishes are never retried on two call paths
A failure on either path orphans the retry deadline: 2. BLOCKING — debounce is bypassed for configured files, and it breaks
|
Retry failed writes and coalesce configured changes.
Complied
Not fully complied
|
|
Thanks for the quick turnaround — the error-checking work and the flush serialization changes look good. But I re-ran both blockers against 1. Still open — retry fix covers only the
|
|
Verified and merged.
Full suite at the main baseline, That closes the batch — #161 through #165 all landed. Thanks for the fast, precise turnarounds on all five; the fixes consistently addressed the root cause rather than the symptom, which made re-verification straightforward. Generated by Claude Code |
What does this PR do?
Hardens watcher publication and hook cleanup:
Why it matters
Rapid file changes and bounded hook lifetimes could publish stale state, lose a final update, or hide cleanup failures. Publication now converges on the latest state and reports terminal errors.
CLI / MCP surface
No new commands, arguments, or MCP tools. Existing hooks and watch-state consumers receive fresher state.
Verification
codemap .andcodemap --deps .The repository linter still reports its existing baseline findings plus unchecked-return findings in this branch's watcher changes.
Co-Authored-By: GPT-5.6 Sol codex@openai.com