summaryrefslogtreecommitdiff
path: root/internal/tmuxedit/agentutil.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tmuxedit/agentutil.go')
-rw-r--r--internal/tmuxedit/agentutil.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/tmuxedit/agentutil.go b/internal/tmuxedit/agentutil.go
index 924a4a8..18ece9b 100644
--- a/internal/tmuxedit/agentutil.go
+++ b/internal/tmuxedit/agentutil.go
@@ -8,6 +8,7 @@ import (
"regexp"
"strconv"
"strings"
+ "time"
)
// promptMatch holds a regex match result with its line number in the pane.
@@ -117,6 +118,10 @@ func sendClearSequence(paneID, clearKeys string) error {
return fmt.Errorf("clear key %q failed: %w", key, err)
}
}
+ // Add delay after Escape to let Vim/Claude exit INSERT mode
+ if key == "Escape" {
+ time.Sleep(150 * time.Millisecond)
+ }
}
return nil
}