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
3 changes: 3 additions & 0 deletions Tests/SwiftAgentKitTests/SwiftAgentKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,9 @@ private func readCall(_ id: String, path: String) -> AgentToolCall {

@Test func testKeepLatestReadsDisabledRestoresOldBehavior() async {
let manager = ContextManager(inlineBudgetChars: 900, keepLatestReadsInline: false)
// This test verifies the PROTECTION toggle, not eviction depth — pin the
// hysteresis to evict-just-enough so the depth matches its expectations.
manager.evictionTargetFraction = 1.0
let readResult = "READ_OLD " + String(repeating: "r", count: 300)
let messages: [AgentMessage] = [
.user("start"),
Expand Down
Loading