Repository navigation
Add the UniGetUI terminal UI (TUI) - #5447
Merged
Marc-André Moreau (mamoreau-devolutions) merged 7 commits intoOct 6, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Operation batching, proxy handling, secure-setting updates, OAuth polling, input replacement, and trimming configuration contain unresolved correctness issues.
Review effort: Balanced
Findings: 10
Open (11)
HTTPS proxy environment variable is not configured · New GitHub OAuth errors are misread as pending tokens · New Value-taking flags do not validate missing operands · New Sanitized replacement does not replace selected text · New Retries can persist the next run's status · New Batch summaries include operations from earlier batches · New Update operations are not detected before uninstall/install · New Privileged cache update is repeated in the parent process · New Nonzero repair exit codes are reported as success · New Broad assembly roots violate NativeAOT trimming requirements · New Keyboard reference text bypasses localization · New
Marc-André Moreau (mamoreau-devolutions)
marked this pull request as draft
September 29, 2026 17:28
A Consolonia (Avalonia 12 in the console) front-end for the UniGetUI engine, in src/UniGetUI.Tui, with feature parity with the desktop app and end-to-end tests on fake data. See docs/TUI.md. - Pages: Discover, Updates, Installed, Bundles, Operations, Managers, Settings (with search), Logs and History as numbered tabs; Help (F1) and About as dialogs. Code-only UI, dialogs as in-window overlays. - Layout: framed page header with Mode / Sources / Sort chips (clickable; F3 for the search mode), split details / actions panel, function-key bar. - Keyboard: Alt+letter menu bar, Alt+1-9 / Ctrl+Tab pages, focus always in the page; AltGr text and ConPTY clipboard fixes. - Themes: 16 colour themes switchable live and saved (TuiTheme setting, --theme); Devolutions Graphite (default), Black, Light, Dark Blue, Blue, Gray and High contrast follow the RDM colour tokens; WCAG contrast is tested. - Fake data mode (--fake-data): sandboxed data, fake package managers backed by a JSON state file, fake elevator, downloads and cloud backup; nothing real is installed. Consolonia.NUnit E2E tests drive the real UI with it. - Release publishes are NativeAOT (about 3x faster startup than ReadyToRun): compiled grid bindings, Consolonia kept untrimmed, no Skia, translations and data embedded (new BundledAssets helper in UniGetUI.Core.Data, disk first). The publish is UniGetUI.Tui.exe, e_sqlite3.dll, the WinGet .winmd and the PowerShell operation launcher. - Scoop install / uninstall / cleanup run as TUI operations instead of the desktop app's .cmd scripts. - Pin SQLitePCLRaw.bundle_e_sqlite3 2.1.13 in the WinGet manager to fix GHSA-2m69-gcr7-jv3q (CVE-2025-6965); remove once Pinget.Core moves up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…notification per run The Add source prompt for Chocolatey, PowerShell, PowerShell7 and .NET Tool now asks for a URL or a folder (local path or network share), matching #5435. A running operation reports Canceled twice (Cancel() and again when the run winds down), so the registry now shows "Operation canceled" once per run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MetaTests.TestJsonSerializationOptions counts trim-safe metadata per line, and the calls using FakeStateJsonContext.Default.FakeState directly didn't match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use Consolonia's NativeAOT fixes without whole-assembly roots, adapt its per-test NUnit lifecycle, and require review before importing high-risk bundles after the mainline security-report changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Marc-André Moreau (mamoreau-devolutions)
force-pushed
the
tui-terminal-ui-spike
branch
from
October 5, 2026 23:54
232c3ab to
35755ea
Compare
Marc-André Moreau (mamoreau-devolutions)
marked this pull request as ready for review
October 6, 2026 02:53
Host the TUI as a main-executable command, preserve fake-data subprocesses and installer guards, harden CLI parsing and secure settings, and document blocking PowerShell launch. Add main-host regressions and remove build numbers from TUI version displays. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Correct proxy handling, OAuth polling, selected paste, operation history and batch summaries, pending-operation roles, repair failures, and localized help. Add deterministic regression coverage and a user-oriented terminal guide. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Marc-André Moreau (mamoreau-devolutions)
approved these changes
Oct 6, 2026
Marc-André Moreau (mamoreau-devolutions)
merged commit Oct 6, 2026
925be42
into
main
6 checks passed
Marc-André Moreau (mamoreau-devolutions)
deleted the
tui-terminal-ui-spike
branch
October 6, 2026 12:06
Gabriel Dufresne (GabrielDuf)
added a commit
that referenced
this pull request
Oct 6, 2026
Resolves the overlap with #5447's SQLitePCLRaw pin. Pinget.Core 0.13.0 still depends on Microsoft.Data.Sqlite 10.0.7, which still brings SQLitePCLRaw.bundle_e_sqlite3 2.1.11, so the pin to the patched 2.1.13 stays; only the version named in its comment moves to 0.13.0. Restore resolves Devolutions.Pinget.Core/0.13.0 alongside SQLitePCLRaw.bundle_e_sqlite3/2.1.13 with no NU1903.
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.


If the same issue can be reproduced outside UniGetUI with the relevant package manager or with the package itself, please report it there first. UniGetUI should only be used to track issues that are specific to UniGetUI's behavior or integration.
Summary
This PR adds
UniGetUI.Tui, a terminal front end for the UniGetUI package engine. It is built with Consolonia, which renders Avalonia 12 in a console. It uses the same engine as the desktop app and shares its settings, secure settings, install options, ignored updates, bundles and operation history, so a change made in one app shows up in the other.docs/TUI.mddocuments it.Pages. The TUI has the same pages as the desktop app, reached from a tab strip:
Keyboard and themes.
--theme <id>uses a theme for one session without saving it. A test checks WCAG contrast for every theme.Fake data mode.
--fake-datareplaces every package manager with a fake one and redirects all state into a sandbox. Operations run a fake package-manager process, so the full flows can be exercised (install, update, cancel, retry, add and remove sources, Scoop maintenance) without installing anything.Publishing. Release publishes are NativeAOT and trimmed:
UniGetUI.Tui.exe,e_sqlite3.dll,Microsoft.Management.Deployment.winmd(needed for WinGet COM activation) andAssets\Utilities\unigetui_ps_operation.ps1.BundledAssetsinUniGetUI.Core.Data. It reads from disk first, so the desktop app behaves as before.--help(start to exit)Changes outside the TUI.
BundledAssets(new) is now used byLanguageEngine,LanguageDataandContributors.SettingsEngine_Names.cs.SQLitePCLRaw.bundle_e_sqlite3is bumped to 2.1.13 in the WinGet manager (GHSA-2m69-gcr7-jv3q).AGENTS.mdgets a TUI section.Follow-ups from recent main commits.
Cancel()and the end of the run each reported it once.Testing
UniGetUI.Tui.Tests: 93 tests pass. They are NUnit tests, including end-to-end tests that drive the real UI in fake data mode.dotnet format whitespaceanddotnet format style --verify-no-changesare clean.Known limitations
-m:1avoids it.🤖 Generated with Claude Code