Summary
After #214 renames infrastructure files (tmp-openclaw-dir.ts → tmp-remoteclaw-dir.ts, openclaw-root.ts → remoteclaw-root.ts) and updates production constants (HTTP headers, temp dir prefixes), ~580 test files have stale references that need cascade-updating.
What needs to change
1. Import path updates (~70 files)
All test files importing from the old infrastructure filenames:
tmp-openclaw-dir.js → tmp-remoteclaw-dir.js
openclaw-root.js → remoteclaw-root.js
2. Temp directory prefixes (~500+ files)
Test setup code creates temp directories with openclaw prefixes:
mkdtemp("openclaw-test-home-") → mkdtemp("remoteclaw-test-home-")
mkdtemp("openclaw-media-test-") → mkdtemp("remoteclaw-media-test-")
- And similar patterns across
src/ and test/ directories
3. HTTP header assertions (~10 files)
Test assertions checking protocol headers:
x-openclaw-session-key → x-remoteclaw-session-key
4. Fixture data and assertions (~50+ files)
- Fixture strings, mock data, and test assertions referencing "openclaw"
- Test helper imports and paths
Acceptance Criteria
Blocked by
Blocked by: #214 (file renames must land first)
Summary
After #214 renames infrastructure files (
tmp-openclaw-dir.ts→tmp-remoteclaw-dir.ts,openclaw-root.ts→remoteclaw-root.ts) and updates production constants (HTTP headers, temp dir prefixes), ~580 test files have stale references that need cascade-updating.What needs to change
1. Import path updates (~70 files)
All test files importing from the old infrastructure filenames:
tmp-openclaw-dir.js→tmp-remoteclaw-dir.jsopenclaw-root.js→remoteclaw-root.js2. Temp directory prefixes (~500+ files)
Test setup code creates temp directories with
openclawprefixes:mkdtemp("openclaw-test-home-")→mkdtemp("remoteclaw-test-home-")mkdtemp("openclaw-media-test-")→mkdtemp("remoteclaw-media-test-")src/andtest/directories3. HTTP header assertions (~10 files)
Test assertions checking protocol headers:
x-openclaw-session-key→x-remoteclaw-session-key4. Fixture data and assertions (~50+ files)
Acceptance Criteria
openclawtoremoteclawpnpm buildpassespnpm testpassesBlocked by
Blocked by: #214 (file renames must land first)