Skip to content

[docs] Document Console/Terminal view toggle for WithTerminal resources - #1438

Merged
David Pine (IEvangelist) merged 1 commit into
release/13.5from
docs/console-terminal-toggle-18574-6dba8bc63547214a
Aug 7, 2026
Merged

[docs] Document Console/Terminal view toggle for WithTerminal resources#1438
David Pine (IEvangelist) merged 1 commit into
release/13.5from
docs/console-terminal-toggle-18574-6dba8bc63547214a

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#18574

@IEvangelist

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

Why this is needed

PR 18574 changed the dashboard's ConsoleLogs page (src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor / .razor.cs) so that resources using WithTerminal() no longer have their Console Logs tab wholesale replaced by the terminal view. Instead, the page adds a new ConsoleLogsView enum (Console logs / Terminal) with a toolbar (⋯) menu toggle, defaults to Console logs so pre-PTY hosting messages are visible, and keeps both views mounted so switching never tears down either session.

This is a dashboard_user_facing_page_changed + new_public_type signal from the docs-check pipeline, and the existing docs (app-host/with-terminal.mdx, "View terminals in the dashboard" section) described the old behavior — the terminal outright replacing the Console Logs tab — which is now incorrect.

What changed

Updated src/frontend/src/content/docs/app-host/with-terminal.mdx:

  • Replaced the outdated claim that the Console Logs tab is "replaced by" a terminal session.
  • Described the new ⋯ menu toggle between Console logs and Terminal views.
  • Noted the default-to-Console-logs behavior (so early hosting/health messages are visible) and that switching resources resets to Console logs.
  • Added an Aside clarifying that view selection doesn't affect what's captured, only what's displayed.

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

Generated by PR Documentation Check · auto · 40.6 AIC · ⌖ 6.46 AIC · ⊞ 17.7K ·

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Aug 7, 2026
@IEvangelist
David Pine (IEvangelist) marked this pull request as ready for review August 7, 2026 05:16
Copilot AI lite review requested due to automatic review settings August 7, 2026 05:16

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

Validated against microsoft/aspire#18574. The Console logs/Terminal selector, default view, resource-switch reset, and dual-view lifetime behavior are documented accurately.

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 Aspire Dashboard Console logs / Terminal view toggle behavior on the Console Logs page, replacing the previously documented “terminal replaces console logs” behavior.

Changes:

  • Rewrites the “View terminals in the dashboard” section to describe the new view-toggle UI (Console logs vs Terminal).
  • Adds guidance about view switching behavior and an Aside clarifying that the toggle affects display only, not capture/streaming.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

When a resource has `WithTerminal` applied, its **Console Logs** tab in the [Aspire dashboard](/dashboard/overview/) is replaced by a live terminal session. You can drive the running process directly in the browser without leaving the dashboard. For example, you can type commands, scroll the scrollback buffer, and switch between replicas. Each replica appears as its own entry (for example, `agent-r0`, `agent-r1`, `agent-r2`) with an independent session.
When a resource has `WithTerminal` applied, its **Console Logs** page in the [Aspire dashboard](/dashboard/overview/) gains a live terminal session alongside the usual console log stream. You can drive the running process directly in the browser without leaving the dashboard. For example, you can type commands, scroll the scrollback buffer, and switch between replicas. Each replica appears as its own entry (for example, `agent-r0`, `agent-r1`, `agent-r2`) with an independent session.

The page defaults to the **Console logs** view so that hosting messages—such as "Waiting for resource X to become healthy..." or a startup failure—are visible immediately, even before the terminal's PTY has attached. Open the toolbar's options (⋯) menu and choose **Terminal** to switch to the interactive terminal view, or choose **Console logs** to switch back. Both views stay live while you're on the page: switching between them never tears down the terminal session or loses console log scrollback, and selecting a different resource resets the page back to the **Console logs** view.
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

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

VS Code: Open PR #1438 artifacts

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

@IEvangelist
David Pine (IEvangelist) merged commit b78d22b into release/13.5 Aug 7, 2026
11 of 12 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the docs/console-terminal-toggle-18574-6dba8bc63547214a branch August 7, 2026 05:45
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