Skip to content

fix(flow): scope exploration context to the selected root - #453

Merged
byronwall merged 1 commit into
mainfrom
fix/ux007-repo-flow-context
Nov 22, 2026
Merged

byronwall merged 1 commit into
mainfrom
fix/ux007-repo-flow-context

Conversation

@byronwall

@byronwall byronwall commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Fixes #446.

  • A folder picker move starts Flow with an empty route/anchor selection in the new root; it clears old route lens, focus and expansion ids. The old URL entry stays intact for Back. Links with no prior root keep their original place.
  • Scan UI and source viewer only render against the URL's requested root. During a root move (including Back/Forward) old scan and graph ownership end rather than temporarily mixing the old tree with the new URL.
  • Empty Flow inventory offers expression tracing; an actual error replaces the empty/progress message rather than overlaying it.

The Playwright cases switch between solid-route and route-less bad-ish-solid via the real folder picker from both a route and a source anchor. They hold the original request until the new root renders, release a late error, check no old-request effect or mismatched endpoint, then exercise Back and Forward. No engine or frontier changes.

./scripts/check.sh client passed (typecheck + 497 tests). Browser suite requires GitHub Chromium: local Chromium in this environment has a sandbox-denied process-singleton socket. No local browser pass claimed.

Survey moves: The Flow root-ownership and request-state guards change the client source being analyzed. CI reports exactly two stop-count moves in that corpus: boundary: unproven-handoff 65 → 67 (+2) and frontier: disconnected 263 → 261 (−2). All 634 trace outcomes are unchanged; no moves in the server or fixture corpus, no new trace errors or timing failures, and no engine analysis changes.

@byronwall
byronwall marked this pull request as ready for review November 22, 2026 21:08
@byronwall
byronwall enabled auto-merge (squash) November 22, 2026 21:08
@byronwall
byronwall merged commit 2cad365 into main Nov 22, 2026
9 of 10 checks passed
@byronwall
byronwall deleted the fix/ux007-repo-flow-context branch November 22, 2026 21:12
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.

Clear or restore Flow context by repository when switching roots

1 participant