Skip to content

fix(weixin): probe sync dir writability before choosing home#2017

Open
Alix-007 wants to merge 3 commits intosipeed:mainfrom
Alix-007:fix/issue-1917-weixin-cursor-perms
Open

fix(weixin): probe sync dir writability before choosing home#2017
Alix-007 wants to merge 3 commits intosipeed:mainfrom
Alix-007:fix/issue-1917-weixin-cursor-perms

Conversation

@Alix-007
Copy link
Contributor

Summary

  • probe the default Weixin sync cursor directory with a real temp-file write before using ~/.picoclaw
  • fall back to a temp-backed picoclaw home when the default home cannot persist sync state
  • add regressions for unusable HOME and existing non-writable sync directories

Testing

  • go test ./pkg/channels/weixin

Fixes #1917

@sipeed-bot sipeed-bot bot added type: bug Something isn't working domain: channel go Pull requests that update go code labels Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: channel go Pull requests that update go code type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Weixin channel: sync cursor persistence fails with permission denied to /root/.picoclaw

1 participant