Fix Screen Recording hint and skip usage reads for missing CLIs
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -173,6 +174,10 @@ func (m *Manager) agyTurnEnded(ctx context.Context, l *live, p antigravityProces
|
||||
var agyWindowMins = map[string]int{"5h": 300, "weekly": 7 * 24 * 60}
|
||||
|
||||
func (m *Manager) readAgyRateLimit() {
|
||||
_, err := exec.LookPath("agy")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
||||
defer cancel()
|
||||
groups, err := antigravity.ReadUsage(ctx)
|
||||
|
||||
Reference in New Issue
Block a user