fix(config): move CONFIG_DIR to ~/.clagentic/console/ — complete Console data isolation (lr-12d0)#240
Merged
Merged
Conversation
…ole data isolation (lr-12d0) CONFIG_DIR was CLAGENTIC_HOME (~/.clagentic/), causing all Console data (sessions, users, auth-tokens, avatars, images, etc.) to land at the brand root instead of the Console tool subdir. One constant change: CONFIG_DIR = path.join(CLAGENTIC_HOME, "console"). Every path derived from CONFIG_DIR follows automatically. One-time bulk migration at module load: if console/sessions/ is absent, cpSync(CLAGENTIC_HOME → console/, force:false) copies everything in one shot. force:false preserves files already migrated by lr-5dca/#238 and lr-eb5a/#239. Same pattern as the clay→clagentic migration. Fixes the "console" segment in configPath/socketPath/logPath — those functions no longer add "console" since CONFIG_DIR is already the console dir. Their old* counterparts now point at CLAGENTIC_HOME (the pre-migration root). Fixes CLAGENTIC_HOME in all daemon spawn sites — was incorrectly set to CONFIG_DIR (now console/); corrected to CLAGENTIC_HOME (brand root). Adds bootstrap guard in daemon.js: if no config found at configPath() but a populated daemon.json exists one level above CLAGENTIC_HOME, the daemon exits EX_CONFIG (78) instead of silently bootstrapping empty projects. Updates five test files for the new path layout: sessions under console/sessions, old socket under CLAGENTIC_HOME (not CONFIG_DIR), lite home under console/lite, audit log directly in CONFIG_DIR, and new CONFIG_DIR equality assertion in config.test.js. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
This issue has been resolved in version 1.5.0-beta.2 (beta). To update, run: |
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
Test plan