@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
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.5.3",
6
+ "version": "0.5.4",
7
7
  "description": "Focused, in-process sub-agent core for pi — autonomous agents plus a typed API and lifecycle events",
8
8
  "license": "MIT",
9
9
  "repository": {
@@ -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
- // Streaming may add lines between handleInput and render,
234
- // making maxScroll larger; unconditionally disable autoScroll
235
- // so render() does not reset scrollOffset back to the bottom.
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
- this.autoScroll = false;
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 = false;
252
+ this.autoScroll = this.scrollOffset >= maxScroll;
249
253
  scrolled = true;
250
254
  } else if (matchesKey(data, "home")) {
251
255
  this.scrollOffset = 0;