mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-19 05:11:18 -08:00
Draw a stranded finish screen's way out when the press goes unanswered by time alone
AI Assisted
This commit is contained in:
1 parent
3b09d03090
commit
c96e1f0f52
2 files changed
+13
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user