@aexol/spectral 0.2.18 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -656,6 +656,10 @@ export class PiBridge {
656
656
  if (this.disposed)
657
657
  return;
658
658
  this.disposed = true;
659
+ // Persist the current in-flight message (if any) before tearing down.
660
+ // Without this, cancelling mid-turn loses the message along with its
661
+ // token_usage event, which breaks context-window tracking on reconnect.
662
+ this.finalizePendingMessage();
659
663
  try {
660
664
  this.unsubscribe?.();
661
665
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aexol/spectral",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Always-on coding agent for Aexol — branded pi wrapper with relay-based browser access.",
5
5
  "type": "module",
6
6
  "private": false,