Skip to content

fix(web): intent limit edit reverts after saving - #21

Merged
springfall2008 merged 1 commit into
mainfrom
fix/web-limit-refresh
Nov 27, 2026
Merged

springfall2008 merged 1 commit into
mainfrom
fix/web-limit-refresh

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

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.withUpdatedAt adds each node's updatedAt in PgMemoryStore.graph. Only web-api's /graph asks for it, so the MCP graph tool's output is unchanged.
  • web/public/diff.js includes updatedAt in the node key, so any content edit (the limit, or the lead rewriting progress past the snippet) triggers a re-read.
  • touch_accessed does not move updated_at, so agents' reads cause no extra fetches.

Tests

  • Unit: diffGraph sees an updatedAt change; /graph passes withUpdatedAt: true.
  • Integration: graph gives updatedAt only 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-api redeploy after merge.

🤖 Generated with Claude Code

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>
@springfall2008
springfall2008 merged commit fe1bd99 into main Nov 27, 2026
2 checks passed
@springfall2008
springfall2008 deleted the fix/web-limit-refresh branch November 27, 2026 08:16
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