[docs] Document Console/Terminal view toggle for WithTerminal resources - #1438
Conversation
David Pine (IEvangelist)
left a comment
There was a problem hiding this comment.
Validated against microsoft/aspire#18574. The Console logs/Terminal selector, default view, resource-switch reset, and dual-view lifetime behavior are documented accurately.
There was a problem hiding this comment.
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. |
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
Documents changes from microsoft/aspire#18574
@IEvangelistTargeting
release/13.5based on the source PR milestone13.5.Why this is needed
PR 18574 changed the dashboard's
ConsoleLogspage (src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor/.razor.cs) so that resources usingWithTerminal()no longer have their Console Logs tab wholesale replaced by the terminal view. Instead, the page adds a newConsoleLogsViewenum (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_typesignal 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:Asideclarifying 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.