pi-pr-review 1.11.0 → 1.11.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.11.1](https://github.com/10ego/pi-pr-review/compare/v1.11.0...v1.11.1) (2026-07-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **focus:** coalesce live viewer redraws ([#40](https://github.com/10ego/pi-pr-review/issues/40)) ([6553eb1](https://github.com/10ego/pi-pr-review/commit/6553eb1c0ade7881b220269b22adf22e4a5d7e59))
9
+
3
10
  ## [1.11.0](https://github.com/10ego/pi-pr-review/compare/v1.10.7...v1.11.0) (2026-07-17)
4
11
 
5
12
 
@@ -47,6 +47,7 @@ export class ReviewFocusView implements Component {
47
47
  private followTail = true;
48
48
  private unsubscribe?: () => void;
49
49
  private closed = false;
50
+ private renderTimer?: ReturnType<typeof setTimeout>;
50
51
 
51
52
  constructor(
52
53
  private readonly tui: Pick<TUI, "requestRender" | "terminal">,
@@ -74,7 +75,7 @@ export class ReviewFocusView implements Component {
74
75
  } else {
75
76
  this.selectedIndex = Math.min(this.selectedIndex, Math.max(0, snapshot.passes.length - 1));
76
77
  }
77
- this.tui.requestRender();
78
+ this.scheduleRender();
78
79
  }
79
80
 
80
81
  handleInput(data: string): void {
@@ -199,6 +200,18 @@ export class ReviewFocusView implements Component {
199
200
  dispose(): void {
200
201
  this.unsubscribe?.();
201
202
  this.unsubscribe = undefined;
203
+ if (this.renderTimer !== undefined) {
204
+ clearTimeout(this.renderTimer);
205
+ this.renderTimer = undefined;
206
+ }
207
+ }
208
+
209
+ private scheduleRender(): void {
210
+ if (this.closed || this.renderTimer !== undefined) return;
211
+ this.renderTimer = setTimeout(() => {
212
+ this.renderTimer = undefined;
213
+ if (!this.closed) this.tui.requestRender();
214
+ }, 16);
202
215
  }
203
216
 
204
217
  private pageSize(): number {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-pr-review",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "Parallel AI code review for GitHub pull requests in the Pi coding agent, with model-agnostic tiered subagents, structured findings, optional verification, and safe COMMENT-only publishing.",
5
5
  "keywords": [
6
6
  "pi-package",