summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-08 20:32:57 +0200
committerGitHub <[email protected]>2025-04-08 20:32:57 +0200
commitfde04bbf85ea641a33a282b354d63f227f9945fb (patch)
tree8b71df5743546e937f5c89977f0f8e0a1814bf56 /cmd
parent124bd57c507fdcbb56ab27137cbe892f12e1b48f (diff)
parent4385fb321903f335097119349aa1ebf9edb3f71a (diff)
downloadopencode-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.go10
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()