mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
Merge pull request #22 from adamdottv/adam/retries
fix(anthropic): better 429/529 handling
This commit is contained in:
@@ -11,7 +11,9 @@ import (
|
||||
"github.com/kujtimiihoxha/termai/internal/lsp/watcher"
|
||||
"github.com/kujtimiihoxha/termai/internal/message"
|
||||
"github.com/kujtimiihoxha/termai/internal/permission"
|
||||
"github.com/kujtimiihoxha/termai/internal/pubsub"
|
||||
"github.com/kujtimiihoxha/termai/internal/session"
|
||||
"github.com/kujtimiihoxha/termai/internal/tui/util"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
@@ -25,6 +27,7 @@ type App struct {
|
||||
|
||||
Logger logging.Interface
|
||||
|
||||
Status *pubsub.Broker[util.InfoMsg]
|
||||
ceanups []func()
|
||||
}
|
||||
|
||||
@@ -43,6 +46,7 @@ func New(ctx context.Context, conn *sql.DB) *App {
|
||||
Messages: messages,
|
||||
Permissions: permission.NewPermissionService(),
|
||||
Logger: log,
|
||||
Status: pubsub.NewBroker[util.InfoMsg](),
|
||||
LSPClients: make(map[string]*lsp.Client),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user