feat: add terminal title and progress indicator for approval screens (#499)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-08 17:58:07 -08:00
committed by GitHub
parent cdcf311c64
commit 989bcfdea8
12 changed files with 73 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import { Box, Text, useInput } from "ink";
import { memo, useState } from "react";
import { resolvePlaceholders } from "../helpers/pasteRegistry";
import { useProgressIndicator } from "../hooks/useProgressIndicator";
import { colors } from "./colors";
import { MarkdownDisplay } from "./MarkdownDisplay";
import { PasteAwareTextInput } from "./PasteAwareTextInput";
@@ -45,6 +46,7 @@ export const PlanModeDialog = memo(
const [selectedOption, setSelectedOption] = useState(0);
const [isEnteringReason, setIsEnteringReason] = useState(false);
const [denyReason, setDenyReason] = useState("");
useProgressIndicator();
const options = [
{ label: "Yes, and auto-accept edits", action: onApproveAndAcceptEdits },