feat: add terminal title and progress indicator for approval screens (#499)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Box, Text, useInput } from "ink";
|
||||
import { memo, useMemo, useState } from "react";
|
||||
import { useProgressIndicator } from "../hooks/useProgressIndicator";
|
||||
import { useTerminalWidth } from "../hooks/useTerminalWidth";
|
||||
import { useTextInputCursor } from "../hooks/useTextInputCursor";
|
||||
import { colors } from "./colors";
|
||||
@@ -55,6 +56,7 @@ export const InlineTaskApproval = memo(
|
||||
clear,
|
||||
} = useTextInputCursor();
|
||||
const columns = useTerminalWidth();
|
||||
useProgressIndicator();
|
||||
|
||||
// Custom option index depends on whether "always" option is shown
|
||||
const customOptionIndex = allowPersistence ? 2 : 1;
|
||||
|
||||
Reference in New Issue
Block a user