Skip to content

Update to TG 2.5.0-beta.1 - #30

Merged
tig merged 4 commits into
developfrom
tg25-port
Sep 4, 2026
Merged

tig merged 4 commits into
developfrom
tg25-port

Conversation

@tig

@tig tig commented Aug 22, 2026 •

Copy link
Copy Markdown
Member

⚠️ DO NOT MERGE with the pre-release pin in place

This PR pins public Terminal.Gui 2.5.0-develop.55 from nuget.org so PSTui can be validated ahead of the v2.5.0 tag. Before merging, once stable 2.5.x is on nuget.org:

  1. Update the Terminal.Gui pin to the public stable 2.5.x version in Directory.Packages.props
  2. Re-run build and tests and confirm Terminal.Gui restores from nuget.org
  3. Then merge

Do not vendor a local nupkg. The 5416 preview feed (local_packages/, tgui-pr-5416 nuget.config source) is already gone. The remaining nuget.config is the develop nuget.org source.


Summary

Retargets this PR from the vendored 2.5.0-tig-remove-cm-followup.2 pin to public 2.5.0-develop.55 as part of tui-cs/Terminal.Gui#5630 Workstream 4.

API breaks already fixed (kept):

  • ConfigurationManager.Enable / ConfigLocations → TuiConfigurationBuilder in Out-ConsoleGridView and Show-ObjectTree, passing the PowerShell session filesystem location as currentDirectory (pwsh does not sync process CWD with Set-Location)
  • TuiConfigurationTests pin CWD-relative ./.tui/ discovery

No View.Text or IAcceptTarget hits.

Validation

CI on this head: dotnet windows/macos/ubuntu green.

Refs: tui-cs/Terminal.Gui#5416, tui-cs/Terminal.Gui#5630.

tig and others added 3 commits August 22, 2026 17:21
…tionManager

Bump Terminal.Gui 2.4.10 -> 2.5.0-tig-remove-cm-followup.1, a preview build
of tui-cs/Terminal.Gui#5416 (ConfigurationManager removal), TEMP-vendored in
./local_packages via a "tgui-pr-5416" nuget.config source until 2.5.x ships
on nuget.org.

API migration:
- ConfigurationManager.AppName/Enable(ConfigLocations.All) ->
  new TuiConfigurationBuilder("<cmdlet>").ApplyToStaticFacades() in
  OutConsoleGridView and ShowObjectView (config is now also auto-applied at
  assembly load via TuiConfigurationBuilder.Shared).
- Drop the redundant Enable call in OutGridViewWindowIntegrationTests.

Part of the v2.5.0 ecosystem-validation gate (tui-cs/Terminal.Gui#5630).
Pattern precedent: tig/winprint#272.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BVbLXNzbus2MTXmiJDBErL
The vendored Terminal.Gui 2.5.0-tig-remove-cm-followup.1 was built from
tui-cs/Terminal.Gui@93c3b3d40, five commits behind the PR 5416 head, and
predated that branch's ultrareview fixes. In that build ./.tui/ config
paths resolve against AppContext.BaseDirectory (pwsh's install directory
for this module), so the GlobalCurrent and AppCurrent config locations
that 2.4.x resolved against the process working directory were silently
dead - contradicting the port's own comments.

Test-first fixes:
- New TuiConfigurationTests pin CWD-relative discovery of
  ./.tui/config.json and ./.tui/Out-ConsoleGridView.config.json (both
  failed against followup.1), explicit-currentDirectory discovery, and
  no-throw fallback on malformed config files.
- Re-vendor Terminal.Gui 2.5.0-tig-remove-cm-followup.2 built from the
  PR 5416 head (tui-cs/Terminal.Gui@e8aba4230) with an explicitly set
  version, so the stale-cache collision GitVersion caused (same
  followup.1 version for different commits) cannot recur.
- Pass the PowerShell session's current filesystem location
  (SessionState.Path.CurrentFileSystemLocation) through ApplicationData
  to TuiConfigurationBuilder's new currentDirectory parameter: pwsh does
  not sync the process working directory with Set-Location, so without
  this ./.tui/ discovery used wherever pwsh was launched, not where the
  user cd'd.

Verified: Invoke-Build -Configuration Release Clean, Build, Test - 82/82
xUnit, 20/20 Pester, 26 assemblies packaged; clean-cache restore from
./local_packages; in-host pwsh probe confirms ./.tui/<cmdlet>.config.json
now applies from the session's cd location.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BVbLXNzbus2MTXmiJDBErL
Swap the 5416 preview nupkg for nuget.org Terminal.Gui 2.5.0-develop.55.
Delete local_packages/ and the extra tgui-pr-5416 nuget.config source.

Co-authored-by: Tig <tig@users.noreply.github.com>
@cursor cursor Bot changed the title Update to TG 2.5.x (PR 5416 preview) Update to TG 2.5.0-develop.55 (do not merge) Sep 3, 2026
Swap the 2.5.0-develop.55 pin for nuget.org 2.5.0-beta.1.

Co-authored-by: Tig <tig@users.noreply.github.com>
@cursor cursor Bot changed the title Update to TG 2.5.0-develop.55 (do not merge) Update to TG 2.5.0-beta.1 Sep 3, 2026
@tig
tig merged commit 37a22f8 into develop Sep 4, 2026
3 checks passed
@tig
tig deleted the tg25-port branch September 4, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants