Skip to content

List what a node mentions, one hop, in its context read - #4298

Merged
mstomar125 merged 2 commits into
mainfrom
issue-4297-context-lists-mentions
Nov 18, 2026
Merged

mstomar125 merged 2 commits into
mainfrom
issue-4297-context-lists-mentions

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

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 --json output.

Not done

nodespace mention incoming|outgoing still 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

mstomar125 and others added 2 commits November 18, 2026 06:48
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
mstomar125 force-pushed the issue-4297-context-lists-mentions branch from a3b8305 to 540641f Compare November 18, 2026 05:48
@mstomar125
mstomar125 merged commit c600672 into main Nov 18, 2026
@mstomar125
mstomar125 deleted the issue-4297-context-lists-mentions branch November 18, 2026 05:48
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.

The read of a node with its context lists what it mentions one hop as titles and types

1 participant