Skip to content

Add signal graph AI debugging tool#67985

Open
dgp1130 wants to merge 4 commits intoangular:mainfrom
dgp1130:signal-graph-tool
Open

Add signal graph AI debugging tool#67985
dgp1130 wants to merge 4 commits intoangular:mainfrom
dgp1130:signal-graph-tool

Conversation

@dgp1130
Copy link
Copy Markdown
Contributor

@dgp1130 dgp1130 commented Apr 2, 2026

This is part of an experiment with chrome-devtools-mcp to expose runtime data about framework internal state such as the signal graph to AI agents and see if it improves debuggability of Angular applications.

/cc @wolfib

These serve as the type definitions for interacting with the `chrome-devtools-mcp` AI runtime debugging functionality. Eventually this will hopefully be upstreamed to some more authoritative location, but for now this will do.
@dgp1130 dgp1130 added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime core: debug tools target: minor This PR is targeted for the next minor release labels Apr 2, 2026
@ngbot ngbot bot modified the milestone: Backlog Apr 2, 2026
@pullapprove pullapprove bot requested a review from JeanMeche April 2, 2026 00:39
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Apr 2, 2026
@dgp1130 dgp1130 force-pushed the signal-graph-tool branch from 9b40dca to 171e188 Compare April 2, 2026 23:21
@dgp1130 dgp1130 force-pushed the signal-graph-tool branch from 171e188 to 53d9376 Compare April 3, 2026 16:28
dgp1130 added 3 commits April 3, 2026 10:10
This provides an `angular:signal_graph` in-page tool which exposes the signal graph from the component rendered for a particular DOM element. It leverages the algorithm defined for Angular DevTools, which essentially means it takes the effects registered on the components injector and walks transitive dependencies to find all signals referenced by the component in an effect or the template.
This will centrally manage all the AI tools supported by Angular out of the box.
This registers AI runtime debugging tools during platform creation and unregisters them when the platform is destroyed. This roughly matches existing usage of global utils with respect to timing. It is limited to dev mode only because these tools are exclusively for debugging Angular's internals and not something production users would leverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime core: debug tools detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants