Repository navigation
Conversation
The live display rendered inline with a height that followed its content: a second CliTracker in the same process started a new live area below the first, old frames stayed in the scrollback, the panes were often only part of the window high and grew as content arrived, the columns split the width evenly so long log lines were clipped, and a resized window left cut-off borders behind. On an interactive ANSI terminal the display now uses the alternate screen buffer and fills the whole window. Every frame positions each line explicitly, and the screen is cleared and redrawn when the window size changes. The status column gets the width its table needs (at most three fifths, only growing during a run so the columns don't shift), the log pane the rest; log lines wrap to the pane width and only the newest lines that fit are kept. Output written to the console meanwhile is captured, shown in the log pane and written to the normal screen afterwards. When the display stops it restores the normal screen and writes the final state there once, so each tracker leaves exactly one result behind. Redirected output and consoles without ANSI support keep the inline display, now with the same column sizing and wrapping. New: CliTracker.FullScreen and LiveActivityRenderer.FullScreen (default true) to opt out of the full-screen display. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On GitHub Actions the default profile enrichers set Interactive to false, so the full-screen tests saw a non-interactive console and failed there only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bugs
Seen in a build tool that uses
CliTrackeron Windows Terminal (PowerShell 7):AutoClear(false). A secondCliTrackerin the same process (e.g. a "stage" tracker followed by a "publish" tracker) starts a new live area below the first one; old frames stay in the scrollback and you can scroll up into them.psqloutput) are clipped, and after resizing the window the panel borders get cut off on the left because nothing redraws on resize.Fix
On an interactive ANSI terminal (
Ansi && Interactive && Profile.Out.IsTerminal) the display now runs full screen:ESC[?1049h), clears it and hides the cursor, and fills the whole window. When it stops it switches back (ESC[?1049l) and writes the final state to the normal screen once, so the result stays visible and each tracker leaves exactly one copy behind. A second tracker starts on a clean screen. AProcessExithandler restores the normal screen if the process exits while the display is up.ESC[row;1H), so neither line-break handling nor a full last line can scroll the screen. The refresh loop comparesProfile.Width/Heightwith the previous frame and clears and redraws on resize.RunExclusive, like Spectre's own live display, so a prompt during the display fails as before instead of being hidden. Other writes to the console while it runs are captured by a render hook, shown in the log pane, and written to the normal screen before the final state, so nothing is lost in the alternate screen.Redirected output (CI logs, files) and consoles without ANSI support keep the inline Spectre live display, now with the same column sizing and wrapping.
Small extra: log timestamps use
HH:mm:ssinstead of the 12-hourhh:mm:ss.Public API
Additive only (minor version):
CliTracker.FullScreen { get; init; }(defaulttrue)LiveActivityRenderer.FullScreen { get; set; }(defaulttrue)Setting it to
falsekeeps the inline display.docs/guide.mddescribes the behaviour and the opt-out.Testing
dotnet build Terminator.slnanddotnet test --solution Terminator.slnpass on net8.0, net9.0 and net10.0 (168 tests). New tests inLiveActivityRendererTests:FullScreen = falsestay inlineThe existing inline tests from #31 still pass unchanged. The visual behaviour in a real terminal (Windows Terminal, resize, scrollback) was not checked by hand yet.
🤖 Generated with Claude Code