Skip to content

feature: fix compaction and other fixes - #100

Merged
artcc merged 5 commits into
developfrom
feature/compact
Aug 26, 2026
Merged

feature: fix compaction and other fixes#100
artcc merged 5 commits into
developfrom
feature/compact

Conversation

@artcc

@artcc artcc commented Aug 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

artcc added 5 commits August 26, 2026 15:32
- Replace `LazyVStack` with `VStack` in `AppIconSelectionView`
- Keep the existing leading alignment and spacing for the settings layout
- Add inputRevision to chat loaded state and input bar state
- Increment inputRevision when input text changes, clears, or is transcribed
- Refactor chat input bar to manage local text state and send entered text explicitly
- Update chat view send flow to forward input text before dispatching send
- Extend tests to verify inputRevision updates on persistence, transcription, and repeated input
- Introduce request-context preparation that compacts overflowing conversations before streaming or agent execution
- Persist compacted summaries before sending regular or agent requests and surface a new automatic compaction failure error
- Move compaction scheduling and configuration helpers into a dedicated view model extension
- Update agent and streaming paths to await the new request-context preparation flow
- Expand test mocks to support multiple compaction results and capture sent message batches
- Add tests covering compaction before regular chat requests and agent requests
- Treat existing and generated summaries as untrusted data in compaction prompts and context window prompts
- Encode existing summaries as JSON payloads and update prompt text to forbid following embedded instructions
- Validate compaction responses against token limits and reject empty or oversized summaries
- Add rollback support for pending preflight compaction when persistence or streaming state changes
- Remove compaction task cancellation from unrelated chat actions and rely on preflight summary tracking
- Update compaction and context window tests for untrusted summary handling and rollback behavior
- Persist compacted summaries before the first overflowing request
- Roll back pending summaries when saving, cancellation, or expiration interrupts compaction
- Include actual agent system instructions in context estimates
- Treat compacted conversation summaries as size-bounded untrusted data before reuse
- Update changelog and TestFlight release notes
@artcc
artcc merged commit 0e860c3 into develop Aug 26, 2026
2 checks passed
@artcc
artcc deleted the feature/compact branch August 26, 2026 17:37
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