Skip to content

Route a clicked terminal path by the checkout that owns it, coalesce wheel scrolls, and resolve pane roots off the runtime lock - #16

Merged
yansfil merged 1 commit into
mainfrom
integrate/paths-and-tab-perf
Sep 6, 2026
Merged

yansfil merged 1 commit into
mainfrom
integrate/paths-and-tab-perf

Conversation

@yansfil

@yansfil yansfil commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

What changed, in one paragraph a new contributor can follow

A clicked terminal path now takes one of five branches chosen by the longest registered checkout it sits under: a file or folder inside a checkout becomes one core reveal event that opens the explorer down to it, a file or folder outside every checkout is handed to macOS, and anything that opening would execute (an executable, an app bundle, an installer) is selected in Finder instead of run, because link detection is a guess over arbitrary agent output. Wheel scrolls are coalesced per frame and the core bounds how much terminal output it keeps attached, which is the paths-and-tab-perf PRD already on main. Pane roots are resolved before the runtime lock instead of forking git per tab under it, which was the 2026-09-06 root cause of the app feeling slower than the Herdr TUI. A failed fork is reported on its pane rather than in a dialog, and a forked agent's name is one Herdr accepts. The shell-side directory destination model that PR #11 added (TerminalDirectoryDestination, openDirectory, ExternalFinder) is deleted in favour of the checkout route, so one model decides where a path opens; PR #11's wrapped-path joining in the terminal stays. Second of four integration pull requests, after #15.

Review boundary

  • Runtime mutex: removes a git fork that ran per tab under the lock; pane roots are now resolved by the coordinator and passed in. Nothing new is held under it.
  • Snapshot wire: the reveal is an event in, not a field out. The pending terminal buffer is bounded, so a burst cannot grow the attached stream without limit.
  • Ownership: a checkout reveal is a core-owned change (panel visibility, expanded and selected paths) and moves ahead of Herdr; a click never touches a Herdr-owned value.
  • Herdr contract: no new method, parameter or field.
  • Failure path: a path that resolves to nothing does nothing and is traced as unresolved; an external open that macOS refuses shows its reason in the interaction notice and marks terminal.link.failed; a fork failure appears on the pane that asked for it.

Evidence

  • Verified by: cargo test --locked (346 core tests pass), swift test (253 tests pass), all seven structural checks and check-typed-contract-structure.py run locally on this branch.
  • Not verified (and why): one FFI contract test, multi_pane_terminal_session_destroy_releases_and_reaps_children, failed once in the full parallel run with "destroy waited 345ms for terminal session children" and passed twice alone; it is a timing threshold under load in a test this branch does not touch, and is noted here rather than hidden. No fresh screenshot of the explorer reveal on this branch; the route was exercised on the line it comes from and the visual pass is repeated once the four integration pull requests are on main.

Screenshots

Not captured for this integration pass; see Evidence.

AI tooling

The conflict resolution between PR #11's directory model and the checkout route, and this description, were produced with AI tooling. Every verify lane was run locally afterwards and each resolved hunk was read against both parents.

…wheel scrolls, and resolve pane roots off the runtime lock

A clicked path takes one of five branches decided by the longest registered
checkout it sits under: a checkout file or folder becomes one core reveal
event, an external file or folder goes to macOS, and anything opening would
execute is selected in Finder instead. Wheel scrolls are coalesced per frame
and the core bounds what it keeps attached. Pane roots are resolved before the
runtime lock instead of forking git per tab under it. A failed fork is reported
on its pane rather than in a dialog, and a forked agent's name is one Herdr
accepts. The shell-side directory destination model that the verify-gate line
had added is replaced by the checkout route, so one model decides where a
path opens.
@yansfil
yansfil merged commit 71fcb39 into main Sep 6, 2026
4 checks passed
@yansfil
yansfil deleted the integrate/paths-and-tab-perf branch September 6, 2026 09:25
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.

1 participant