Skip to content

Commit 33b8ab6

Browse files
committed
Release 0.2.6
1 parent 9755c21 commit 33b8ab6

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to Sofos are documented in this file.
44

55
## [Unreleased]
66

7+
## [0.2.6] - 2026-05-01
8+
79
### Fixed
810

911
- **Anthropic prefix cache survives wide multi-tool iterations.** Anthropic's prompt cache walks back at most 20 blocks from each `cache_control` marker; without a secondary anchor, a single iteration adding more than ~20 blocks (parallel tool calls returning many ToolUse / ToolResult blocks at once) cold-missed the rolling lookup and re-billed the entire prefix at full price. `ConversationHistory::maintain_cache_anchor` now tracks a stateful anchor index that stays put across turns and only advances when intermediate distance crosses 18 blocks; `request_builder` stamps a secondary `cache_control` at that position so the anchor's own lookup hits exactly across wide turns. Intermediate blocks between the anchor and the new rolling still re-bill at full price on wide turns — that's a fundamental limit of Anthropic's 20-block window, not a sofos bug. See `project_anthropic_20_block_lookback.md`.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sofos"
3-
version = "0.2.5"
3+
version = "0.2.6"
44
edition = "2021"
55

66
authors = ["Alexander Alexandrov"]

0 commit comments

Comments
 (0)