summaryrefslogtreecommitdiff
path: root/internal/hexaiaction/run.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-26 20:19:41 +0300
committerPaul Buetow <paul@buetow.org>2025-09-26 20:19:41 +0300
commit1731126b52e406a300270c8fc8ac1061a4422b27 (patch)
treec74768df49994aa9676cbc69ebfb461ed0422e01 /internal/hexaiaction/run.go
parent0583b360ceb606b8e58f12a17f588bd27feeb117 (diff)
Refactor surface config to support multi-provider arrays
Diffstat (limited to 'internal/hexaiaction/run.go')
-rw-r--r--internal/hexaiaction/run.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/hexaiaction/run.go b/internal/hexaiaction/run.go
index 953da80..a5f47cf 100644
--- a/internal/hexaiaction/run.go
+++ b/internal/hexaiaction/run.go
@@ -41,8 +41,10 @@ func Run(ctx context.Context, stdin io.Reader, stdout, stderr io.Writer) error {
if len(cfg.CustomActions) > 0 {
chooseActionFn = func() (ActionKind, error) { return RunTUIWithCustom(cfg.CustomActions, cfg.TmuxCustomMenuHotkey) }
}
- if providerOverride := strings.TrimSpace(cfg.CodeActionProvider); providerOverride != "" {
- cfg.Provider = providerOverride
+ if len(cfg.CodeActionConfigs) > 0 {
+ if provider := strings.TrimSpace(cfg.CodeActionConfigs[0].Provider); provider != "" {
+ cfg.Provider = provider
+ }
}
cli, err := newClientFromApp(cfg)
if err != nil {