Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions model/ccusage_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ func (s *ccUsageService) collectData(ctx context.Context, since time.Time) (*CCU
cmd = exec.CommandContext(ctx, bunxPath, args...)
slog.Debug("Using bunx to collect ccusage data")
} else {
// Fall back to npx
cmd = exec.CommandContext(ctx, npxPath, args...)
// Fall back to npx with --yes flag to auto-accept prompts
npxArgs := append([]string{"--yes"}, args...)
cmd = exec.CommandContext(ctx, npxPath, npxArgs...)
slog.Debug("Using npx to collect ccusage data")
}

Expand Down