summaryrefslogtreecommitdiff
path: root/internal/hexaicli/run.go
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/hexaicli/run.go
parent3246ebcc5246ed357f45ac32234d5cd34922b9f3 (diff)
editor: remove prefilled text in temp files for custom prompts (TUI and CLI)
Diffstat (limited to 'internal/hexaicli/run.go')
-rw-r--r--internal/hexaicli/run.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/hexaicli/run.go b/internal/hexaicli/run.go
index 6017e51..cdcc3ac 100644
--- a/internal/hexaicli/run.go
+++ b/internal/hexaicli/run.go
@@ -32,7 +32,7 @@ func Run(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.
}
// No args: open editor to capture a prompt, then combine with stdin as usual.
if len(args) == 0 {
- if prompt, eerr := editor.OpenTempAndEdit([]byte("# Enter your prompt below\n\n")); eerr == nil && strings.TrimSpace(prompt) != "" {
+ if prompt, eerr := editor.OpenTempAndEdit(nil); eerr == nil && strings.TrimSpace(prompt) != "" {
args = []string{prompt}
} else {
// If editor fails or empty, continue; readInput will likely error if no stdin either.