Skip to content

QuantumLock cache boundary detection fails with multi-turn system prompts #17

@paint7pupper

Description

@paint7pupper

Using claw-compactor with a multi-turn conversation where the system prompt spans multiple messages. QuantumLock correctly identifies the cache boundary on the first call, but on subsequent calls with the same system prompt, it doesn't recognize the prefix overlap.

This means we're missing the Anthropic prompt caching discount on repeated calls.

Is QuantumLock expected to handle cross-call prefix detection, or is that out of scope?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions