Skip to content

fix: persist trusted plugin install records to SQLite for packaged WhatsApp#1140

Merged
su8su merged 1 commit into
mainfrom
fix_open_trust_channel
Jul 2, 2026
Merged

fix: persist trusted plugin install records to SQLite for packaged WhatsApp#1140
su8su merged 1 commit into
mainfrom
fix_open_trust_channel

Conversation

@su8su

@su8su su8su commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6e8052774

ℹ️ 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".

`;

function resolveOpenClawStateDir(): string {
return process.env.OPENCLAW_STATE_DIR?.trim() || join(homedir(), '.openclaw');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use the shared state subdirectory for OpenClaw SQLite

In normal installs this resolves the plugin index database as ~/.openclaw/openclaw.sqlite, but OpenClaw 2026.6 stores the shared state/plugin index in ~/.openclaw/state/openclaw.sqlite. As a result, every upsertPluginInstallRecordsIntoSqlite call creates or updates a sibling DB that the Gateway never reads, so packaged WhatsApp/Discord/QQBot still won't get trusted install metadata. Include the state subdirectory (or reuse OpenClaw's path helper) before appending openclaw.sqlite.

Useful? React with 👍 / 👎.

@su8su
su8su merged commit f368989 into main Jul 2, 2026
7 checks passed
@su8su
su8su deleted the fix_open_trust_channel branch July 2, 2026 03:25
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