Skip to content

Remove the deprecated --preview and --preview-list devtools flags - #1829

Open
Alexandre Zollinger Chohfi (azchohfi) wants to merge 1 commit into
mainfrom
azchohfi-remove-preview-devtools-alias
Open

Alexandre Zollinger Chohfi (azchohfi) wants to merge 1 commit into
mainfrom
azchohfi-remove-preview-devtools-alias

Conversation

@azchohfi

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 374cad000fee051aeb9fb86fc3f0a91ac02655d1

Dimension Assessment Rationale
Change confidence 9/10 ↑ Both doc screenshots are byte-identical between the old --preview launch on main and the new --devtools run launch, on the same machine.
↑ Parser, devtools and DocPipeline tests pass, and the VS Code smoke test fails against the old compiled extension.
↑ Release build of the solution shows no compiler errors.
↓ The three src/vs-reactor projects could not be restored locally (TLS to nuget.org), so CI is the only check for them. They don't reference anything removed.
↓ CI has not run yet.

Summary

Drops the --preview and --preview-list aliases. They were renamed to --devtools run and --devtools list in 27e89d9, before the first public preview, so every published package already takes the new names.

Everything in the repo that still used the old flags now uses --devtools. The doc pipeline launches doc apps with --devtools run --vscode --fps 5. Both dev-tooling screenshots come out byte-identical to what the old launch produces. The VS Code extension loses its [preview] stdout sniff, the relaunch with --preview --vscode, and the reactor_preview_launch telemetry name. README, the devtools / vs-extension / source-mapping guides, the doc-pipeline contributor doc and the threat model are updated too. The README's CLI preview section still mentioned a preview: true parameter on ReactorApp.Run that no longer exists, so that section is rewritten.

DevtoolsCliOptions loses its UsedDeprecatedPreview and PreviewAndDevtoolsConflict positional parameters, and the conflict error and deprecation warning go with them.

Linked issue / spec

Relates to #1819

Test plan

  • dotnet test tests/Reactor.Tests --filter-class "*CliFlagParsingTests" --filter-class "*ReactorFeaturesTests" --filter-class "*Devtools*": 556 passed, 2 skipped
  • dotnet test tests/Reactor.DocPipeline.Tests: 593 passed
  • src/vscode-reactor: npm run compile then npm run smoke, 4/4 passed. The new launch-args test fails against the old out/extension.js.
  • Doc pipeline: ran compile --topic devtools on this branch and compile --topic devtools / --topic hot-reload on an origin/main worktree, both on the same machine. preview-app.png and iteration-demo.png have the same SHA-256 in both runs. The recaptured images are not committed.
  • dotnet restore Reactor.slnx then dotnet build Reactor.slnx --no-restore -c Release (with NuGetAudit=false because of a local proxy): no compiler errors. Only src/vs-reactor (3 projects) failed, with NU1301 restore errors from the proxy.
  • mur --regen-api (both copies), compile --reference-only, and the three edited guide topics compiled.
  • Ran the repo pr-review skill (7 dimensions plus a GPT cross-check). Fixed what it found: the threat model activation line now covers --embed, stale PreviewCaptureServer/DevtoolsMcpServer paths fixed, a duplicate test removed, the smoke test hardened, and the XML doc no longer advertises --devtools-list.

Risk / breaking changes

  • Public API: DevtoolsCliOptions drops two positional parameters, so its constructor and Deconstruct change. Nothing outside the parser builds it.
  • An app started with --preview now runs as a normal launch. I left out a "removed, use --devtools" message on purpose. Every package that accepted --preview already printed a deprecation warning, and a permanent hint would hold on to a generic flag name apps may want for themselves.
  • Microsoft.UI.Reactor.Devtools has to match the Microsoft.UI.Reactor version. That was already true because of InternalsVisibleTo, and the CHANGELOG entry says so.

They were renamed to --devtools run / --devtools list before the first public
preview. Drops the parser aliases, the DevtoolsCliOptions.UsedDeprecatedPreview
and PreviewAndDevtoolsConflict parameters, the deprecation warning, and the VS
Code extension's pre-rename fallback. The doc pipeline now launches doc apps
with --devtools run --vscode. Relates to #1819.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the migration from deprecated preview flags to --devtools.

No open issues 🎉

What changed in this PR

Removes deprecated preview flags as part of #1819’s compatibility cleanup, standardizing Reactor’s developer tooling on --devtools.

Changes:

  • Removes preview aliases, related option fields, warnings, and conflict handling.
  • Migrates screenshot launches and removes the VS Code fallback, with regression tests.
  • Updates documentation, generated API references, and migration notes.
File Description
tools/​Reactor.DocPipeline/​WinAppCapture.cs Updates launch documentation.
tools/​Reactor.DocPipeline/​ScreenshotCapture.cs Launches captures with --devtools run.
tests/​Reactor.Tests/​Hosting/​ReactorFeaturesTests.cs Removes obsolete conflict assertion.
tests/​Reactor.Tests/​Devtools/​CliFlagParsingTests.cs Verifies removed flags no longer activate devtools.
tests/​Reactor.DocPipeline.Tests/​CaptureOriginTests.cs Checks migrated capture arguments.
src/​vscode-reactor/​test/​extension.test.cjs Tests launch arguments and absence of fallback.
src/​vscode-reactor/​src/​extension.ts Removes legacy relaunch and telemetry paths.
src/​vscode-reactor/​out/​extension.js.map Refreshes compiled source mappings.
src/​vscode-reactor/​out/​extension.js Updates compiled extension behavior.
src/​Reactor/​Hosting/​ReactorApp.cs Removes obsolete flag-conflict handling.
src/​Reactor/​Hosting/​Devtools/​DevtoolsCliParser.cs Removes aliases and compatibility fields.
src/​Reactor.Devtools/​DevtoolsHost.cs Removes the deprecation warning.
skills/​reactor.api.txt Updates exported API signatures.
README.md Updates preview commands and setup guidance.
plugins/​reactor/​skills/​reactor-dsl/​references/​reactor.api.txt Synchronizes the plugin API index.
docs/​security/​threat-model.md Updates activation guidance and server paths.
docs/​guide/​vs-extension.md Removes obsolete fallback documentation.
docs/​guide/​source-mapping.md Updates overlay terminology.
docs/​guide/​reference/​diagnostics/​devtools.md Refreshes generated options reference.
docs/​guide/​devtools.md Removes deprecated alias guidance.
docs/​contributing/​doc-pipeline.md Documents the migrated capture command.
docs/​_pipeline/​templates/​vs-extension.md.dt Removes fallback guidance from its template.
docs/​_pipeline/​templates/​source-mapping.md.dt Updates terminology in the source template.
docs/​_pipeline/​templates/​devtools.md.dt Removes alias guidance from its template.
CHANGELOG.md Records removals and migration requirements.

Review effort: Balanced

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

📦 Build metrics

Artifact sizes for 374cad0 vs the base branch (7020f0c).

Packages (compressed .nupkg)

Artifact base PR Δ
Microsoft.UI.Reactor.nupkg 2.19 MB 2.19 MB -632 B (-0.03%) ≈
Microsoft.UI.Reactor.Advanced.nupkg 531.4 KB 531.4 KB -12 B (0.00%) ≈
Microsoft.UI.Reactor.Devtools.nupkg 290.6 KB 290.5 KB -22 B (-0.01%) ≈

Assemblies in Microsoft.UI.Reactor

Artifact base PR Δ
Microsoft.UI.Reactor.dll 2.93 MB 2.92 MB -1.50 KB (-0.05%) ✅
Reactor.Analyzers.dll 469.5 KB 469.5 KB +0 B (0.00%) ≈
Reactor.Localization.Generator.dll 16.0 KB 16.0 KB +0 B (0.00%) ≈
Reactor.Wrappers.Abstractions.dll 12.0 KB 12.0 KB +0 B (0.00%) ≈
Reactor.Wrappers.Generator.dll 229.5 KB 229.5 KB +0 B (0.00%) ≈

Assemblies in Microsoft.UI.Reactor.Advanced

Artifact base PR Δ
Microsoft.UI.Reactor.Advanced.dll 1.08 MB 1.08 MB +0 B (0.00%) ≈

Assemblies in Microsoft.UI.Reactor.Devtools

Artifact base PR Δ
Microsoft.UI.Reactor.Devtools.dll 791.5 KB 791.5 KB +0 B (0.00%) ≈

✅ smaller / ⚠️ larger / ≈ within noise. Sizes come from a Release dotnet pack on the CI runner: packages are the compressed .nupkg download size, assemblies the uncompressed DLL inside it.
workflow run.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

🧪 Merged coverage

Coverage for 374cad0 vs the base branch (7020f0c) — unit + selftest merged.

Metric base PR Δ
Line 89.22% 89.22% 0.00 pp ≈
Branch 43.99% (18780/42687) 43.98% (18767/42673) -0.01 pp ≈

No coverage change beyond the noise floor. ✅

✅ higher / ⚠️ lower / ≈ within noise. Δ is in percentage points; coverage is unit + selftest merged (Debug x64) on the CI runner. Cobertura reports attached to the workflow run as artifacts.

@azchohfi Alexandre Zollinger Chohfi (azchohfi) added ready-for-review Agent work and technical checks complete; awaiting review, not approval or merge and removed agent-preparing Agent is addressing feedback or completing required validation and CI labels Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Agent work and technical checks complete; awaiting review, not approval or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants