Skip to content

Optimize managed history trimming#29

Merged
corasan merged 2 commits into
mainfrom
t3code/07b97f43
Apr 24, 2026
Merged

Optimize managed history trimming#29
corasan merged 2 commits into
mainfrom
t3code/07b97f43

Conversation

@corasan
Copy link
Copy Markdown
Owner

@corasan corasan commented Apr 24, 2026

Summary

  • replace linear managed-history trimming tokenization with a binary-search planner
  • add a Swift spy/counter test for trim planning probe counts and boundary cases
  • add a manual trim debug path in the example app with clearer progress UI and a scrollable header action rail

Tests

  • bun run test
  • bun tsc -p ./package --noEmit
  • bun run test:ios-history-trim
  • xcrun swiftc -parse package/ios/Sources/ManagedHistoryTrimPlanner.swift package/ios/Sources/HybridLLM.swift

Note

  • example-wide typecheck still fails on existing Node globals in example/metro.config.ts (__dirname/module) because the example tsconfig does not include Node types.

@corasan corasan merged commit e4b45de into main Apr 24, 2026
3 checks passed
@corasan corasan deleted the t3code/07b97f43 branch April 24, 2026 12:27
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