Skip to content

fix(feedback): prefer explicit env over implicit ~/.openclaw - #4

Merged
NeilJo-GY merged 2 commits into
mainfrom
fix/feedback-dir-env-precedence
Jul 19, 2026
Merged

fix(feedback): prefer explicit env over implicit ~/.openclaw#4
NeilJo-GY merged 2 commits into
mainfrom
fix/feedback-dir-env-precedence

Conversation

@NeilJo-GY

Copy link
Copy Markdown
Contributor

Summary

  • Align resolveFeedbackDir in lib/lifecycle/refine.js and templates/body/state-sync.template.js so explicit OPENCLAW_HOME / OPENPERSONA_HOME win before implicit ~/.openclaw discovery
  • Update SIGNAL-PROTOCOL.md to match the same precedence (and the host-side reference snippet)
  • Add unit tests for refine resolution + a generated state-sync.js regression that writes under OPENPERSONA_HOME even when ~/.openclaw may exist
  • Harden the refine compliance-gate test with try/finally env cleanup

Follow-up to PR #1: keeps the valid bugfix, drops the third-party README example, and finishes the half-applied change so read/write paths stay aligned.

Test plan

  • node --test tests/refine.test.js
  • node --test tests/generator-state-sync.test.js
  • npm test

Made with Cursor

NeilJo-GY and others added 2 commits July 19, 2026 15:27
Align refine.js and state-sync.template.js so OPENCLAW_HOME /
OPENPERSONA_HOME win before default-directory discovery, and lock the
precedence with unit + generated-script regression tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
The skill-v0.21.1-fixes suite still flakes under node --test IPC on
GitHub runners; one retry was not enough. Also disable matrix fail-fast
so one Node version does not cancel the others.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NeilJo-GY
NeilJo-GY merged commit af9e0f4 into main Jul 19, 2026
8 checks passed
@NeilJo-GY
NeilJo-GY deleted the fix/feedback-dir-env-precedence branch July 19, 2026 08:18
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