summaryrefslogtreecommitdiff
path: root/internal/hexaiaction
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-07 18:00:10 +0300
committerPaul Buetow <paul@buetow.org>2025-09-07 18:00:10 +0300
commitf57d63831d604d726685fe31494788e81f17900a (patch)
tree5ba8f0af9b47a7a5201b9b3f622e706c5c0cf546 /internal/hexaiaction
parent3246ebcc5246ed357f45ac32234d5cd34922b9f3 (diff)
editor: remove prefilled text in temp files for custom prompts (TUI and CLI)
Diffstat (limited to 'internal/hexaiaction')
-rw-r--r--internal/hexaiaction/run.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/hexaiaction/run.go b/internal/hexaiaction/run.go
index 1325e9d..b11457c 100644
--- a/internal/hexaiaction/run.go
+++ b/internal/hexaiaction/run.go
@@ -79,7 +79,7 @@ func executeAction(ctx context.Context, kind ActionKind, parts InputParts, cfg a
cctx, cancel := timeout10s(ctx)
defer cancel()
// Open editor for free-form instruction
- prompt, err := editor.OpenTempAndEdit([]byte("# Enter your instruction below\n\n"))
+ prompt, err := editor.OpenTempAndEdit(nil)
if err != nil || strings.TrimSpace(prompt) == "" {
fmt.Fprintln(stderr, logging.AnsiBase+"hexai-tmux-action: custom prompt canceled or empty; echoing input"+logging.AnsiReset)
return parts.Selection, nil