Repository navigation
to-human: a row folded off the window no longer pulls the report down (0.3.2) - #300
Conversation
… (0.3.2) The fullscreen transcript holds a row that is off its window at the height it last laid out, and lets go of it as the row scrolls back in at the window's top edge, where nothing corrects the scroll: a row the view folded while off the window collapses there and the report jumps down, step after step, as the person scrolls up. Two of the view's own triggers are gone. A module that starts over in a running session (an update the reload applied, a typed /reload-plugins) answered every row as the engine draws it until it drew a mark, then folded them, leaving the rows above the window held at full height, and rebuilt no order, so rows drawn later stood after all the others. Before its first answer the module now reads once whether the conversation holds a mark and where the transcript's rows stand, its file found by the session's id (subsuming the reload line's own check). A read its dispatch's abort cuts short is made again by the hooks still waiting. A [ fold to report ] press, made at a long run's end, folded the run's rows above the window while off it. The press now brings the run's button into view on the terminal, so every row that folds stands in the window or below. Measured live (140x45 fullscreen, haiku, a resumed 4309-row transcript, wheel steps up): a typed /reload-plugins 18 jumps of up to 27 lines -> 0 in 120; unfold a long run and fold it at its end 3 jumps of up to 27 -> 0 in 150. Unchanged, the engine's: a resume's first pass (12 of up to 4 lines) and the band's switch back to the report (14 of up to 17 in 60), logged in TECH-DEBT. Sminos-Session: doperpowers-19#362013df (doperpowers on macbook)
… of the window The fold's reveal ran on every [ fold to report ], a short run whose first row stands in the window included. The engine reveals a row through scrollToElement, which clears the transcript's stickyScroll whatever it moves, 'nearest' moving nothing included, and marks the person as scrolled away; a fold of a visible run while the model works so let the transcript stop following its bottom. The view now notes each row's last onScreen and reveals the run's first row only when that row is out of the window or its top is cut off, the case where the run's rows above the window fold while held. A row that never said (the main screen holds no row) is left alone. Live (fullscreen, haiku): folding a visible run mid-turn makes no reveal and the transcript keeps following to the turn's last message; with 11f7983 it revealed, and following came back only through the engine's positional follow. Unfolding a long run and folding it at its end still reveals its first row: 0 jumps in 150 wheel steps up. Sminos-Session: doperpowers-19#362013df (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sminos-Session: doperpowers-19#362013df (doperpowers on macbook)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ff81df2340
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" | ||
| claude plugin test "$root" | ||
| command -v bun >/dev/null || { echo "to-human tests need bun" >&2; exit 1; } | ||
| bun "$root/tests/mods/session-places.ts" |
There was a problem hiding this comment.
Run the standalone test with the plugin JSX transform
In a clean checkout, this command cannot load session-places.ts because it imports to-human.tsx, while Bun does not apply the plugin's nested jsxFactory: "h" configuration to this standalone entry point. Running this exact command with Bun 1.2.14 fails with Cannot find module 'react/jsx-dev-runtime'; the repository declares no React dependency, so run.sh exits before the new transcript-search assertions execute.
Useful? React with 👍 / 👎.
| if (props.onScreen !== undefined) { | ||
| view.shown.set(id, props.onScreen) | ||
| } |
There was a problem hiding this comment.
Clear stale visibility when onScreen disappears
When a row was last drawn in the fullscreen transcript with onScreen: null or first > 0, then redraws on the normal terminal surface where onScreen is omitted, this function retains the old fullscreen value. Folding that row on the normal surface consequently enters the $.ui.scroll path as though the row were still outside a fullscreen window, potentially moving the view or stopping bottom-following; an omitted onScreen needs to clear the stored observation.
Useful? React with 👍 / 👎.
….2 taken; sminos stays 1.2.3) Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
In fullscreen the engine holds every off-screen transcript row at the height it last laid out, and releases it at the window's top edge with no scroll correction. When the report view folded a row to empty while it was off screen, scrolling up later snapped the view down. That happened after a module restart (a typed
/reload-plugins, a to-human update), and after unfolding a long run and folding it at its end.$.session.messages()) and finds where the transcript's rows stand. The reload line's own check is folded into this read.[ fold to report ]scrolls to the folded run's[ working record ]button, and only when that row's top is out of the window. A reveal clears the engine's bottom-following, so a fold of a visible run must not scroll.Measured live (fullscreen, haiku, resumed 4309-row transcript, wheel steps up; jumps = steps that moved the view down):
/reload-pluginsrestart, 120 stepsThe last two are the engine's and are logged in docs/doperpowers/TECH-DEBT.md.
Sminos-Session: doperpowers-19#362013df (doperpowers on macbook)