support !shell commands

This commit is contained in:
Dax Raad
2025-08-13 15:25:51 -04:00
parent 1357319f6f
commit 93b71477e6
9 changed files with 75 additions and 67 deletions

View File

@@ -767,10 +767,10 @@ func (a *App) SendBash(ctx context.Context, command string) (*App, tea.Cmd) {
}
cmds = append(cmds, func() tea.Msg {
_, err := a.Client.Session.Bash(
_, err := a.Client.Session.Shell(
context.Background(),
a.Session.ID,
opencode.SessionBashParams{
opencode.SessionShellParams{
Agent: opencode.F(a.Agent().Name),
Command: opencode.F(command),
},