Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [2.4.3] - 2026-10-31

### Fixed

- **`antigravity_stats` and `/antigravity-stats` reported "Sin actividad registrada aun" forever.** The v2 path never wrote to `EngineStatsManager`: it updated the account manager only, so the report was empty no matter how much traffic went through. Responses are now counted where they happen (success on the serving account, `429`/`403` as a rate limit, other failures as errors; a `404` entitlement miss is not charged as an error).
- **Counters were lost by the 1.5 s save debounce.** A one-shot `opencode run` exits before the timer fires, so those sessions left no trace. Writes are immediate.
- **A long-lived server showed its startup snapshot.** The report reloads `antigravity-stats.json` when another process has written it, and keeps unsaved increments when it is the writer.

### Docs

- **Engine statistics documented** (EN/ES): what is counted, why a `404` is not an error, and what the file contains.

## [2.4.2] - 2026-10-31

### Fixed
Expand Down
12 changes: 12 additions & 0 deletions dist/src/plugin/stats.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,22 @@ export declare class EngineStatsManager {
private data;
private dirty;
private saveTimer?;
private loadedMtimeMs;
private constructor();
static getInstance(): EngineStatsManager;
private defaultData;
private load;
/**
* Picks up counters written by another process (a `opencode run --standalone`
* session, the CLI wrapper) so a long-lived server does not keep reporting the
* snapshot it loaded at startup.
*/
private refreshFromDisk;
/**
* Writes immediately. The previous 1.5 s debounce lost the counters of short
* lived processes (`opencode run` exits before the timer fires), which is why
* one-shot sessions never appeared in the report.
*/
private scheduleSave;
saveNow(): void;
private getOrCreateAccount;
Expand Down
2 changes: 1 addition & 1 deletion dist/src/plugin/stats.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 39 additions & 8 deletions dist/src/plugin/stats.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading