Repository navigation
feat(settings): sign out when the Muse Code route is deleted - #8
Merged
Merged
Conversation
The Models page Delete only unsets the user-layer route. For a plugin-managed provider that left a green credential dot behind with no row, so the plugin now watches its settings section and treats that removal as a sign-out: it deletes the `llm-pi-ai/meta` OAuth record and clears the mirrored `MUSE_CODE_SUB_TOKEN` reference. The row is re-declared with a red dot on the next refresh or restart. Also records the measured cache window in the docs: same-key entries still hit after 12 minutes, a fresh key reports zero, and `prompt_cache_retention: 24h` made no difference in that window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
llm-pi-ai/metaOAuth record and clears the mirroredMUSE_CODE_SUB_TOKENreference, instead of leaving a green dot with no row. The row is re-declared (red dot) on the next refresh/restart; Edit stays a plain profile edit.prompt_cache_key→ 1521/1600 cached; different/no key → 0; after a 12-minute pause same-key entries still reported 2673/2800 cached, with or withoutprompt_cache_retention: 24h, while a fresh key reported 0. The default retention is sufficient, so no retention knob is exposed.Verification
npm run typecheck,npm run build, 28 tests (route delete → logout, settings absence guard, credential mirror/refresh, routes, client card), markdownlint 0 issues.api.meta.ai(prefix-only requests, no inference impact).