diff options
| author | Dax Raad <[email protected]> | 2025-07-21 19:53:22 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-21 19:53:58 -0400 |
| commit | f20ef61bc72ad830549c8a885f063b47e4a75557 (patch) | |
| tree | 3232940032f5c8e2a25b036c0290b22dc407cb63 /packages/tui/cmd | |
| parent | 5611ef8b28216aa9dd2ceb6ed17d5779a29154f6 (diff) | |
| download | opencode-f20ef61bc72ad830549c8a885f063b47e4a75557.tar.gz opencode-f20ef61bc72ad830549c8a885f063b47e4a75557.zip | |
wip: api for tui
Diffstat (limited to 'packages/tui/cmd')
| -rw-r--r-- | packages/tui/cmd/opencode/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/tui/cmd/opencode/main.go b/packages/tui/cmd/opencode/main.go index 8e387d21b..a882d9daf 100644 --- a/packages/tui/cmd/opencode/main.go +++ b/packages/tui/cmd/opencode/main.go @@ -13,6 +13,7 @@ import ( flag "github.com/spf13/pflag" "github.com/sst/opencode-sdk-go" "github.com/sst/opencode-sdk-go/option" + "github.com/sst/opencode/internal/api" "github.com/sst/opencode/internal/app" "github.com/sst/opencode/internal/clipboard" "github.com/sst/opencode/internal/tui" @@ -100,6 +101,8 @@ func main() { } }() + go api.Start(ctx, program, httpClient) + // Handle signals in a separate goroutine go func() { sig := <-sigChan |
