Merge pull request #22 from adamdottv/adam/retries

fix(anthropic): better 429/529 handling
This commit is contained in:
Kujtim Hoxha
2025-04-08 20:32:57 +02:00
committed by GitHub
10 changed files with 312 additions and 157 deletions

View File

@@ -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()