Repository navigation
Link-check doc-drift fixes before committing them, and clear the Node 20 and Terminal.Gui warnings - #639
Merged
Conversation
… 20 and Terminal.Gui warnings Layer 1 (scripts/check-doc-links.py) gates doc/ on every PR through build-docs.yml, but never on the doc-drift PR: GitHub suppresses pull_request workflows for PRs created with GITHUB_TOKEN, so the one doc change nobody writes by hand is also the one no link check ever sees. Run the same lint inside open-pr instead, which is stronger than the check it stands in for — it refuses to commit a dead link rather than annotating one already on the branch. Baselined before the patch so breakage inherited from main is reported as inherited; a nightly that misattributes its failures is one people learn to ignore. The runner's Node 20 deprecation notice pointed at actions/upload-artifact@v4, which no workflow here references. It comes in transitively: upload-pages-artifact@v3 is a composite that calls it. v5 pins upload-artifact@v7 (Node 24). Nothing else in the repo is on a Node 20 action. Terminal.Gui 2.4 deprecated the static Application gateway. Application.Create().Init() returns the IApplication that replaces it and disposing it does what Shutdown() did, so the try/finally becomes a using. All five calls move together because ApplicationImpl refuses to mix the two models (ERROR_LEGACY_AFTER_MODERN). FlagTree.Toggle is renamed ToggleFlag — it is a callback field colliding with TreeView<T>.Toggle(T?), and the concepts differ, so `new` would have been the wrong fix. Typhon.Shell now builds with 0 warnings; note no test covers TelemetryEditor, so the TUI is verified by compilation only. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019edYt6pHPKFqVcsDpJ7v9x
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.
Three small follow-ups from run 30691086389, which was green but noisy.
Layer 1 never sees the doc-drift PR. GitHub suppresses
pull_requestworkflows for PRs created withGITHUB_TOKEN, so the nightly's own PR is the one doc change in the repo thatscripts/check-doc-links.pynever runs against. Rather than plumbing a PAT or aworkflow_runtrigger to route around the recursion guard,open-prnow runs the same lint directly — which is stronger than the check it stands in for, because it refuses to commit a dead link instead of annotating one already on the branch. Baselined before the patch so breakage inherited frommainis reported as inherited; a nightly that misattributes its own failures is one people learn to ignore.Node 20 deprecation. The runner's annotation named
actions/upload-artifact@v4, which no workflow here references — it arrives transitively, sinceupload-pages-artifact@v3is a composite that calls it.@v5pinsupload-artifact@v7(Node 24), confirmed by reading v5'saction.yml. Nothing else in the repo is on a Node 20 action.Six compiler warnings in
Typhon.Shell. Terminal.Gui 2.4 deprecated the staticApplicationgateway;Application.Create().Init()returns theIApplicationthat replaces it, and disposing it does whatShutdown()did, so thetry/finallybecomes ausing. All five calls move together becauseApplicationImplrefuses to mix the two models (ERROR_LEGACY_AFTER_MODERN) — a half-migrated file fails at runtime, not compile time.FlagTree.TogglebecomesToggleFlag: it is a callback field colliding withTreeView<T>.Toggle(T?), and since the concepts differ (base expands a node, ours flips a flag's value)newwould have been the wrong fix. Rewritingtry {asusing (…) {kept the ~130-line body's indentation, so the diff is the eight lines that actually changed.Typhon.Shellnow builds 0 warnings, 0 errors (was 6). Shell tests 22/22.Not verified: no test covers
TelemetryEditor— the shell suite covers docs, scaffold, telemetry-file and ui commands only, so the TUI change is verified by compilation and the vendor's documented pattern, not by execution. Worth a manualtyphon telemetry editbefore this is trusted: it should open, Space should toggle a flag,ssave,qcancel, and the terminal should be restored on exit.