@@ -2,7 +2,6 @@ import Foundation
22
33public enum StatusPresenter {
44 public static let staleDataInterval : TimeInterval = 120
5- private static let placeholderAgent = AgentKind . claude
65
76 public static func displayDollarAmount( for amount: Double ) -> Int {
87 guard amount > 0 else {
@@ -17,6 +16,10 @@ public enum StatusPresenter {
1716 }
1817
1918 public static func title( for state: AppState , now: Date = Date ( ) ) -> String {
19+ if state. isRefreshing && state. lastRefreshAt == nil && state. agentSpendings. isEmpty {
20+ return " ... "
21+ }
22+
2023 if shouldShowLoadingTitle ( lastRefreshAt: state. lastRefreshAt, now: now) {
2124 return loadingTitle ( for: state)
2225 }
@@ -42,7 +45,7 @@ public enum StatusPresenter {
4245 . filter { state. lastErrorByAgent [ $0] != nil }
4346 . map ( \. abbreviation)
4447 guard !abbreviations. isEmpty else {
45- return " ERR \( placeholderAgent . abbreviation ) "
48+ return " ERR "
4649 }
4750
4851 return " ERR \( abbreviations. joined ( separator: " " ) ) "
@@ -53,7 +56,7 @@ public enum StatusPresenter {
5356 . filter { $0. isInstalled }
5457 . map { abbreviation ( for: $0. name) }
5558 guard !abbreviations. isEmpty else {
56- return " ? \( placeholderAgent . abbreviation ) "
59+ return " ? "
5760 }
5861
5962 return " ? \( abbreviations. joined ( separator: " " ) ) "
0 commit comments