Skip to content

[docs] Document WithTerminal Columns/Rows validation - #1479

Merged
David Pine (IEvangelist) merged 3 commits into
release/13.5from
docs/pr-18992-31566159352-1-e5ffd026f0c8721b
Aug 14, 2026
Merged

[docs] Document WithTerminal Columns/Rows validation#1479
David Pine (IEvangelist) merged 3 commits into
release/13.5from
docs/pr-18992-31566159352-1-e5ffd026f0c8721b

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#18992

@mitchdenny

Targeting release/13.5 based on the source PR milestone 13.5.

Why

microsoft/aspire#18992 adds fail-fast validation to TerminalOptions.Columns and TerminalOptions.Rows: setting either to zero or a negative value now throws an ArgumentOutOfRangeException immediately at the WithTerminal() call site, instead of surfacing later as an opaque Aspire.TerminalHost startup failure (the host's --columns/--rows validators require >= 1). Valid usage (including the boundary value 1) is unchanged.

The Configure the terminal section of the WithTerminal docs page already documents the Columns/Rows options and their defaults, but didn't mention this new validation behavior.

What changed

  • src/frontend/src/content/docs/app-host/with-terminal.mdx: added a note under the options table stating that Columns/Rows must be 1 or greater and that invalid values throw ArgumentOutOfRangeException at configuration time.

No new pages were created; this is a targeted update to an existing page.

Generated by PR Documentation Check · auto · 34.3 AIC · ⌖ 7.94 AIC · ⊞ 19.6K ·

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Aug 12, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1479. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1479 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@IEvangelist
David Pine (IEvangelist) marked this pull request as ready for review August 12, 2026 06:02
Copilot AI lite review requested due to automatic review settings August 12, 2026 06:02

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.

Pull request overview

Updates the WithTerminal documentation to reflect the new fail-fast validation for terminal grid sizing options (Columns/Rows) introduced in the main Aspire repo, so users learn about the >= 1 constraint and the earlier exception behavior.

Changes:

  • Added a note clarifying that Columns and Rows must be 1 or greater.
  • Documented that invalid values throw an exception during terminal configuration rather than later during terminal-host startup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

| `ShowTerminalHost` | `false` | Whether the hidden per-replica terminal host resources appear in the dashboard and CLI resource lists. Set to `true` to diagnose terminal-host startup or connectivity issues. |

<Aside type="note">
`Columns` and `Rows` must each be `1` or greater. Setting either to zero or a negative value throws an `ArgumentOutOfRangeException` immediately when you set the option, rather than surfacing later as an opaque terminal-host startup failure.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 32c349b4-907d-42e9-aad8-2f0edc267779

@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.

Docs accuracy review — automated (Phase A + Phase B)

Verdict: APPROVE — the single behavioral claim is exact against the source, and the page renders cleanly.

  • Phase A source of truth: microsoft/aspire release/13.5 @ 8ab6999850d96e0023670799edbd4bdc245ad63c
  • Claims extracted: 1 — ✅ verified: 1, 🟡 verified-with-nuance: 0, ⚪ unverifiable: 0, ❌ contradicted: 0
  • Phase B (doc-tester): exercised /app-host/with-terminal/0 critical, 0 warnings; page renders (HTTP 200, 0 console errors).

This PR adds an <Aside> documenting that Columns and Rows must be 1 or greater and that invalid values throw ArgumentOutOfRangeException from the WithTerminal(...) callback. That is exactly what the source does.

Phase A — Claim verification

No contradicted or unverifiable claims — no blocking inline comments. Evidence below.

Verified claims (1)
ID PR location Claim Verdict Evidence (microsoft/aspire @ 8ab6999850)
A1 Aside (new L79–81) Columns and Rows must each be 1 or greater; a zero or negative value set in the WithTerminal(...) callback throws ArgumentOutOfRangeException immediately, rather than failing later at terminal-host startup. ✅ verified src/Aspire.Hosting/ApplicationModel/TerminalAnnotation.cs — the Columns setter (L106–114) and Rows setter (L120–128) both call ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value); the XML docs state "The value must be greater than zero" and <exception cref="ArgumentOutOfRangeException">Thrown when set to zero or a negative value.</exception>. src/Aspire.Hosting/TerminalResourceBuilderExtensions.cs L78–79 invokes the callback synchronously (var options = new TerminalOptions(); configure?.Invoke(options);) during WithTerminal(...), so the throw happens at app-model build time — "immediately", not during host startup. Exception type, the >= 1 bound, and the timing all match.

Phase B — Doc-tester results (blind user, no source access)

Routes exercised: /app-host/with-terminal/ (the only route affected by this PR's diff).

Critical issues: none.

Warnings: none.

Passed checks:

  • Page compiles and renders (HTTP 200) with 0 console errors / 0 warnings.
  • The new note renders as a standard Starlight <Aside type="note"> immediately after the terminal-options table and reads clearly: "Columns and Rows must each be 1 or greater. Configuring either with zero or a negative value in the WithTerminal(...) callback throws an ArgumentOutOfRangeException immediately instead of failing later during terminal-host startup."

Recommendations: none.

Knowledge gaps: none that affect this PR's changed content.

Test-environment note: the with-terminal page is new on release/13.5 and is not yet present on this review worktree's base branch, so its sidebar-topic registration was added locally only to render the page. That scaffolding was reverted afterward and is not part of the PR; it did not alter the page body under test.

@IEvangelist
David Pine (IEvangelist) enabled auto-merge (squash) August 14, 2026 16:01
@IEvangelist
David Pine (IEvangelist) merged commit 6141cfe into release/13.5 Aug 14, 2026
10 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the docs/pr-18992-31566159352-1-e5ffd026f0c8721b branch August 14, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants