Skip to content

Port PR #460: reduce excessive account state writes#8

Merged
insign merged 2 commits intomainfrom
port-pr-460
Apr 1, 2026
Merged

Port PR #460: reduce excessive account state writes#8
insign merged 2 commits intomainfrom
port-pr-460

Conversation

@insign
Copy link
Copy Markdown
Owner

@insign insign commented Apr 1, 2026

Port of archived upstream PR NoeFabris#460 from https://github.com/NoeFabris/opencode-antigravity-auth/pull/460\n\nOriginal author: @mrm007\n\nNotes:\n- Cherry-picked all upstream commits from PR NoeFabris#460\n- Verified locally with npm test

mrm007 and others added 2 commits April 1, 2026 02:16
- Remove unconditional requestSaveToDisk() on every API request (line 1702)
- Add snapshot deduplication to skip no-op writes
- Increase debounce from 1s to 5s for rate-limit storm resilience
- Move save trigger to after markAccountUsed() where lastUsed is persisted

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019c6dae-36aa-7524-849b-d8c515ba0cd1
(cherry picked from commit a4ac1e4)
…, add test for state-change write

Amp-Thread-ID: https://ampcode.com/threads/T-019c6dae-36aa-7524-849b-d8c515ba0cd1
Co-authored-by: Amp <amp@ampcode.com>
(cherry picked from commit f7d1145)
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@insign insign merged commit 058a4e1 into main Apr 1, 2026
@insign insign deleted the port-pr-460 branch April 1, 2026 18:03
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.

2 participants