fix(scripts): resolve kanban_update.py data path to canonical repo location#146
Open
mvanhorn wants to merge 1 commit intocft0808:mainfrom
Open
fix(scripts): resolve kanban_update.py data path to canonical repo location#146mvanhorn wants to merge 1 commit intocft0808:mainfrom
mvanhorn wants to merge 1 commit intocft0808:mainfrom
Conversation
…cation kanban_update.py resolved TASKS_FILE relative to __file__, which points to the workspace copy when agents run from ~/.openclaw/workspace-*. The dashboard reads from the repo's data/ directory, causing a data split where agent updates are invisible to the dashboard. Add EDICT_REPO_DIR env var support with .git/dashboard marker fallback so all agents write to the same canonical tasks_source.json. Apply the same fix to refresh_live_data.py. Update install.sh to write EDICT_REPO_DIR into each workspace's .env file. Closes cft0808#56 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
_find_repo_root()helper tokanban_update.pyandrefresh_live_data.pythat resolves the canonical repo directory instead of relying on__file__locationEDICT_REPO_DIRenv var > walk up from__file__looking for.gitordashboard/markers > original__file__-based fallbackinstall.shto writeEDICT_REPO_DIRto each workspace's.envfile during installationEvidence: Issue #56 reports that
kanban_update.pywrites to~/.openclaw/workspace-*/data/tasks_source.json(workspace copy) while the dashboard reads from<repo>/data/tasks_source.json. This data split makes agent status updates invisible to the dashboard. The existinglink_resources()ininstall.shcreates symlinks as a mitigation, but the scripts themselves should resolve the correct path as a defense-in-depth measure.Closes #56
Test plan
EDICT_REPO_DIR=/path/to/edictand runpython3 scripts/kanban_update.py state JJC-TEST Done "test"from a workspace dir - verify it writes to repo's data/.gitmarker is found and correct path is usedinstall.shand verify.envfiles are created in each workspace withEDICT_REPO_DIR