Repository navigation
fix(web): intent limit edit reverts after saving - #21
Merged
Merged
Conversation
The graph gives the web UI each node's updatedAt (withUpdatedAt, asked for only by web-api), and the browser's diff counts it. Before, a saved Max intents edit changed neither tags nor snippet, so the page kept the old goal text and redrew the old limit after the follow-up poll. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
Editing the intent limit in the web UI saved on the server, but the strip went back to the old value. The page re-reads a goal's full text only when the graph says the node changed (tags, 160-character snippet, superseded, claim). The
Max intents:line sits past the snippet and is not a tag, so the edit looked like no change, and the follow-up poll redrew the old limit from the cached text. State controls were unaffected because state is a tag.Fix
GraphFilters.withUpdatedAtadds each node'supdatedAtinPgMemoryStore.graph. Onlyweb-api's/graphasks for it, so the MCPgraphtool's output is unchanged.web/public/diff.jsincludesupdatedAtin the node key, so any content edit (the limit, or the lead rewriting progress past the snippet) triggers a re-read.touch_accesseddoes not moveupdated_at, so agents' reads cause no extra fetches.Tests
updatedAtchange;/graphpasseswithUpdatedAt: true.updatedAtonly when asked, and it moves on a content edit past the snippet.deno task check, 308 unit tests, graph and web-api integration tests pass.Needs a hosted
web-apiredeploy after merge.🤖 Generated with Claude Code