fix(config): move Console runtime files to console/ subdir (lr-5dca)#238
Merged
Conversation
…s/ to console/ subdir (lr-5dca) Completes the ~/.clagentic/<tool>/ subdir convention from lr-88fe. Four Console-owned runtime files were never migrated when daemon.sock moved. Each file gets a one-time copy-not-rename migration shim: runs on first ensureConfigDir() call after upgrade, skips if CLAGENTIC_HOME is custom, never overwrites a newer destination, non-fatal on permission errors. daemon.json intentionally excluded — blocked by CLAGENTIC_HOME/CLAGENTIC_CONFIG coupling, tracked as lr-eb5a. Also fixes server-admin.js audit path re-derivation to use audit.auditLogPath(). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ng 0o600 on daemon.log Two Peaches nits: - audit.js migration shim ran at module load before ensureConfigDir() created console/ (daemon.js requires server.js at line 28, ensureConfigDir() at line 44). Fix: mkdirSync the parent dir before copyFileSync in the shim. - daemon.log migration in ensureConfigDir() applied 0o600 — wrong for a log file. Only audit.log and crash.json contain sensitive data and need 0o600. Removed the chmod from the log migration. 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.
Completes the ~/.clagentic// subdir convention from lr-88fe. Four Console-owned runtime files were never migrated when daemon.sock moved: daemon[-dev].log, crash.json, audit.log, and external-triggers/. Each gets a one-time copy-not-rename migration shim. daemon.json intentionally excluded (lr-eb5a). Also fixes server-admin.js audit path re-derivation to use audit.auditLogPath(). Task: lr-5dca