Compare commits
2
Commits
58c59e87e5
...
c14324f498
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c14324f498 | ||
|
|
daf9021ea5 |
@@ -1,6 +1,5 @@
|
||||
# Capsule Block Manifest — Auto-generated
|
||||
|
||||
<!-- Generated by mkcapsule --manifest 2026-08-30T08:47:40Z -->
|
||||
<!-- Generated by mkcapsule --manifest 2026-09-02T21:10:42Z -->
|
||||
<!-- DO NOT EDIT — re-run mkcapsule --manifest to refresh. -->
|
||||
<!-- Hand-written justifications and immutability notes live -->
|
||||
<!-- in MANIFEST.md alongside this auto-generated index. -->
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+13
-1
@@ -548,7 +548,19 @@ int sk_console_readline(char* buf, int size, VM* active_vm, int reanchor_prompt)
|
||||
heartbeat_service();
|
||||
|
||||
uint64_t now = heartbeat_ticks();
|
||||
if (now - g_last_beat_tick >= SK_IDLE_BEAT_INTERVAL) {
|
||||
/* n == 0 gate: sk_repl_idle() opens with console_ensure_line_start(),
|
||||
* which unconditionally forces a newline whenever the console isn't
|
||||
* already at a line boundary -- including mid-edit, with characters
|
||||
* already typed and echoed (n > 0) but Enter not yet pressed. Without
|
||||
* this gate, that forced break fires on every elapsed
|
||||
* SK_IDLE_BEAT_INTERVAL regardless of whether sk_repl_idle() actually
|
||||
* has anything to print, visually snapping the in-progress input line
|
||||
* to a fresh (empty) line -- indistinguishable from Enter having been
|
||||
* pressed. Deferring the whole idle beat while a line is being edited
|
||||
* (same n > 0 guard the prompt reanchor below already uses) delays
|
||||
* xhci/block-sync servicing by at most one more interval, which its
|
||||
* own "coarse cadence, cheap early-exit" design already tolerates. */
|
||||
if (n == 0 && now - g_last_beat_tick >= SK_IDLE_BEAT_INTERVAL) {
|
||||
g_last_beat_tick = now;
|
||||
sk_repl_idle(active_vm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user