Skip to content

fix(router): block probe when router actions are off - #194

Merged
erkamyaman merged 2 commits into
santoshyadavdev:mainfrom
erkamyaman:fix/router-probe-actions
Oct 1, 2026
Merged

erkamyaman merged 2 commits into
santoshyadavdev:mainfrom
erkamyaman:fix/router-probe-actions

Conversation

@erkamyaman

Copy link
Copy Markdown
Collaborator

actions: { router: false } now blocks Probe in app too, for the panel and for agents alike.

Probe runs the app's canMatch guards and starts a navigation, so it counts as a write. Before this, the panel only blocked navigate, abort and replay, while agents lost the whole navigate tool, including Record each guard and resolver (instrument) and resolve-lazy, which only observe or load code.

  • Panel: Probe in app is disabled with the existing "turned off in config" hint, like Go. Record each guard and resolver and Read lazy stay on.
  • Agents: the navigate tool stays registered and refuses navigate, abort, replay and probe per call when actions.router is off; instrument and resolve-lazy keep working. agent.readOnly still drops the whole tool, like the forms tool.
  • Docs: configuration, router (new FAQ "Why is Probe in app turned off?") and agent tools pages.

Fixes #128

Checks

  • New tests in config.test.ts, router-mcp.test.ts and router-panels.test.ts; each fails without the fix
  • pnpm test:devtools (1066), pnpm test:panel (71), pnpm test:axe, pnpm typecheck, pnpm format:check, pnpm skills:check and the docs build pass
  • extension/ui rebuilt in its own commit

Probe runs the app's canMatch guards and starts a navigation, but
actions.router: false only blocked navigate, abort and replay in the
panel, while agents lost the whole navigate tool, including instrument
and resolve-lazy. Probe is now a router write action for both: the
panel disables Probe in app with the config hint, and the agent tool
refuses navigate, abort, replay and probe per call while instrument and
resolve-lazy keep working. The docs say probe runs canMatch guards.

Fixes santoshyadavdev#128
Rebuilds extension/ui for the disabled Probe in app button.
@coderabbitai

coderabbitai Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 60 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: 928fe7d1-fedb-460b-adbb-8eece93c0f71

📥 Commits

Reviewing files that changed from the base of the PR and between 28e51ce and d760bff.

⛔ Files ignored due to path filters (1)
  • extension/ui/assets/index-aQsUflnN.js is excluded by !**/assets/index-[0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-][0-9a-z_-].js
📒 Files selected for processing (11)
  • app/src/__tests__/router-panels.test.ts
  • app/src/pages/route-tree.ts
  • apps/docs/src/content/agents/tools.md
  • apps/docs/src/content/getting-started/configuration.md
  • apps/docs/src/content/inspectors/router.md
  • extension/ui/assets/browser-agent-rpc-BXhoSh1z-BqZcKNTn.js
  • extension/ui/index.html
  • packages/ng-devtools/src/__tests__/config.test.ts
  • packages/ng-devtools/src/__tests__/router-mcp.test.ts
  • packages/ng-devtools/src/config.ts
  • packages/ng-devtools/src/devframe.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added area: panel The devtools panel app (app/) area: package The ng-devtools package (packages/ng-devtools) area: extension The Chrome extension area: agents MCP server, agent tools and resources area: docs The documentation site labels Oct 1, 2026
@nx-cloud

nx-cloud Bot commented Oct 1, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit d760bff

Command Status Duration Result
nx affected -t test build ✅ Succeeded 1m 32s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-10-01 10:12:46 UTC

@erkamyaman
erkamyaman merged commit 234becc into santoshyadavdev:main Oct 1, 2026
6 checks passed
erkamyaman added a commit to erkamyaman/angular-devtools that referenced this pull request Oct 1, 2026
Brings in santoshyadavdev#189, santoshyadavdev#191, santoshyadavdev#193 and santoshyadavdev#194. Keeps the one-path loop paragraph next to the new Routes lab sentence in the router docs, adds the santoshyadavdev#194 upgrade note to the 0.0.6 changelog, and rebuilds extension/ui.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: agents MCP server, agent tools and resources area: docs The documentation site area: extension The Chrome extension area: package The ng-devtools package (packages/ng-devtools) area: panel The devtools panel app (app/)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Probe in app runs a full navigation when a canMatch guard redirects

1 participant