mintree 0.1.10 → 0.1.11
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/dist/commands/dashboard.js +13 -0
- package/package.json +1 -1
|
@@ -557,8 +557,17 @@ export default function Dashboard() {
|
|
|
557
557
|
process.stdout.write(ALT_SCREEN_ENTER);
|
|
558
558
|
altScreenEntered.current = true;
|
|
559
559
|
}
|
|
560
|
+
// Set as the dashboard unmounts. The overlay mouse-pause effect below
|
|
561
|
+
// re-enables mouse tracking in its cleanup, and that cleanup also fires on
|
|
562
|
+
// unmount (the create overlay is still open when `confirmCreate` calls
|
|
563
|
+
// exit()). React runs effect cleanups in mount order, so the overlay's
|
|
564
|
+
// MOUSE_ON would run *after* the mouse effect's MOUSE_OFF and leave the
|
|
565
|
+
// terminal capturing the scroll wheel — breaking scroll once Claude takes
|
|
566
|
+
// over. This flag lets the overlay cleanup skip MOUSE_ON during teardown.
|
|
567
|
+
const tearingDown = useRef(false);
|
|
560
568
|
useEffect(() => {
|
|
561
569
|
return () => {
|
|
570
|
+
tearingDown.current = true;
|
|
562
571
|
process.stdout.write(ALT_SCREEN_LEAVE);
|
|
563
572
|
};
|
|
564
573
|
}, []);
|
|
@@ -690,6 +699,10 @@ export default function Dashboard() {
|
|
|
690
699
|
return;
|
|
691
700
|
process.stdout.write(MOUSE_OFF);
|
|
692
701
|
return () => {
|
|
702
|
+
// Skip on unmount: re-enabling mouse tracking here would survive the
|
|
703
|
+
// dashboard exit and break scroll in the terminal Claude inherits.
|
|
704
|
+
if (tearingDown.current)
|
|
705
|
+
return;
|
|
693
706
|
process.stdout.write(MOUSE_ON);
|
|
694
707
|
};
|
|
695
708
|
}, [state.phase === "ready" && state.overlay ? state.overlay.kind : null]);
|
package/package.json
CHANGED