Fix Screen Recording hint and skip usage reads for missing CLIs

This commit is contained in:
Ian Gulliver
2026-10-23 06:05:42 -07:00
parent c4914647de
commit 3de5f76fba
5 changed files with 18 additions and 4 deletions
+5
View File
@@ -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)