You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tui): resolve links while session location loads - #1
Follow-up to anomalyco#55769; fixesanomalyco#54816 together with the parent PR. This targets your local-file-links branch and preserves your existing commits.
Type of change
Bug fix
New feature
Refactor / code improvement
Documentation
What does this PR do?
While Location metadata is loading, the transcript can already be clicked. Relative links then fall back to the launch directory, even though the session's directory is available in location.ref.
Use that reference before falling back to cwd. Add full-app tests clicking [Скачать обновлённую картинку](artifacts/lms-roadmap.png) with loaded and pending metadata. They exercise the real renderer and opening path, intercepting only the final OS launcher, and check exactly-once default-handler dispatch plus HTTPS.
How did you verify your code works?
Reproduced the wrong-directory failure before the fix. Restoring the original HTTP-only handler also fails both regression cases.
30 focused test repetitions, all 143 util tests, package typechecks, and root bun run check pass on macOS with Bun 1.4.4.
Full TUI suite: 1,552 pass, two skip, one existing go-upsell-art failure, independently reproduced with the parent PR's production source. Root check has existing warnings.
Merged unchanged into upstream dev 97a71f0cc624f128906224ca73d9e4016b43fde0 in a separate checkout: no conflicts, 13 targeted tests and root check pass.
Native Warp/Ghostty smoke is unverified: automation failed macOS Accessibility window access. No actual viewer launch is claimed. Windows/Linux execution has not been performed locally.
Thanks — the diagnosis is right, and this is now in local-file-links.
I cherry-picked 886e445eb (authorship preserved) into the branch behind anomalyco#55769 rather than merging the PR, so the upstream history stays linear. Then I merged current dev (d5ea1ee67) and pushed c4cd2040c.
One addition: I extended the launcher assertion for WSL. On WSL, open goes through PowerShell and converts the target with wslpath -aw, so the test now asserts that form instead of expecting xdg-open. With that, both cases pass locally: --rerun-each 5 is 10/10, test/ui/link.test.tsx is 2/2, src/open.test.ts is 11/11, and root bun run check is 35/35.
The fork's build, unit, and affected packages jobs target Blacksmith runners that only exist in the upstream org, so they queue and get cancelled after 24 hours here. That is not a failure from this change; the upstream checks on anomalyco#55769 will run on the updated branch. Closing this in favor of the upstream PR.
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
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.
Issue for this PR
Follow-up to anomalyco#55769; fixes anomalyco#54816 together with the parent PR. This targets your
local-file-linksbranch and preserves your existing commits.Type of change
What does this PR do?
While Location metadata is loading, the transcript can already be clicked. Relative links then fall back to the launch directory, even though the session's directory is available in
location.ref.Use that reference before falling back to cwd. Add full-app tests clicking
[Скачать обновлённую картинку](artifacts/lms-roadmap.png)with loaded and pending metadata. They exercise the real renderer and opening path, intercepting only the final OS launcher, and check exactly-once default-handler dispatch plus HTTPS.How did you verify your code works?
bun run checkpass on macOS with Bun 1.4.4.go-upsell-artfailure, independently reproduced with the parent PR's production source. Root check has existing warnings.97a71f0cc624f128906224ca73d9e4016b43fde0in a separate checkout: no conflicts, 13 targeted tests and root check pass.Visual
Screenshots / recordings
No native capture: blocked by macOS Accessibility access. The change does not alter layout.
Checklist