Skip to content

test(ai): cover system update cache slot boundaries - #52188

Closed
rekram1-node wants to merge 1 commit into
v2from
openrouter-markers
Closed

rekram1-node wants to merge 1 commit into
v2from
openrouter-markers

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Issue for this PR

No linked issue; additional regression coverage for the allocator fix merged in #52110.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation
  • Tests

What does this PR do?

The allocator fix is already in v2 through #52110. After rebasing, this PR contains only additional tests for updates after plain user and assistant content with 0, 2, 3, and 4 slots already used.

Verify the update uses one slot, the following message keeps its marker when a slot remains, TTL is preserved, and the four-marker cap is respected. No production changes remain.

How did you verify your code works?

  • Both regression tests failed before the original fix and pass against the current v2 implementation.
  • OpenRouter, OpenAI Chat, cache-policy, and recorded reasoning tests: 129 passed.
  • Root bun run check.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@rekram1-node rekram1-node changed the title fix(ai): allocate system update cache markers once test(ai): cover system update cache slot boundaries Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant