Skip to content

feat(login): live catalog sync and sign-in status - #6

Merged
TheStreamCode merged 1 commit into
mainfrom
feat/live-catalog-signin-status
Oct 26, 2026
Merged

TheStreamCode merged 1 commit into
mainfrom
feat/live-catalog-signin-status

Conversation

@TheStreamCode

Copy link
Copy Markdown
Owner

What

Follow-up to #5, driven by real-use feedback on the Settings > Models card and the missing Muse Wonder models.

  • Live model catalog: the plugin now reads GET https://api.meta.ai/v1/models with the stored subscription key (same approach as openclaw-muse-code / hermes-muse-code) and declares the chat catalog on the meta route. Muse Wonder 1.0 / Wonder Full 1.0 (+ contributor) and future chat ids become selectable without a DSH catalog update; muse-image-*, muse-voice-*, and sam-* families are filtered; the five Muse Spark rows keep the shipped catalog's names, context window, output cap, and reasoning levels. A model list the user edited is never overwritten.
  • Sign-in status: new exact GET /muse-code/status route (pending/authorized/failed/idle); the Settings card polls it and flips to Signed in without a reload.
  • Card UI: rebuilt as a panel with title, coloured status dot, monospace device-code badge, primary/secondary actions, and wrapped text — the previous inline footer row squeezed the button and link into vertical one-word lines.
  • /muse-login: after opening the browser it now waits for Meta's confirmation (bounded) and reports the final state instead of staying on "sign-in started" in the chat.
  • Status polling timers are unref'ed so the chain cannot pin a Node process open (the client test file otherwise never exits).

Verification

  • npm run typecheck, npm run build, 20 tests locally (host command/routes/model sync + client card harness), markdownlint 0 issues.
  • Live smoke test against the real account catalog: 9 chat models synced, including the four Muse Wonder ids.

- read GET https://api.meta.ai/v1/models with the stored subscription key and
  declare the chat catalog on the `meta` route, so Muse Wonder and future chat
  models appear in the picker; non-chat families are filtered and a model list
  edited by the user is never overwritten
- add GET /muse-code/status (pending/authorized/failed/idle) and rebuild the
  Settings > Models card: coloured status dot, monospace code badge, primary and
  secondary actions, and live polling that flips to "Signed in"
- /muse-login now waits for Meta's confirmation and answers with the final
  state instead of leaving the chat on "sign-in started"
- unref the status poll timer so the chain cannot pin a Node process open
@TheStreamCode
TheStreamCode merged commit cde54b7 into main Oct 26, 2026
8 checks passed
@TheStreamCode
TheStreamCode deleted the feat/live-catalog-signin-status branch October 26, 2026 10:48
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