mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-06 09:24:55 +01:00
support !shell commands
This commit is contained in:
@@ -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),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user