feat: Support custom workspace path configuration for dual memory systems#9
Open
heshuaibjcn-bit wants to merge 1 commit intoTianyiDataScience:mainfrom
Open
Conversation
…tems - Add OPENCLAW_WORKSPACE_ROOT env var to support custom workspace locations - Update .env.example with detailed configuration examples - Add comprehensive MEMORY-SYSTEM.md documentation - Improve code comments for workspace path resolution This change enables Control Center to work with OpenClaw installations that use non-standard workspace locations, particularly the common ~/.openclaw/workspace path instead of the default ../workspace relative path. Supported memory systems: - File-system memory (Markdown files) - LanceDB vector database (through Gateway) - Dual memory systems (both simultaneously) Fixes memory browsing showing empty for users with custom workspace paths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
|
I tested/reviewed this locally. The feature direction makes sense, but this PR is not ready to merge as submitted. The blocker is open-source/release hygiene: it introduces machine-specific absolute macOS home paths into public-facing files and code comments, for example Please replace those examples with generic placeholders such as:
This needs to be cleaned up before merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OPENCLAW_WORKSPACE_ROOTenvironment variable to support custom workspace locations.env.examplewith detailed configuration examples and commentsdocs/MEMORY-SYSTEM.mddocumentationProblem
The Control Center expected workspace at a fixed relative path (
../../../from control-center directory), which didn't work for users with OpenClaw workspace at~/.openclaw/workspaceor other custom locations. This caused the memory browsing feature to show empty results even when memory files existed.Solution
OPENCLAW_WORKSPACE_ROOTenvironment variable override.env.examplenow includes clear configuration examplesSupported Memory Systems
Configuration Example
Testing
Tested with:
Documentation
Added
docs/MEMORY-SYSTEM.mdwith:Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com