# Spill oversized buffered assistant deltas without losing final text · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/3e02cadc40d1e2318059a1f061b89a61530c527f)

Repository: [flambo/t3code](https://git.cafe/flambo/t3code)

Visibility: public

Requested revision: 3e02cadc40d1e2318059a1f061b89a61530c527f

Requested commit: 3e02cadc40d1e2318059a1f061b89a61530c527f

Commit: 3e02cadc40d1e2318059a1f061b89a61530c527f

Tree: 6db5e20877ab56f77ba44f970311edab696f5037

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Spill oversized buffered assistant deltas without losing final text

- cap buffered assistant text memory and spill older chunks as delta events
- finalize buffered messages by emitting retained remainder before completion when spilled
- add regression coverage for oversized buffered deltas and tighten type-safe test assertions

```

## Parents

- [2575aa9873902720a82d452d2e2b227896ff6ed4](https://git.cafe/flambo/t3code/commit/2575aa9873902720a82d452d2e2b227896ff6ed4?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/3e02cadc40d1e2318059a1f061b89a61530c527f?format=markdown)
