Skip to content

Enable terminal configuration callbacks in TypeScript AppHosts - #21116

Merged
Mitch Denny (mitchdenny) merged 9 commits into
mainfrom
mitchdenny-typescript-terminal-options
Oct 27, 2026
Merged

Mitch Denny (mitchdenny) merged 9 commits into
mainfrom
mitchdenny-typescript-terminal-options

Conversation

@mitchdenny

@mitchdenny Mitch Denny (mitchdenny) commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Description

TypeScript AppHosts could enable resource terminals but could not configure their initial dimensions. Export the existing WithTerminal callback through ATS so polyglot AppHosts can set columns and rows, retaining the 132×50 defaults and positive-dimension validation.

Mark the existing TerminalOptions as an ATS DTO and use callback writeback rather than a separate adapter or configuration type. Run the synchronous export on a background thread so callbacks can re-enter ATS. Remove ASPIRETERMINAL001 from WithTerminal and TerminalOptions; AppHost-owned terminals, TerminalService, and interaction APIs remain experimental.

Address the shared SDK issues exposed by the callback: use camel-case DTO wire names in Go, Java, Python, and Rust; return mutated DTO arguments from Python void callbacks; and use checked integer conversion for whole-number values encoded as 200.0. Keep builder defaults and exported DTO values aligned with the corrected names. Python keyword keys use functional TypedDict declarations with deferred forward references. Add executable SDK round-trip probes, host validation cases, documentation, and regenerated snapshots. Update the Python validation AppHosts to use the corrected camelCase DTO keys.

Rust intentionally keeps a single callback-taking with_terminal method. Since Rust support is in preview, this accepts the parameterless-call breaking change rather than adding a compatibility method or optional callback wrapper. This follows the Rust generator's existing required-callback convention.

Merged main, retaining its terminal auto-fit behavior. TypeScript and Python preserve assignment intent in callback DTO writeback: a no-op callback leaves auto-fit enabled, while explicitly assigning either dimension—even its default value—disables auto-fit. Regression coverage executes a generated Python SDK callback, feeds its actual payload through the host dispatcher, and asserts the resulting terminal.autoFit resource snapshot.

User-facing usage

resource.withTerminal({
    configure: async options => {
        options.columns = 200;
        options.rows = 60;
    }
});

TypeScript resource.withTerminal() and a no-op callback preserve default dimensions and automatic dashboard fitting. Leaving one dimension unchanged preserves its default. Rust uses with_terminal(callback); a callback returning serde_json::Value::Null retains the defaults, while a configuring callback returns its updated DTO under p0.

C# AppHosts use the same callback without an experimental warning:

builder.AddExecutable("agent", "my-agent", ".")
    .WithTerminal(options =>
    {
        options.Columns = 200;
        options.Rows = 60;
    });

Validation

Final head 092d272044: CI green; 10/10 PR-artifact E2E scenarios passed. Full final-head report, exact commands, and results.

Actual artifact 17.0.0-pr.21116.g092d2720 was installed into an isolated temporary directory. Nine fresh TypeScript projects and one C# project exercised real producer PTYs: custom 200×60, omitted and no-op callbacks 132×50, explicit-default columns and rows 132×50, partial 180×50, minimum 1×1, invalid zero/negative values, and C# 160×40 with warnings as errors and no suppression. Resource snapshots confirmed auto-fit remains enabled only for omitted/no-op callbacks and is disabled by explicit assignments, including default values. Invalid dimensions returned exit 2 and INVALID_ARGUMENT without launching the producer. All AppHosts were stopped and temporary installs/projects cleaned up.

The following commands passed locally. Python probes used installed Python 3.14 as python3 on PATH.

  • ./restore.sh — passed.
  • dotnet test --project tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj --no-launch-profile -- --filter-class '*.WithTerminalTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' — passed: 70 tests; 1 platform-specific test skipped on macOS.
  • dotnet test --project tests/Aspire.Hosting.RemoteHost.Tests/Aspire.Hosting.RemoteHost.Tests.csproj --no-launch-profile -- --filter-class '*.CapabilityDispatcherTests' --filter-class '*.CallbackProxyTests' --filter-class '*.AtsMarshallerTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' — passed: 285 tests, including generated-SDK-to-host auto-fit regression, decimal-form dimensions, and invalid fractional/out-of-range values.
  • dotnet test --project tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests.csproj --no-launch-profile -- --filter-class '*.AtsTypeScriptCodeGeneratorTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' — passed: 135 tests.
  • npm test --prefix tests/Aspire.Hosting.CodeGeneration.TypeScript.JsTests — passed: 202 JavaScript runtime tests, including no-op/default-assignment DTO callbacks and nested mutations. Strict targeted type-checking of the changed transport also passed; the broader test-project type-check reports unrelated missing generated modules and existing test typing errors and is not counted as passed.
  • dotnet test --project tests/Aspire.Hosting.CodeGeneration.Python.Tests/Aspire.Hosting.CodeGeneration.Python.Tests.csproj --no-launch-profile -- --filter-class '*.AtsPythonCodeGeneratorTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' — passed: 29 tests, including sparse callback writeback and Python keyword keys with forward references.
  • dotnet test --project tests/Aspire.Hosting.CodeGeneration.Go.Tests/Aspire.Hosting.CodeGeneration.Go.Tests.csproj --no-launch-profile -- --filter-class '*.AtsGoCodeGeneratorTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' — passed after merging main: 34 tests, including executable Go DTO round trip.
  • dotnet test --project tests/Aspire.Hosting.CodeGeneration.Java.Tests/Aspire.Hosting.CodeGeneration.Java.Tests.csproj --no-launch-profile -- --filter-class '*.AtsJavaCodeGeneratorTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' — passed after merging main: 61 tests, including executable Java DTO/callback probes using a temporary JDK 21.
  • dotnet test --project tests/Aspire.Hosting.CodeGeneration.Rust.Tests/Aspire.Hosting.CodeGeneration.Rust.Tests.csproj --no-launch-profile -- --filter-class '*.AtsRustCodeGeneratorTests' --filter-not-trait 'quarantined=true' --filter-not-trait 'outerloop=true' — passed after merging main: 21 tests, including executable Rust DTO and single-method terminal callback probes.
  • git diff --check — passed.

Final-head CI completed successfully after automatic reruns: 325 passed checks, 12 skipped, none failed or pending. All review threads are resolved. Human approval is still required; the PR has not been merged.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Export WithTerminal directly through ATS, preserve dimension validation and defaults, and stabilize the resource terminal configuration API.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: f3d7b933-6c1d-4ae9-9403-2781fa45ca12
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21116

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21116"

@github-actions

This comment has been minimized.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: f3d7b933-6c1d-4ae9-9403-2781fa45ca12

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.

🟡 Changes recommended

SDK wire-name mismatches, missing Python callback writeback, and required Rust callbacks prevent correct configuration or break default calls.

6 open issues
What changed in this PR

Exposes terminal-dimension configuration through Aspire’s polyglot SDKs using the existing callback and options type.

Changes:

  • Exports WithTerminal callbacks with background-thread execution.
  • Removes experimental status from resource-terminal configuration.
  • Updates documentation, regression tests, and five SDK snapshots.
File Description
tests/​Aspire.Hosting.Tests/​WithTerminalTests.cs Verifies non-experimental API status.
tests/​Aspire.Hosting.RemoteHost.Tests/​CapabilityDispatcherTests.cs Tests defaults, callback mutations, and validation.
tests/​Aspire.Hosting.CodeGeneration.TypeScript.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.ts Adds terminal configuration callbacks.
tests/​Aspire.Hosting.CodeGeneration.Rust.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.rs Adds terminal DTO and callback parameters.
tests/​Aspire.Hosting.CodeGeneration.Python.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.py Adds terminal DTO and callback options.
tests/​Aspire.Hosting.CodeGeneration.Java.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.java Adds terminal DTO and callback overloads.
tests/​Aspire.Hosting.CodeGeneration.Go.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.go Adds terminal DTO and callback writeback.
src/​Aspire.Hosting/​TerminalResourceBuilderExtensions.cs Exports the existing configuration callback.
src/​Aspire.Hosting/​ApplicationModel/​TerminalAnnotation.cs Marks terminal options as a non-experimental DTO.
docs/​specs/​with-terminal.md Documents configuration and experimental boundaries.

Review effort: Balanced

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

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.

Align DTO wire names with the host, return Python DTO mutations, preserve Rust default calls, and accept integral decimal-form callback numbers.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: f3d7b933-6c1d-4ae9-9403-2781fa45ca12
@github-actions

This comment has been minimized.

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.

Use functional TypedDict syntax for reserved wire keys while deferring forward references, and cover generation and import in the terminal callback probe.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: f3d7b933-6c1d-4ae9-9403-2781fa45ca12

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.

🔵 Needs a closer look

Cross-SDK changes need human review, with Python fixture incompatibilities unresolved and updated-head end-to-end validation pending.

1 open issue
1 resolved since last review

Review effort: Balanced

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 19, 2026 07:36
@mitchdenny

Copy link
Copy Markdown
Member Author

Merged current main in 247aa03 and resolved the terminal export conflict by retaining the configurable callback export, while preserving the new auto-fit behavior. Refreshed the generated TypeScript documentation snapshot and added ATS coverage proving that omitted/empty dimension updates retain auto-fit eligibility while explicit dimensions (including default-valued dimensions) disable it.

Merged-head local results: terminal hosting 70 passed / 1 platform skip; ATS dispatcher/callback/marshaller 284 passed; TypeScript 135, Go 34, Java 61, Python 29, and Rust 21 passed. The remaining Python-fixture review thread has been replied to and resolved; no unresolved review threads remain.

New-head CI: https://github.com/microsoft/aspire/actions/runs/39217098942 (running). The earlier 7/7 artifact E2E report remains evidence for e4314ac, not this merge commit. Human approval is still required; the PR has not been merged.

@github-actions

This comment has been minimized.

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.

🟡 Changes recommended

No-op polyglot terminal callbacks disable dashboard auto-fit by marking unchanged dimensions as explicitly configured.

1 open issue
1 resolved since last review

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@mitchdenny

Copy link
Copy Markdown
Member Author

Merged-head CI is now green: https://github.com/microsoft/aspire/actions/runs/39217098942 completed successfully for 247aa03. The main merge and conflict resolution are pushed, local regression suites passed, and all previously outstanding review threads were addressed. Human approval is still required; this PR has not been merged.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: f3d7b933-6c1d-4ae9-9403-2781fa45ca12
@github-actions

This comment has been minimized.

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.

🔵 Needs a closer look

Shared callback changes across five SDKs warrant human review, with final-head end-to-end validation still pending in the supplied evidence.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@mitchdenny

Copy link
Copy Markdown
Member Author

Final PR Testing Report

PR Information

Artifact Version Verification

Installed the actual PR dogfood artifacts into a new isolated temporary directory:

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh |
  bash -s -- 21116 --install-path "$testDir" --skip-path --skip-extension
CLI="$testDir/dogfood/pr-21116/bin/aspire"
"$CLI" --version

Passed: 17.0.0-pr.21116.g092d2720 matches the final PR head. No locally built packages were substituted.

Changes Exercised

The scenarios exercise the generated TypeScript callback, ATS DTO writeback, terminal dimensions, validation, and stable C# configuration. They also verify the interaction with the terminal auto-fit feature merged from main: a no-op callback must preserve auto-fit, but explicitly assigning either dimension—even to its default—must disable it.

The producer ran under a real PTY and recorded os.get_terminal_size(1) from inside the process. Auto-fit assertions read the actual resource snapshot through aspire describe, not a mocked callback response.

Test Scenarios Executed

Scenario Actual producer size Actual terminal.autoFit Result
TypeScript custom columns and rows 200×60 "false" Passed
TypeScript omitted callback 132×50 "true" Passed
TypeScript no-op callback 132×50 "true" Passed
TypeScript explicitly assign default columns (132) 132×50 "false" Passed
TypeScript explicitly assign default rows (50) 132×50 "false" Passed
TypeScript only set columns 180×50 "false" Passed
TypeScript minimum valid dimensions 1×1 "false" Passed
TypeScript zero columns Resource not launched N/A; exit 2, INVALID_ARGUMENT Passed
TypeScript negative rows Resource not launched N/A; exit 2, INVALID_ARGUMENT Passed
C# configure without experimental suppression 160×40 "false" Passed

All eight positive cases reported both stdin and stdout as TTYs. Every AppHost was stopped with its explicit --apphost path; all ten stop commands returned exit code 0.

Exact commands and results

Each TypeScript case used its own newly scaffolded project:

"$CLI" new aspire-ts-empty --name TerminalProbe --output "$scenarioDir" \
  --source "$testDir/hives/pr-21116/packages" \
  --version 17.0.0-pr.21116.g092d2720 \
  --localhost-tld false --suppress-agent-init --non-interactive
"$scenarioDir/node_modules/.bin/tsc" --project "$scenarioDir/tsconfig.apphost.json"

Passed: all nine TypeScript projects scaffolded and type-checked.

"$CLI" new aspire-empty --name TerminalCSharp --output "$testDir/csharp" \
  --source "$testDir/hives/pr-21116/packages" \
  --version 17.0.0-pr.21116.g092d2720 \
  --localhost-tld false --suppress-agent-init --non-interactive

Passed: C# scaffolded, compiled, and ran with TreatWarningsAsErrors=true and no experimental diagnostic suppression.

For each successful scenario:

"$CLI" start --apphost "$apphost" --isolated --format json --non-interactive
"$CLI" wait probe --status up --timeout 120 --apphost "$apphost" --non-interactive
"$CLI" describe probe --apphost "$apphost" --format json --non-interactive
"$CLI" stop --apphost "$apphost" --non-interactive

Passed: all eight positive starts, structured readiness checks, size assertions, snapshot assertions, and stops.

The two negative cases used the same start command. Passed: both returned exit 2, INVALID_ARGUMENT, Aspire.Hosting/withTerminal, and the positive-dimension validation message. Neither launched the producer.

Focused Regression Coverage

The generated Python SDK-to-host test invokes actual generated with_terminal callbacks, sends their resulting payloads through the C# capability dispatcher, and asserts the resulting terminal.autoFit snapshot for no-op, explicit-default, and custom-size cases.

Local suites on the final head passed: 285 ATS host tests, 29 Python generator tests, 202 JavaScript runtime tests, 135 TypeScript generator tests, and 70 hosting terminal tests (one platform skip). Strict targeted type-checking of the changed transport passed. The broader JavaScript test-project type-check still reports unrelated missing generated modules and existing test typing errors; it is not counted as passed.

Go (34), Java (61), and Rust (21) generator suites passed locally after merging main; final-head CI also passed.

CI and Review Status

  • Final-head CI run 39223676664: success, after automatic reruns.
  • PR checks: 325 passed, 12 skipped, none failed or pending.
  • Main is merged; GitHub reports the PR mergeable.
  • No unresolved review threads. The auto-fit feedback is addressed and resolved.
  • Human approval is still required. The PR has not been merged.

Limitations and Cleanup

  • Artifact E2E ran on macOS arm64, not Windows or Linux.
  • The artifact scenarios exercised TypeScript and C#; executable SDK probes cover the other languages.
  • Auto-fit was verified through the real resource snapshot. Browser-driven terminal resizing was not exercised.
  • All test AppHosts were stopped. The isolated projects and installation were removed after preserving command logs, resource snapshots, the harness, and results JSON in the session artifacts.

Overall Result

Final head verified: 10/10 artifact E2E scenarios passed and CI is green.

@IEvangelist

Copy link
Copy Markdown
Member

PR Testing Report

PR Information

Artifact Version Verification

  • Expected Commit: 092d272
  • Installed Version: 17.0.0-pr.21116.g092d2720 (dogfood CLI from CI run 39223676664)
  • Status: ✅ Verified

Changes Analyzed

  • Hosting: WithTerminal / TerminalOptions exported through ATS; ASPIRETERMINAL001 removed from both
  • Codegen/transport: TypeScript transport.mts, Go/Java/Python/Rust DTO wire names (camelCase), Python void-callback writeback, AtsMarshaller checked integer conversion
  • Tests/snapshots and Python validation AppHosts

Categories: [x] Hosting [x] Codegen/SDK [x] Tests [ ] CLI [ ] Dashboard [ ] Templates [ ] Extension [ ] CI infra

Test Scenarios Executed

Each scenario used a fresh aspire new project (PR hive + PR version) and a node probe running as the terminal producer, which records process.stdout.columns x rows under the PTY. aspire describe was used to read terminal.autoFit.

# Scenario Coverage Result Observed
1 TS withTerminal({configure}) sets 200x60 Happy ✅ PTY 200x60, autoFit=false
2a TS withTerminal() (no callback) Defaults ✅ PTY 132x50, autoFit=true
2b TS no-op callback Defaults ✅ PTY 132x50, autoFit=true
2c TS explicit assignment of defaults (132, 50) Boundary ✅ PTY 132x50, autoFit=false (assignment intent preserved)
3a TS partial: columns = 180 only Boundary ✅ PTY 180x50, autoFit=false
3b TS minimum 1x1 Boundary ✅ PTY 1x1, autoFit=false
4a TS columns = 0 Unhappy ✅ aspire start exit 2, INVALID_ARGUMENT on Aspire.Hosting/withTerminal, producer not launched
4b TS rows = -5 Unhappy ✅ exit 2, INVALID_ARGUMENT, producer not launched
5 C# .WithTerminal(o => {Columns=160; Rows=40}), TreatWarningsAsErrors=true, no suppression Happy ✅ Built and started with no ASPIRETERMINAL001 error; PTY 160x40, autoFit=false
6 Python with_terminal(configure=...) using camelCase keys (columns/rows) Happy ✅ PTY 200x60, autoFit=false (required experimentalPolyglotPython; reverted afterward)

Overall Result

✅ PR VERIFIED - 10/10 scenarios behaved as specified, consistent with the author's report. Not exercised: Go/Java/Rust SDKs at runtime (covered only by the PR's executable generator tests), Linux/macOS PTY behavior.

Notes

  • No issues found.
  • An unrelated pre-existing AppHost (samples\apphost.mts, SDK 17.0.0-preview.1.26502.1) was already running on the machine and was left untouched.

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This all looks good and well. But I think the naming convention for Python should be different.

Preserve assignment-aware DTO callback writeback and retain AKS node pool callback regression coverage from main.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 3a95a878-d1d2-4e7b-9b15-5e2ef288eedf
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

55 / 100 PR test projects · 7 PR jobs, from 19 changed files.

Selected PR test projects (55 / 100)

Aspire.Cli.EndToEnd.Tests, Aspire.Cli.Tests, Aspire.Hosting.Analyzers.Tests, Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Kusto.Tests, Aspire.Hosting.Azure.Provisioning.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Browsers.Tests, Aspire.Hosting.CodeGeneration.Go.Tests, Aspire.Hosting.CodeGeneration.Java.Tests, Aspire.Hosting.CodeGeneration.Python.Tests, Aspire.Hosting.CodeGeneration.Rust.Tests, Aspire.Hosting.CodeGeneration.TypeScript.Tests, Aspire.Hosting.Containers.Tests, Aspire.Hosting.DevTunnels.Tests, Aspire.Hosting.Docker.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.EntityFrameworkCore.Tests, Aspire.Hosting.Foundry.Tests, Aspire.Hosting.Garnet.Tests, Aspire.Hosting.Go.Tests, Aspire.Hosting.Java.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Kafka.Tests, Aspire.Hosting.Keycloak.Tests, Aspire.Hosting.Kubernetes.Tests, Aspire.Hosting.Maui.Tests, Aspire.Hosting.Milvus.Tests, Aspire.Hosting.MongoDB.Tests, Aspire.Hosting.MySql.Tests, Aspire.Hosting.Native.Core.Tests, Aspire.Hosting.Nats.Tests, Aspire.Hosting.OpenAI.Tests, Aspire.Hosting.Oracle.Tests, Aspire.Hosting.Orleans.Tests, Aspire.Hosting.PostgreSQL.Tests, Aspire.Hosting.Python.Tests, Aspire.Hosting.Qdrant.Tests, Aspire.Hosting.RabbitMQ.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Redis.Tests, Aspire.Hosting.RemoteHost.Tests, Aspire.Hosting.Rust.Tests, Aspire.Hosting.Seq.Tests, Aspire.Hosting.SqlServer.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Hosting.Valkey.Tests, Aspire.Hosting.Yarp.Tests, Aspire.Managed.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests

Selected PR jobs (7)

cli-starter-validation, extension-e2e, homebrew-installer, polyglot, typescript-api-compat, typescript-sdk, winget-installer


How these were chosen — grouped by what changed

⚠️ 40 of the 55 selected test projects come from a single change — src/Aspire.Hosting/ApplicationModel/TerminalAnnotation.cs.

🔧 src/Aspire.Hosting/ApplicationModel/TerminalAnnotation.cs (changed source)
→ 40 via the project graph

show 40

Aspire.Hosting.Analyzers.Tests (2 hops), Aspire.Hosting.Azure.EntraId.Tests (2 hops), Aspire.Hosting.Azure.Kubernetes.Tests (2 hops), Aspire.Hosting.Azure.Kusto.Tests (2 hops), Aspire.Hosting.Azure.Provisioning.Tests (3 hops), Aspire.Hosting.Azure.Tests, Aspire.Hosting.Browsers.Tests (2 hops), Aspire.Hosting.Containers.Tests (2 hops), Aspire.Hosting.DevTunnels.Tests (2 hops), Aspire.Hosting.Docker.Tests (2 hops), Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.EntityFrameworkCore.Tests (2 hops), Aspire.Hosting.Foundry.Tests (2 hops), Aspire.Hosting.Garnet.Tests (2 hops), Aspire.Hosting.Go.Tests (2 hops), Aspire.Hosting.Java.Tests (2 hops), Aspire.Hosting.JavaScript.Tests (2 hops), Aspire.Hosting.Kafka.Tests (2 hops), Aspire.Hosting.Keycloak.Tests (2 hops), Aspire.Hosting.Kubernetes.Tests (2 hops), Aspire.Hosting.Maui.Tests, Aspire.Hosting.Milvus.Tests (2 hops), Aspire.Hosting.MongoDB.Tests (2 hops), Aspire.Hosting.MySql.Tests (2 hops), Aspire.Hosting.Nats.Tests (2 hops), Aspire.Hosting.OpenAI.Tests (2 hops), Aspire.Hosting.Oracle.Tests (2 hops), Aspire.Hosting.Orleans.Tests (2 hops), Aspire.Hosting.PostgreSQL.Tests (2 hops), Aspire.Hosting.Python.Tests (2 hops), Aspire.Hosting.Qdrant.Tests (2 hops), Aspire.Hosting.RabbitMQ.Tests (2 hops), Aspire.Hosting.Redis.Tests (2 hops), Aspire.Hosting.Rust.Tests (2 hops), Aspire.Hosting.Seq.Tests (2 hops), Aspire.Hosting.SqlServer.Tests (2 hops), Aspire.Hosting.Testing.Tests (2 hops), Aspire.Hosting.Valkey.Tests (2 hops), Aspire.Hosting.Yarp.Tests (2 hops), Aspire.Playground.Tests

🔧 src/Aspire.Hosting.CodeGeneration.TypeScript/Resources/transport.mts (changed source)
→ 2 directly: Aspire.Cli.EndToEnd.Tests, Aspire.Hosting.CodeGeneration.TypeScript.Tests
→ 3 via the project graph: Aspire.Cli.Tests (2 hops), Aspire.Hosting.Native.Core.Tests (2 hops), Aspire.Managed.Tests (2 hops)

🧪 tests/Aspire.Hosting.Tests/WithTerminalTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Tests
→ 3 via the project graph: Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.Radius.Tests

📦 affected project Aspire.Hosting.Dotnet
→ 2 tests: Aspire.Cli.EndToEnd.Tests, Aspire.Templates.Tests

📦 affected project Aspire.Hosting.CodeGeneration.TypeScript
→ 1 test: Aspire.Cli.EndToEnd.Tests

📦 affected project Aspire.Hosting.Native.Server
→ 1 test: Aspire.Cli.EndToEnd.Tests

🔧 src/Aspire.Hosting.CodeGeneration.Python/Aspire.Hosting.CodeGeneration.Python.csproj (changed source)
→ 1 directly: Aspire.Hosting.CodeGeneration.Python.Tests

🔧 src/Aspire.Hosting.CodeGeneration.Python/PythonModuleBuilder.cs (changed source)
→ 1 directly: Aspire.Hosting.CodeGeneration.Python.Tests

🔧 src/Aspire.Hosting.CodeGeneration.Rust/AtsRustCodeGenerator.cs (changed source)
→ 1 directly: Aspire.Hosting.CodeGeneration.Rust.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Go.Tests/AtsGoCodeGeneratorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Go.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Go.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.go (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Go.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Java.Tests/AtsJavaCodeGeneratorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Java.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Java.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.java (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Java.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Python.Tests/AtsPythonCodeGeneratorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Python.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Python.Tests/Snapshots/AtsGeneratedAspire.verified.py (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Python.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Python.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.py (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Python.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Rust.Tests/AtsRustCodeGeneratorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Rust.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Rust.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.rs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Rust.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.ts (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.TypeScript.Tests

🧪 tests/Aspire.Hosting.RemoteHost.Tests/CapabilityDispatcherTests.cs (changed test)
→ 1 directly: Aspire.Hosting.RemoteHost.Tests

Job reasons

Job Triggered by
cli-starter-validation • affected project Aspire.Hosting.Native.Server
• affected project Aspire.Hosting.CodeGeneration.TypeScript
extension-e2e • src/Aspire.Hosting.CodeGeneration.TypeScript/Resources/transport.mts, src/Aspire.Hosting/ApplicationModel/TerminalAnnotation.cs, src/Aspire.Hosting/TerminalResourceBuilderExtensions.cs
• affected project Aspire.Hosting.Native.Server
• affected project Aspire.Hosting.CodeGeneration.TypeScript
homebrew-installer affected project Aspire.Hosting.Native.Server
polyglot • affected project Aspire.Hosting.CodeGeneration.Python
• affected project Aspire.Hosting.Azure.Provisioning.KeyVault
typescript-api-compat affected project Aspire.Hosting.CodeGeneration.Python
typescript-sdk • tests/Aspire.Hosting.CodeGeneration.TypeScript.JsTests/tests/transport.test.ts
• affected project Aspire.Hosting.CodeGeneration.TypeScript
winget-installer affected project Aspire.Hosting.Native.Server

Selection computed for commit 4702b18.

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.

🔵 Needs a closer look

Shared callback-writeback changes affect SDK consumers beyond terminals and warrant final human review despite the reported validation.

No open issues 🎉

Review effort: Balanced

@mitchdenny
Mitch Denny (mitchdenny) merged commit 8f42fb9 into main Oct 27, 2026
577 of 583 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Oct 27, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Pull request created: #1959

Generated by PR Documentation Check · copilot · auto · 29.1 AIC · ⌖ 1.15 AIC · ⊞ 7.1K

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

📝 Documentation has been drafted in microsoft/aspire.dev#1959 targeting release/17.0.

Updated app-host/with-terminal.mdx and dashboard/terminals.mdx for the TypeScript withTerminal({ configure }) callback and removal of ASPIRETERMINAL001 from WithTerminal. Signals: polyglot_code_generator_changed (TypeScript/Python/Rust generators), pr_body_has_breaking_change_marker (Rust with_terminal(callback)), pr_body_has_cli_flag_mention, pr_body_has_user_facing_section (User-facing usage example).

Note

This draft PR needs human review before merging.

David Pine (IEvangelist) added a commit that referenced this pull request Oct 27, 2026
Resolve the single conflict, the Go two-pass-scanning snapshot (TwoPassScanningGeneratedAspire.verified.go), by regenerating it from the merged tree instead of hand-merging the 45K-line generated file. The regenerated snapshot picks up main's TerminalOptions DTO and WithTerminal(options ...*WithTerminalOptions) changes (#21116) rendered with this PR's godoc comments. Ignoring comment and blank lines it is identical to main's snapshot.

Co-authored-by: Copilot App <[email protected]>
Mitch Denny (mitchdenny) added a commit to microsoft/aspire.dev that referenced this pull request Nov 17, 2026
…pHosts (#1959)

Documents changes from microsoft/aspire#21116

Author: ``@davidfowl`` (source PR author per metadata; see source PR)

Targeting `release/17.0` based on the source PR milestone `17.0`
(`target_resolution`: `exact_match`).

## Why
The source PR exports the `WithTerminal` callback to TypeScript AppHosts
so columns and rows can be configured, and removes the
`ASPIRETERMINAL001` experimental diagnostic from `WithTerminal` and
`TerminalOptions`. The docs said TypeScript couldn't configure
dimensions and that `WithTerminal` was experimental.

## Changes (updated existing pages)
- `src/frontend/src/content/docs/app-host/with-terminal.mdx`: TypeScript
`configure` callback example and auto-fit behavior; replaced the
experimental caution with a note; removed the pragma from the C#
examples in that section.
- `src/frontend/src/content/docs/dashboard/terminals.mdx`: removed the
`ASPIRETERMINAL001` pragma from the `WithTerminal` C# example.

Note for the SME: other pragmas on pages that use AppHost-owned
terminals remain intentionally, and the replica example in
`with-terminal.mdx` may still carry one; please check.

> Generated by [PR Documentation
Check](https://github.com/microsoft/aspire/actions/runs/40473856476) for
#21116 · copilot · auto · 29.1 AIC · ⌖ 1.15 AIC · ⊞ 7.1K ·
[◷](https://github.com/search?q=repo%3Amicrosoft%2Faspire.dev+%22gh-aw-workflow-id%3A+pr-docs-check%22&type=pullrequests)

<!-- gh-aw-agentic-workflow: PR Documentation Check, engine: copilot,
model: auto, id: 40473856476, workflow_id: pr-docs-check, run:
https://github.com/microsoft/aspire/actions/runs/40473856476 -->

<!-- gh-aw-workflow-id: pr-docs-check -->
<!-- gh-aw-workflow-call-id: microsoft/aspire/pr-docs-check -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants