Skip to content

feat(settings): sign out when the Muse Code route is deleted - #8

Merged
TheStreamCode merged 1 commit into
mainfrom
feat/delete-signs-out
Oct 26, 2026
Merged

TheStreamCode merged 1 commit into
mainfrom
feat/delete-signs-out

Conversation

@TheStreamCode

Copy link
Copy Markdown
Owner

What

  • Delete now signs out. The Models page Delete only unsets the user-layer route; the plugin watches its settings section and treats the removal as a sign-out — it deletes the llm-pi-ai/meta OAuth record and clears the mirrored MUSE_CODE_SUB_TOKEN reference, 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.
  • Cache docs. Measured on the live API: identical prefix, same 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 without prompt_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.
  • Live cache probes described above against api.meta.ai (prefix-only requests, no inference impact).

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.
@TheStreamCode
TheStreamCode merged commit 26f904f into main Oct 26, 2026
8 checks passed
@TheStreamCode
TheStreamCode deleted the feat/delete-signs-out branch October 26, 2026 14:27
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