summaryrefslogtreecommitdiffhomepage
path: root/packages/tui
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-08-24 12:06:48 -0500
committerGitHub <[email protected]>2025-08-24 12:06:48 -0500
commitcc66e06101484410ef4236aa40f386fa804db1e7 (patch)
tree099e154f334265fba5e1c6ac41b2ef4b475c7555 /packages/tui
parentd4c8d95ec63e873dfca359540a1b2ae5f9349e18 (diff)
downloadopencode-cc66e06101484410ef4236aa40f386fa804db1e7.tar.gz
opencode-cc66e06101484410ef4236aa40f386fa804db1e7.zip
fix: command model selection (#2219)
Diffstat (limited to 'packages/tui')
-rw-r--r--packages/tui/internal/app/app.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/tui/internal/app/app.go b/packages/tui/internal/app/app.go
index ecf95ff98..b293e5b0b 100644
--- a/packages/tui/internal/app/app.go
+++ b/packages/tui/internal/app/app.go
@@ -820,6 +820,8 @@ func (a *App) SendCommand(ctx context.Context, command string, args string) (*Ap
opencode.SessionCommandParams{
Command: opencode.F(command),
Arguments: opencode.F(args),
+ Agent: opencode.F(a.Agents[a.AgentIndex].Name),
+ Model: opencode.F(a.State.Provider + "/" + a.State.Model),
},
)
if err != nil {