Skip to content

to-human: a row folded off the window no longer pulls the report down (0.3.2) - #300

Merged
SSFSKIM merged 3 commits into
mainfrom
to-human-scroll
Oct 20, 2026
Merged

SSFSKIM merged 3 commits into
mainfrom
to-human-scroll

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 20, 2026

Copy link
Copy Markdown
Owner

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.

  • The view now folds from the module's first answer. Before any hook answers, one memoised start-up read checks the conversation for a mark ($.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):

Condition 0.3.1 0.3.2
typed /reload-plugins restart, 120 steps 18, up to 27 lines 0
unfold a long run, fold at its end, 150 steps 3, up to 27 0
resume, first pass, 250 steps 12, up to 4 10, up to 4
full transcript → report, 60 steps 14, up to 17 12–14, up to 17

The last two are the engine's and are logged in docs/doperpowers/TECH-DEBT.md.

  • review: sol medium on 11f7983 found a P2 (a fold of a visible run broke bottom-following), fixed in ff81df2; sol low on the fix: correct
  • ci-gate GREEN on ff81df2

Sminos-Session: doperpowers-19#362013df (doperpowers on macbook)

… (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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T09:00:34.585281Z ff81df2 PR opened
ℹ️ 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" or "@codex security review".

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)
@SSFSKIM
SSFSKIM merged commit 993d9b1 into main Oct 20, 2026
6 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +576 to +578
if (props.onScreen !== undefined) {
view.shown.set(id, props.onScreen)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

SSFSKIM added a commit that referenced this pull request Oct 20, 2026
….2 taken; sminos stays 1.2.3)

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
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