diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx index 7781f7cc7bd..85ea303ca9a 100644 --- a/packages/tui/src/routes/session/index.tsx +++ b/packages/tui/src/routes/session/index.tsx @@ -66,7 +66,7 @@ import { nextThinkingMode, reasoningSummary, useThinkingMode, type ThinkingMode import { getScrollAcceleration } from "../../util/scroll" import { collapseToolOutput } from "../../util/collapse-tool-output" import { usePluginRuntime } from "../../plugin/runtime" -import { OPENCODE_BASE_MODE, useBindings } from "../../keymap" +import { OPENCODE_BASE_MODE, useBindings, useCommandShortcut } from "../../keymap" import { usePathFormatter } from "../../context/path-format" import { LocationProvider } from "../../context/location" import { createSessionRows, type PartRef, type SessionRow } from "./rows" @@ -1189,6 +1189,7 @@ function RevertMessage(props: { const toast = useToast() const renderer = useRenderer() const [hover, setHover] = createSignal(false) + const redoKey = useCommandShortcut("session.redo") return ( setHover(true)} @@ -1211,7 +1212,7 @@ function RevertMessage(props: { {props.count} message{props.count === 1 ? "" : "s"} reverted 0}> - + {(file) => ( @@ -1230,6 +1231,7 @@ function RevertMessage(props: { + {redoKey()} or /redo to restore )