Truncation Logic Refinement

Nucleic-Session: FE1E2C94-7945-4827-AF56-74525A9BD434
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-06 04:21:04 -07:00
co-authored by Nucleic
parent 3a82a8840a
commit f2637c2cc8
@@ -21,6 +21,10 @@ struct SessionDetailView: View {
// Owned here (not inside `TranscriptList`) so the jump-to-bottom chevron can ride in the chat // Owned here (not inside `TranscriptList`) so the jump-to-bottom chevron can ride in the chat
// bar just above the composer. `TranscriptList` drives it from the scroll geometry. // bar just above the composer. `TranscriptList` drives it from the scroll geometry.
@State private var isScrolledToBottom = true @State private var isScrolledToBottom = true
// The transcript's on-screen height, measured so the floating approval / question card can cap
// itself to the screen: a long host command or a long list of options must never grow the card
// past the screen edge and push its Allow/Deny (or Submit) buttons out of reach.
@State private var availableHeight: CGFloat = 0
private var summary: WireSessionSummary? { private var summary: WireSessionSummary? {
store.sessions.first { $0.sessionID == sessionID } store.sessions.first { $0.sessionID == sessionID }