Repository navigation
fix(web): harden recovery and preview reliability - #893
Merged
Merged
Conversation
tt-a1i
added a commit
that referenced
this pull request
Oct 22, 2026
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.
Problem
Real Web acceptance exposed recovery paths that could leave controls blocked, restore stale state, lose a queued refresh, or hide incomplete content. Examples include a failed archive refresh losing Undo, a focus refresh arriving during Git pagination being dropped, and XLSX preview limits silently displaying omitted cells as blank. Large subagent details could also lose the identity needed to render their result card.
The Web UI lacked a way to distinguish the backend's startup source from the currently loaded page build when diagnosing these failures.
Value
Users retain their current Session, confirmed settings, and retry paths after delayed or failed operations. Previews report their limits, and operators can inspect the runtime and page identities used for acceptance. Terminal dependencies load only when the terminal is opened.
Approach
Validation
e5dba44faa0a16f57fc19b3a6b62f20d25c1c559; base:ea4dfb993793ccdb093229588b6ccd3467afd90a(main), with no intervening base commits at PR preparation.bun run checkpassed, including Web build, formatting, lint, and type checks.bun run testpassed: 2,367 Node tests, 8 skipped; 1,583 Web tests across 103 files.Latest CI follow-up:
ce08a149replaces string equality for real package paths with platform-awarepath.relative, and exercises a lower-case Windows drive spelling. Terminal-loading fixtures preload the real terminal once and wait for the loader factory event, avoiding repeated cold graph loads and the 1-second DOM polling race while retaining focus, unmount, failure and close assertions. Localbun run check, runtime diagnostics tests (2), and terminal-loading tests (5) passed. Follow-up4b0a084buses native realpath to resolve Windows 8.3 aliases (such as RUNNER~1) before comparison. Local runtime tests passed again, and the previously failing Windows parallel 2/2 and Ubuntu Node 22 UI jobs now pass on the latest head. All checks on4b0a084bsubsequently passed, including both browser shards and Windows UI; the failed provisioning step and Windows test timeout were rerun without weakening tests.Latest-main integration:
31bb7b9cmerges maina218ded6(#895). Source files merged automatically; the generated application bundle was rebuilt from both source trees. Localbun run checkandbun run testpassed again (UI: 103 files, 1584 tests); remote checks on this updated head are in progress.Impact
/api/diagnosticsadds startup metadata; it samples the package source once and does not attest to every loaded module or refresh after reload.build-info.jsonand embedded build identity.