chore: increase max listners from 10 -> 20 (#235)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { Box, Text, useInput } from "ink";
|
||||
import SpinnerLib from "ink-spinner";
|
||||
import { type ComponentType, useEffect, useRef, useState } from "react";
|
||||
import { stdin } from "process";
|
||||
import { LETTA_CLOUD_API_URL } from "../../auth/oauth";
|
||||
import type { PermissionMode } from "../../permissions/mode";
|
||||
import { permissionMode } from "../../permissions/mode";
|
||||
@@ -14,6 +15,10 @@ import { PasteAwareTextInput } from "./PasteAwareTextInput";
|
||||
import { QueuedMessages } from "./QueuedMessages";
|
||||
import { ShimmerText } from "./ShimmerText";
|
||||
|
||||
// Increase max listeners to accommodate multiple useInput hooks
|
||||
// (5 in this component + autocomplete components)
|
||||
stdin.setMaxListeners(20);
|
||||
|
||||
// Type assertion for ink-spinner compatibility
|
||||
const Spinner = SpinnerLib as ComponentType<{ type?: string }>;
|
||||
const appVersion = getVersion();
|
||||
|
||||
Reference in New Issue
Block a user