Skip to content

Fix WeChat remote approval session binding - #399

Merged
yikkuro (yikkuro) merged 6 commits into
mainfrom
allow-mxc-plugin-settings
Nov 19, 2026
Merged

yikkuro (yikkuro) merged 6 commits into
mainfrom
allow-mxc-plugin-settings

Conversation

@yikkuro

Copy link
Copy Markdown
Contributor

Description

Fix WeChat remote approval delivery when the authenticated conversation session differs from the prepared Windows Node execution session, as can happen with OpenClaw 2026.10.10. Previously the approval origin was rejected and the approval remained desktop-only.

Related Issue

N/A

Changes

  • Bind the execution session to the prepared systemRunPlan, while retaining the authenticated run identity and existing fail-closed checks.
  • Add regression coverage using the published OpenClaw handler and restore the related WeChat integration test's policy mock.
  • Document the separate conversation and execution session bindings.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • CI/CD or build configuration change
  • Refactoring (no functional changes)

Testing

  • Tests pass locally (cd desktop && npm run test)
  • Renderer tests pass locally (cd desktop/renderer && npm run test)
  • Build succeeds (cd desktop && npm run build)
  • Manual testing performed (describe below)
  • The user confirmed the WeChat approval prompt worked after restarting the development app.
  • With MICROCLAW_OPENCLAW_TEST_PACKAGE_DIR set to the installed OpenClaw 2026.10.10 package, from desktop: .\node_modules\.bin\vitest.cmd run src\openclaw-approval-replay-compat.test.ts src\windows-node-mxc-weixin-remote-approval-delivery.test.ts src\windows-node-mxc-weixin-remote-approval.test.ts src\windows-node-mxc-exec-presentation.test.ts --reporter=dot — passed, 352 tests.
  • With the variable set to the installed OpenClaw 2026.10.5 package, from desktop: .\node_modules\.bin\vitest.cmd run --config vitest.weixin-integration.config.mts integration\weixin-remote-approval.test.mjs --reporter=dot — passed, 57 tests.
  • With the variable set to the installed OpenClaw 2026.10.5 package, from desktop: .\node_modules\.bin\vitest.cmd run src\openclaw-approval-replay-compat.test.ts -t 'remote approval lineage|authenticated remote approval session lineage' --reporter=dot — passed, 8 tests.
  • From desktop: .\node_modules\.bin\tsc.cmd --noEmit and .\node_modules\.bin\eslint.cmd src\openclaw-approval-replay-compat.mjs src\openclaw-approval-replay-compat.test.ts — passed.
  • From desktop: .\node_modules\.bin\eslint.cmd integration\weixin-remote-approval.test.mjs — passed.
  • The full desktop and renderer suites and production build were not run.

Checklist

  • My code follows the coding guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code where necessary
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or my feature works
  • New and existing unit tests pass locally with my changes

Tao Sun and others added 6 commits November 13, 2026 14:53
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	desktop/src/config-write-service.ts
#	desktop/src/main.ts
#	desktop/src/model-config-application.test.ts
#	desktop/src/model-config-application.ts
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@yikkuro
yikkuro (yikkuro) merged commit 277c005 into main Nov 19, 2026
4 checks passed
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