Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 9275665

Browse files
committed
fix: /undo command
1 parent 09bb819 commit 9275665

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ export function Autocomplete(props: {
204204
{
205205
display: "/undo",
206206
description: "undo the last message",
207-
onSelect: () => command.trigger("session.undo"),
207+
onSelect: () => {
208+
hide()
209+
command.trigger("session.undo")
210+
},
208211
},
209212
{
210213
display: "/redo",

0 commit comments

Comments
 (0)