Fix whatsapp login#1139
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e5d98f7aff
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| writeFileSync( | ||
| fsPath(OPENCLAW_CONFIG_PATH), | ||
| `${JSON.stringify(config, null, 2)}\n`, | ||
| 'utf-8', | ||
| ); |
There was a problem hiding this comment.
Serialize trusted install metadata writes
When this helper runs from plugin install/repair during startup or channel saves, it performs a read-modify-write on ~/.openclaw/openclaw.json outside the shared withConfigLock used by the other config writers. If another locked config update has already read the file and is awaiting its write, this synchronous write can be overwritten, dropping plugins.installs again and bringing back the WhatsApp trusted-install failure; route this update through the config mutex or a locked async helper.
Useful? React with 👍 / 👎.
No description provided.