Skip to content

feat(watch): Publish fresh graph state - #164

Open
reneleonhardt wants to merge 5 commits into
JordanCoin:mainfrom
reneleonhardt:feat/watch-state-publication
Open

feat(watch): Publish fresh graph state#164
reneleonhardt wants to merge 5 commits into
JordanCoin:mainfrom
reneleonhardt:feat/watch-state-publication

Conversation

@reneleonhardt

Copy link
Copy Markdown
Contributor

What does this PR do?

Hardens watcher publication and hook cleanup:

  • Coalesces state publication while preserving the newest graph and configured-file membership.
  • Retries failed publishes and bounds control artifacts, cleanup, subprocesses, and output by the hook deadline.
  • Flushes queued watcher events before rendering and propagates final session-stop failures.
  • Persists canonical project identity so linked and worktree roots share state.

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 . and codemap --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

reneleonhardt and others added 5 commits August 29, 2026 16:11
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>
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.

1 participant