Repository navigation
List what a node mentions, one hop, in its context read - #4298
Merged
Merged
Conversation
The context read returns the node's outgoing mentions as id, title and type with no content, not following the targets. Archived targets are left out, the list is capped like a path and flags when cut, and it is part of the read's version. The CLI prints it in human and JSON output. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The mentions were cut to the cap in the store's unspecified order, so which targets were kept and the read's version could vary. They are now sorted by title and id before the cut. The version test covers a mentioned node's rename, retype and archive. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
issue-4297-context-lists-mentions
branch
from
November 18, 2026 05:48
a3b8305 to
540641f
Compare
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.
Closes #4297. Refs #3731.
What
A context read (
nodespace node context,GetNodeContext) now lists what the node mentions, one hop: id, title and type of each target, no content, and nothing the targets mention. Archived targets are left out; the list is capped at the per-path limit and says when it was cut; it is part of the read's version. Existing context paths are unchanged. The CLI prints it in human and--jsonoutput.Not done
nodespace mention incoming|outgoingstill print bare ids: its RPC response is shared with the desktop app, so changing it is a wider wire change. Left for a follow-up.Saved-query run items are read without the mention list (so an item's version equals a read's version only while the node has no mentions). The local agent's tool (packages/agent) is not touched.
Tests
Core tests for the list, one-hop, archived, cap and version; a CLI integration assertion through the daemon. Each was mutation-checked.
🤖 Generated with Claude Code