Skip to content

v1.5.25

Choose a tag to compare

@github-actions github-actions released this 22 Oct 01:55
· 29 commits to main since this release

Restore missing usage and prevent duplicate accounting across AI tool importers, while making corrupted database recovery safe on Windows. This release includes #145, #146, #147, and #148 by @aaroncchung.

Fixed

  • Antigravity usage after a conversation's last generation was never imported (#148 by @aaroncchung) — a step whose index is above the last generation's highest linked step fell in no generation window, so usage stored in it (a helper-model call made after the final response) was dropped unless a later generation came along. Such steps now belong to the last settled generation and are read again on every import, so usage written after a conversation was first imported is picked up too. The records keep their ids, so a later generation that covers those steps updates them in place, and a step read again unchanged is not uploaded again. Usage after a generation's linked steps never marks that generation as finished. Conversations imported before upgrading get the missing usage at the next parse; nothing is re-imported.
  • A corrupted database could not be recovered on Windows, and a recovered one never got its history back (#147 by @aaroncchung) — when the cache failed to open with SQLITE_CORRUPT or SQLITE_NOTADB, it was deleted while still open, which fails on Windows; the failure was ignored, so every command failed until the file was deleted by hand. On every platform the parsers' cursors in watermark.json survived, so the new database skipped every log already read. The corrupted database is now closed and moved aside with its -wal, -shm and -journal files as cache.db.corrupt-<time> instead of being deleted, since it can hold usage whose logs are gone. watermark.json is reset, so the next parse imports every log again. A database that cannot be moved (another aiusage process still has it open) is reported, and every file is left in place.
  • Kilo and OpenCode imports skipped each other's messages (#146 by @aaroncchung) — the Kilo database import started from the OpenCode cursor and wrote its own position back, so with both kilo.db and opencode.db present each run moved the shared cursor past messages the other had not read. Kilo now has its own cursor and reads kilo.db from the start once; opencode.db is also read from the start once after upgrading to pick up what was skipped. Records keep their ids, so rows already imported are updated in place.
  • Usage that grew after the first import was never counted for Cursor, Goose, Hermes, OpenCode and Kilo (#146 by @aaroncchung) — these imports moved their cursor past a conversation, session or message the first time they saw it, although its token counts were still growing: bubbles added to a Cursor conversation, later Goose session totals, the final usage of a Hermes session imported while open, and the tokens an OpenCode or Kilo response gets when it finishes were lost. Cursor conversations and Goose sessions are now read on every run, open Hermes sessions until they end, and OpenCode and Kilo messages that are not finished (or could not be read) are kept by id and read again until they are. A row read again unchanged is left as it is and stays synced; Parsed N records counts only records that were added or changed. A Goose session keeps one record even when its creation time becomes readable or changes later.
  • Trae sessions were skipped depending on the order of their snapshot folders (#146 by @aaroncchung) — the import raised its skip threshold while walking snapshot folders in name order, so a session that started before one visited earlier was never imported, also on the first run. Every session is now read on every run, in start-time order, and keeps one record when its start time moves.
  • Kiro usage was counted again every time its token log changed (#145 by @aaroncchung) — every change read the whole tokens_generated.jsonl again and stored each earlier line once more under a new id, with the file's modification time as its timestamp. Each line is now stored once, under an id built from the file, its position and its content, and takes its own time when the line records one; a log that was replaced is read again from the start. Duplicates already stored are removed once after upgrading and retracted from the sync targets.
  • Cursor transcript estimates were added again every time a transcript grew (#145 by @aaroncchung) — each parse of a grown agent transcript added another estimate beside the earlier ones, and a conversation that state.vscdb already counted was estimated as well. A transcript now has one estimate, replaced as it grows, and none once the conversation has real token counts from state.vscdb. Duplicates already stored are removed once after upgrading and retracted from the sync targets.
  • CodeBuddy IDE conversations were counted again with every new turn (#145 by @aaroncchung) — each turn stored another conversation-cumulative record, so the earlier turns were counted again. A conversation now has one record, replaced by its latest snapshot. Extra records already stored are removed once after upgrading, and the record that is kept is published to the sync targets as the newest version.