diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/hexaiaction/run.go | 2 | ||||
| -rw-r--r-- | internal/hexaicli/run.go | 2 |
2 files changed, 2 insertions, 2 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 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. |
