From 936c90effb4ec1a3216ab9a938fa88ad28805648 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 19:15:16 -0700 Subject: [PATCH] Transcript Incremental Projection Nucleic-Session: 0FFD007B-0696-4517-9429-129C7B0FD5AC Co-authored-by: Nucleic --- .../NucleicRemote/Views/SessionDetailView.swift | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Views/SessionDetailView.swift b/NucleicRemote/NucleicRemote/Views/SessionDetailView.swift index 33e7a30..7991bd2 100644 --- a/NucleicRemote/NucleicRemote/Views/SessionDetailView.swift +++ b/NucleicRemote/NucleicRemote/Views/SessionDetailView.swift @@ -705,11 +705,18 @@ struct TranscriptList: View { scrollToEnd(proxy, animated: !transcriptSettling) } } - // An explicit jump — the chevron or sending a message — always wins. The chevron - // itself lives in the parent's chat bar (above the composer), not as an overlay here, - // so it sits over the composer instead of behind the floating bar; a tap bumps this - // same request, and following resumes once the geometry reader sees the bottom. - .onChange(of: scrollToBottomRequest) { scrollToEnd(proxy) } + // An explicit jump — the chevron or sending a message — always wins, and it *is* the + // user saying "follow again": re-engage the gate directly rather than waiting for the + // geometry to confirm. The animated scroll can come to rest a few points short of the + // follow threshold (content padding, inset rounding), which sat inside the hysteresis + // band — following never re-engaged and the chevron lingered until the user manually + // scrolled the last few points. Setting the gate here hides the chevron immediately + // and hands pinning back to the bottom anchor; a later real scroll-up still + // disengages it as usual. + .onChange(of: scrollToBottomRequest) { + isScrolledToBottom = true + scrollToEnd(proxy) + } // Warm the Markdown parse caches off the main thread whenever the row set grows — // `initial: true` fires it for the batch that lands on open (the expensive case), and // each later new row tops it up. Keyed on the row *count*, so streaming deltas into an