Fix: Add resource symlinks to ensure data consistency across agents#88
Open
ailinal wants to merge 5 commits intocft0808:mainfrom
Open
Fix: Add resource symlinks to ensure data consistency across agents#88ailinal wants to merge 5 commits intocft0808:mainfrom
ailinal wants to merge 5 commits intocft0808:mainfrom
Conversation
Problem: - After installation, each agent workspace had independent copies of data/*.json - kanban_update.py updated workspace copy, but scheduler read from main edict/data/ - Caused task status to appear stuck on dashboard Solution: - Add link_resources() function in install.sh to create symlinks for all agents: - workspace-\$agent/scripts -> \$REPO_DIR/scripts - workspace-\$agent/data/*.json -> \$REPO_DIR/data/*.json - Add fix-existing-install.sh script to repair already-installed instances Changes: - install.sh: add link_resources() function and call it after create_workspaces() - New file: fix-existing-install.sh for repairing existing installations
- Replace hardcoded 'Feishu' with generic channel description - Clarify that太子 handles messages from any channel (Feishu/Telegram/iMessage/QQ) - Ensure responses are sent back to the original channel
- Link workspace/data (main agent) to edict/data
- Link all workspace-{agent}/data to edict/data
- Update fix-existing-install.sh to handle main workspace
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.
问题
安装后各 Agent 的 workspace 中
data/*.json和scripts/是独立副本,导致:解决方案
新增
link_resources()函数,在安装时为每个 Agent workspace 创建软链接:workspace-$agent/scripts→$REPO_DIR/scriptsworkspace-$agent/data/*.json→$REPO_DIR/data/*.json修复现有安装
运行新提供的脚本:
变更
install.sh: 添加link_resources()函数和调用fix-existing-install.sh: 用于修复已安装的实例测试