diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-08 20:32:57 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-08 20:32:57 +0200 |
| commit | fde04bbf85ea641a33a282b354d63f227f9945fb (patch) | |
| tree | 8b71df5743546e937f5c89977f0f8e0a1814bf56 /cmd | |
| parent | 124bd57c507fdcbb56ab27137cbe892f12e1b48f (diff) | |
| parent | 4385fb321903f335097119349aa1ebf9edb3f71a (diff) | |
| download | opencode-fde04bbf85ea641a33a282b354d63f227f9945fb.tar.gz opencode-fde04bbf85ea641a33a282b354d63f227f9945fb.zip | |
Merge pull request #22 from adamdottv/adam/retries
fix(anthropic): better 429/529 handling
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/root.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/root.go b/cmd/root.go index c4e99985a..c02d94233 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -107,6 +107,16 @@ func setupSubscriptions(app *app.App) (chan tea.Msg, func()) { wg.Done() }() } + { + sub := app.Status.Subscribe(ctx) + wg.Add(1) + go func() { + for ev := range sub { + ch <- ev + } + wg.Done() + }() + } return ch, func() { cancel() wg.Wait() |
