Skip to content

feat: add React component labels for agents#305

Merged
V3RON merged 6 commits into
mainfrom
feat/react-agent-component-labels
Jun 15, 2026
Merged

feat: add React component labels for agents#305
V3RON merged 6 commits into
mainfrom
feat/react-agent-component-labels

Conversation

@V3RON

@V3RON V3RON commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

What is this?

This PR adds session-local component labels to React agent node summaries. React tools continue to support numeric node IDs, but agents can now use compact labels such as @c2 when reading nodes, children, props, state, and hooks.

How does it work?

The React tree store rebuilds a deterministic label map whenever the tree syncs. Node summaries include label and, when available, parentLabel. Existing lookup tools accept either the original nodeId field or a new id field that can contain a numeric ID or label, and the domain schemas describe both forms. Search scoping also accepts labels for rootId.

Why is this useful?

Labels make React inspection easier to drive from agent workflows because callers can refer to components with short stable names within the current tree snapshot. Existing numeric ID usage remains valid, while label-based lookup reduces copying mistakes and makes follow-up inspection calls easier to read.

Expose session-local component labels in React agent summaries and allow label-based node lookup.
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
rozenite Skipped Skipped Jun 12, 2026 2:19pm

Request Review

V3RON added 2 commits June 12, 2026 14:32
Accept stable component labels in the CLI React runtime store.

Keep numeric nodeId support and cover the live command path.
V3RON added 3 commits June 12, 2026 15:50
Document label-based React node lookup support.
Bring PR 305 up to date with the latest main branch.
Reinstate label maps and state-aware summaries after merging main.
@V3RON V3RON merged commit ec6224f into main Jun 15, 2026
6 checks passed
@V3RON V3RON deleted the feat/react-agent-component-labels branch June 15, 2026 06:46
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