The bridge's own drawing no longer triggers its own re-read (#1707) - #1709
Merged
Conversation
The corner panel is redrawn on every survey and the Driver overlay on every log line, both under the observed root, so each survey's redraw was the next survey's trigger: a full survey about four times a second, forever, on a page where nothing had changed. The observers are now paused around the script's own writes, which keeps the rule that any page change triggers a re-read. check.mjs proves it: one page change costs exactly one survey (5 on the code before this).
suleimansh
force-pushed
the
claude/observer-self-loop-1707
branch
from
August 25, 2026 21:36
58a3043 to
9e12fa8
Compare
This was referenced Aug 25, 2026
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.
#1707 item 2. The corner panel is redrawn on every survey and the Driver overlay on every log line, both under the observed root — so each survey's redraw was the next survey's trigger: a full survey about four times a second, forever, on a page where nothing had changed.
The observers
watchruns are now paused around the script's own writes (ownWrites, re-entrant; a dead context's observer is dropped from the set). This keeps the rule that any page change triggers a re-read; only the bridge's own drawing stops counting as one.check.mjs: "one page change costs one survey" — 5 surveys on the code before this, 1 with it; fails again with the pause disabled.
content.SPEC.md(watching) andcheck.SPEC.mdupdated.Live, in a claude.ai/code tab: before the reload the collapsed panel was rewritten with nothing changing (6 mutation records in 3 s); after it, 0 records in 5 s, and one page change → exactly one redraw (2 records), then 0. The Driver tab picked the new script up on its next page load.
🤖 automated · Fable 5, effort xhigh