AI: Prevent false Applied Live Changes when no live edit succeeded In AI Assistance V2, `AiAgent2` sometimes outputs an `Applied Live Changes` section or claims it modified live CSS, DOM nodes, attributes, or scripts even when no live modification succeeded in that turn (after denied permission prompts, failed tool calls, read-only checks, or zero write calls). The `# Response Structure` guidance in `AiAgent2#preamble` defined `Applied Live Changes` for turns where the model modified the live page without requiring a succeeded write tool call in the current turn or routing denied and failed edit requests to `Suggestion(s)`. Changes: - Route unapplied, failed, and denied edit turns to `Suggestion(s)` in `AiAgent2#preamble` and forbid `Applied Live Changes` when no live modification succeeded in the current turn. - Require a succeeded non-error live style or page-modifying script call in the current turn before using `Applied Live Changes`. - Add a `# Constraints` rule forbidding current-turn live-edit claims after errors (including `"Error:"` tool outputs), user denials, or read-only queries, while still allowing accurate references to succeeded earlier-turn edits when asked. Evaluated in Chrome Canary against live GCA (`UserTier.TESTERS` local preamble) across 19 scenarios (3 trials each, 57 trials per arm): - Overall false live-change claims: 6/57 (10.5%) -> 0/56 (0.0%) completed answers (1 failed-tool trial stopped at MAX_STEPS without an answer). - Denied permission prompts & failed write tools (8 scenarios): 6/24 (25.0%) -> 0/23 (0.0%) completed answers. - Positive live-edit & informational controls (4 scenarios): 12/12 (100%) -> 12/12 (100%). Bug: 590089302 Change-Id: I38207ef3bd832b834cde5e51ac890cb688cd2006 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/8859375 Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
This repository contains the client side of Chrome DevTools. It contains all the TypeScript and CSS code that runs the DevTools web app.
The source code is on chromium.googlesource.com.
The Chromium DevTools documentation tells you how to do these tasks:
The documentation also contains design guidelines and architecture documentation.
Other documentation:
There is a mirror of the DevTools frontend repository on GitHub.
The DevTools frontend is also available on npm as the chrome-devtools-frontend package. The package does not supply CJS modules or ES modules. Thus, it can be difficult to use this package in other tools. For an example of how to use it, see this file.
The version number of the npm package (for example, 1.0.373466) is the Chromium commit position of the latest frontend Git commit. The version number increases with each Chromium commit. But we publish the package only approximately one time each day.
To get the latest news about DevTools development, do one or more of these steps:
Read What's new in DevTools.
Read Umar's Dev Tips.
Follow these accounts on X: @umaar, @malyw, @kdzwinel, @addyosmani, @paul_irish, @samccone, @mathias, @mattzeunert, @PrashantPalikhe, @ziyunfei, and @bmeurer.
Join the g/devtools-reviews@chromium.org mailing list. This list shows all pending code reviews.
Read the commit log, or follow @DevToolsCommits on X.
See all open DevTools bugs on crbug.com.
Use Chrome Canary and try the experiments.