Add custom memory folder and mission source path configuration#57
Open
cometben54-arch wants to merge 1 commit intoTianyiDataScience:mainfrom
Open
Conversation
…w employee creation - Memory workbench: add button to select/input custom memory file folder - Staff mission: add button to choose a different file as mission source - Staff config details: add "New employee" button to create agents via openclaw.json - Add customMemoryFolder and customMissionSourcePath to UiPreferences - Add POST /api/agents endpoint for creating new agents https://claude.ai/code/session_0191MnuVyZ3SEYJh336KW9JW
Owner
|
谢谢你做这条 PR,这个方向我能理解,也确实能帮到有自定义路径需求的人。 我这次先没有直接 merge,主要是因为它把“自定义 memory / mission 路径”和“新 agent 创建入口”绑在了一起,而且和最新 如果你愿意继续推进,我会很建议先 rebase,然后尽量把“路径配置”和“agent 创建”拆成两个更小的 PR。这样我们会更容易一块一块吃进去。 |
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
This PR adds support for customizable memory folder and mission source paths in the UI preferences, allowing users to point to alternative locations for memory files and team mission statements without modifying the default configuration.
Key Changes
UI Preferences Extension: Added
customMemoryFolderandcustomMissionSourcePathoptional fields to theUiPreferencesinterface with validation (max 512 characters each)Dashboard Options: Extended
DashboardOptionsinterface to include the new custom path fields for passing to the rendering layerPreferences API: Updated the preferences merge logic to handle the new fields with proper validation and null/empty string handling for resetting to defaults
Memory File Listing: Modified
listEditableMemoryFiles()to accept an optionalcustomFolderparameter and include files from custom memory folders in the editable files listTeam Snapshot Loading: Updated
loadTeamSnapshot()to accept an optionalcustomMissionSourcePathparameter for loading mission statements from custom locationsAgent Creation Endpoint: Added new
POST /api/agentsendpoint to create new agents in the openclaw.json configuration with validation for agent ID, name, model, workspace, and tools profileUI Controls: Added interactive buttons in the staff mission and memory sections allowing users to:
Preference Persistence: Custom paths are properly saved to and loaded from the preferences file, with fallback to defaults when not configured
Implementation Details
https://claude.ai/code/session_0191MnuVyZ3SEYJh336KW9JW