diff options
Diffstat (limited to 'internal/hexaiaction/run.go')
| -rw-r--r-- | internal/hexaiaction/run.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/hexaiaction/run.go b/internal/hexaiaction/run.go index d32edbf..b07fbbb 100644 --- a/internal/hexaiaction/run.go +++ b/internal/hexaiaction/run.go @@ -101,7 +101,12 @@ func executeAction(ctx context.Context, kind ActionKind, parts InputParts, cfg a selectedCustom = nil // clear after use return out, err } - // Fallback: open editor for free-form instruction + // No selected custom; treat as no-op + return parts.Selection, nil + case ActionCustomPrompt: + cctx, cancel := timeout10s(ctx) + defer cancel() + // Open editor for free-form instruction 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) |
