Skip to content

Commit 11b9cd7

Browse files
committed
fix: remove superseded Codex sentinel
1 parent 4479f23 commit 11b9cd7

5 files changed

Lines changed: 0 additions & 94 deletions

File tree

Sources/CodexBarCore/CostUsageFetcher.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,6 @@ public struct CostUsageFetcher: Sendable {
322322
}
323323
let hasIncompleteFile = scoped.files.values.contains { $0.codexScanComplete == false }
324324
let pending = cache.codexScanCatchUpPending == true || hasIncompleteFile
325-
progressHasher.combine(pending)
326-
progressHasher.combine(cache.codexScanProcessedBytes)
327-
progressHasher.combine(cache.codexScanTotalBytes)
328-
progressHasher.combine(cache.codexScanCompletedFiles)
329-
progressHasher.combine(cache.codexScanTotalFiles)
330325
return CodexScanCatchUpStatus(
331326
pending: pending,
332327
progressKey: "\(scoped.files.count):\(progressHasher.finalize())",

Sources/CodexBarCore/Vendored/CostUsage/CostUsageCacheModels.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ struct CostUsageCodexActiveLookbackState: Codable {
3434
var completedRootPaths: [String] = []
3535
var pendingFilePaths: [String] = []
3636
var legacyRecursivePendingRootPaths: [String] = []
37-
var awaitingExactInventory: Bool?
3837
}
3938

4039
struct CostUsageCodexSessionDiscovery: Codable {

Sources/CodexBarCore/Vendored/CostUsage/CostUsageStoreModels.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ struct CostUsageStoreLookbackState: Codable, Equatable, Sendable {
149149
var completedRootPaths: [String]
150150
var pendingFilePaths: [String]
151151
var legacyRecursivePendingRootPaths: [String]
152-
var awaitingExactInventory: Bool?
153152
}
154153

155154
struct CostUsageStoreAccumulator: Codable, Equatable, Sendable {

Tests/CodexBarTests/CostUsageBoundedFinalizationTests.swift

Lines changed: 0 additions & 71 deletions
This file was deleted.

Tests/CodexBarTests/CostUsageCatchUpCompletionTests.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ struct CostUsageCatchUpCompletionTests {
3838
until: day,
3939
now: day,
4040
options: options)
41-
// A bounded final work slice intentionally defers exact inventory accounting to
42-
// a following zero-work pass. Establish that completed baseline before injecting
43-
// the legacy retained-queue state exercised below.
44-
_ = CostUsageScanner.loadDailyReport(
45-
provider: .codex,
46-
since: day,
47-
until: day,
48-
now: day.addingTimeInterval(0.5),
49-
options: options)
5041

5142
var staleCache = CostUsageStoreAccess.read(cacheRoot: env.cacheRoot)
5243
#expect(staleCache.files.count == 2)
@@ -103,13 +94,6 @@ struct CostUsageCatchUpCompletionTests {
10394
now: day,
10495
options: options)
10596

106-
_ = CostUsageScanner.loadDailyReport(
107-
provider: .codex,
108-
since: day,
109-
until: day,
110-
now: day.addingTimeInterval(0.5),
111-
options: options)
112-
11397
var staleCache = CostUsageStoreAccess.read(cacheRoot: env.cacheRoot)
11498
let roots = CostUsageScanner.codexSessionsRoots(options: options)
11599
.map { $0.resolvingSymlinksInPath().standardizedFileURL.path }

0 commit comments

Comments
 (0)