You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
relationship get nests results under related_nodes while every other command uses nodes, so .nodes[] silently returns empty #2811
nodespace relationship get --json nests its results under related_nodes, while every other list-returning command uses nodes. The inconsistency is cosmetic, but its failure mode is not: jq '.nodes[]' against this command returns empty output rather than an error, which is indistinguishable from "no edges exist."
Where
packages/cli/src/commands/relationship.rs:136:
"related_nodes": related,
versus nodes from node query, search, and schema list.
Why it matters
An external agent using the skill wrote .nodes[] against relationship get, got silence, and nearly reported correctly-created edges as missing data — it had to spend three extra calls disproving its own false conclusion. jq succeeds on a missing key, so the usual guard (|| echo "(err)") never fires either.
This compounds with #2791: that issue covers a traversal that returns an empty success; this one is an output-shape mismatch that produces the same visual result. An agent hitting both in one session has two independent ways to see "empty" when data exists, and no way to tell them apart from the output alone.
Suggested fix
Rename the key to nodes. Pre-release, no back-compat (per CLAUDE.md), so this is a straight rename rather than an alias.
Two things to decide while touching it:
The sibling keys (node_id, relationship_name) are snake_case, consistent with the CLI's other JSON output — this rename should not turn into a wider camelCase sweep. See the naming-conventions layer issue for why the CLI output layer is snake_case.
Worth checking cli.md for any documented related_nodes example that would need updating in the same change.
Found via
External agent session using the nodespace skill (same session as #2788, #2790, #2791). Reported by the agent as a "rough edge, not a bug" — accurate, but it was also the finding that cost it the most wasted calls.
Activity
mstomar125 commentedon Sep 23, 2026
Frontend: 5264 passed