@yandy0725/pi-subagents 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -230,14 +230,18 @@ export class TranscriptOverlay implements Component {
|
|
|
230
230
|
|
|
231
231
|
if (matchesKey(data, "up") || matchesKey(data, "k")) {
|
|
232
232
|
this.scrollOffset = Math.max(0, this.scrollOffset - 1);
|
|
233
|
-
//
|
|
234
|
-
// making maxScroll larger
|
|
235
|
-
//
|
|
233
|
+
// Upward keys pause following unconditionally: streaming may add lines
|
|
234
|
+
// between handleInput and render, making maxScroll larger, and a "was I
|
|
235
|
+
// at the bottom?" test against the stale value would let render() reset
|
|
236
|
+
// a viewport the operator just left.
|
|
236
237
|
this.autoScroll = false;
|
|
237
238
|
scrolled = true;
|
|
238
239
|
} else if (matchesKey(data, "down") || matchesKey(data, "j")) {
|
|
239
240
|
this.scrollOffset = Math.min(maxScroll, this.scrollOffset + 1);
|
|
240
|
-
|
|
241
|
+
// Downward keys re-arm following when they land on the bottom, so the
|
|
242
|
+
// live tail resumes as soon as the operator scrolls back down (or was
|
|
243
|
+
// already there).
|
|
244
|
+
this.autoScroll = this.scrollOffset >= maxScroll;
|
|
241
245
|
scrolled = true;
|
|
242
246
|
} else if (matchesKey(data, "pageUp") || matchesKey(data, "shift+up")) {
|
|
243
247
|
this.scrollOffset = Math.max(0, this.scrollOffset - viewportHeight);
|
|
@@ -245,7 +249,7 @@ export class TranscriptOverlay implements Component {
|
|
|
245
249
|
scrolled = true;
|
|
246
250
|
} else if (matchesKey(data, "pageDown") || matchesKey(data, "shift+down")) {
|
|
247
251
|
this.scrollOffset = Math.min(maxScroll, this.scrollOffset + viewportHeight);
|
|
248
|
-
this.autoScroll =
|
|
252
|
+
this.autoScroll = this.scrollOffset >= maxScroll;
|
|
249
253
|
scrolled = true;
|
|
250
254
|
} else if (matchesKey(data, "home")) {
|
|
251
255
|
this.scrollOffset = 0;
|