Skip to content

[codex] Clear stale Eliza Cloud auth on relink#7165

Merged
lalalune merged 3 commits into
elizaOS:developfrom
jqmwa:codex/eliza-cloud-relink-auth
Apr 29, 2026
Merged

[codex] Clear stale Eliza Cloud auth on relink#7165
lalalune merged 3 commits into
elizaOS:developfrom
jqmwa:codex/eliza-cloud-relink-auth

Conversation

@jqmwa
Copy link
Copy Markdown
Contributor

@jqmwa jqmwa commented Apr 28, 2026

Summary

  • Clear stale in-memory Eliza Cloud auth when a new account login is persisted.
  • Reinitialize CloudManager with the newly linked API key instead of keeping an old client alive.
  • Preserve the linked account identity in runtime secrets/settings.
  • Add regression coverage for /api/cloud/login/persist.

Root Cause

Connecting a new Eliza Cloud account updated disk config, but the running runtime could continue using old CloudAuth/CloudManager instances. That made account status and inference paths disagree after relink.

Dependency

Depends on plugin PR: https://github.com/elizaos-plugins/plugin-elizacloud/pull/16

Validation

  • Focused Vitest from Milady checkout: 2 files passed, 5 tests passed.
  • @elizaos/plugin-elizacloud build passed.
  • Full app-core typecheck/build is currently blocked by unrelated existing LifeOps/native plugin type errors in the checkout.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fd87044f-7e5f-48a7-888b-3ab9efb3a5a3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@lalalune lalalune merged commit 5f0cd76 into elizaOS:develop Apr 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants