Skip to content

fix(cursor): retain last-good model cache#130

Merged
kaitranntt merged 2 commits into
mainfrom
kai/fix/cursor-model-cache-124
Jul 10, 2026
Merged

fix(cursor): retain last-good model cache#130
kaitranntt merged 2 commits into
mainfrom
kai/fix/cursor-model-cache-124

Conversation

@kaitranntt

Copy link
Copy Markdown
Owner

Replaces the model-cache slice of contributor PR #124 with safe per-auth last-good snapshots. A transient discovery failure returns an isolated deep copy of the last successful catalog; cold start retains the existing fallback without overwriting live data.

Contributor provenance: retains the intent from tan-yong-sheng commits 69d09fe and c996e20, with maintainer repairs for full deep copy and failure behavior.

Validation: focused race tests covering cold start, success, repeated failures, reader/writer nested mutation isolation, concurrent auths, full go test, server build, and independent re-review.

Refs #124

Reimplements the model-cache intent from tan-yong-sheng's 69d09fe and c996e20 without their TTL fallback or incomplete clone behavior.

Co-authored-by: tan-yong-sheng <64836390+tan-yong-sheng@users.noreply.github.com>
@kaitranntt kaitranntt merged commit e06c083 into main Jul 10, 2026
2 checks passed
@kaitranntt kaitranntt deleted the kai/fix/cursor-model-cache-124 branch July 10, 2026 15:06
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.

1 participant