Draw a stranded finish screen's way out when the press goes unanswered by time alone

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-18 19:45:06 -08:00
1 parent 3b09d03090
commit c96e1f0f52
2 files changed
+13 -1

No files matched your search

+9
View File
@@ -2616,6 +2616,7 @@ export function wireChrome() {
// render and nothing was triggering one. Watch the flip and draw the rest.
let wasAdrift = false;
let wasPastGrace = false;
let wasPressStranded = false;
export function startClock() {
setInterval(checkIn, 5000);
@@ -2637,6 +2638,14 @@ export function startClock() {
wasPastGrace = past;
if (page.S) renderFooter();
}
// A finished screen's press goes stranded by time alone, with no frame to say so: draw
// the card again so its way out (Start a New Session, or the command) appears with the
// status line that names it.
const strandedNow = pressStranded();
if (strandedNow !== wasPressStranded) {
wasPressStranded = strandedNow;
if (page.S) render();
}
// The agent coming or going changes whether the chat can be used, with no
// frame to say so: redraw the Ask pane when that flips. Even mid-typing:
// the draft is saved on every keystroke and withFocus() keeps the caret,