Skip to content

Backport session history edge-case coverage for tool-call boundaries#26

Merged
bitifirefly merged 1 commit intodevelopfrom
backport/upstream-20260322-final-batch5
Mar 22, 2026
Merged

Backport session history edge-case coverage for tool-call boundaries#26
bitifirefly merged 1 commit intodevelopfrom
backport/upstream-20260322-final-batch5

Conversation

@bitifirefly
Copy link
Copy Markdown

Summary

  • backport the broader session-history regression coverage from upstream around legal tool-call boundaries
  • add edge-case tests for:
    • preserving complete tool-call/result groups after trimming
    • behavior when last_consolidated is non-zero
    • no-tool plain conversations
    • all-orphan prefix stripping
    • empty sessions
    • windows that cut mid tool group
  • this validates existing Session.get_history() behavior against additional boundary scenarios without changing runtime logic

Testing

  • ruff check tests/test_session_manager_history.py
  • pytest -q tests/test_session_manager_history.py
  • pytest -q (440 passed)

@bitifirefly bitifirefly merged commit 16c44ce into develop Mar 22, 2026
2 checks passed
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