Skip to content

fix(config): move Console runtime files to console/ subdir (lr-5dca)#238

Merged
akuehner merged 2 commits into
mainfrom
fix/lr-5dca-console-subdir-files
Jun 11, 2026
Merged

fix(config): move Console runtime files to console/ subdir (lr-5dca)#238
akuehner merged 2 commits into
mainfrom
fix/lr-5dca-console-subdir-files

Conversation

@akuehner

Copy link
Copy Markdown
Member

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

akuehner and others added 2 commits June 11, 2026 17:40
…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>
@akuehner akuehner merged commit 849dd6f into main Jun 11, 2026
1 check passed
@akuehner akuehner deleted the fix/lr-5dca-console-subdir-files branch June 11, 2026 21:46
@clagentic-release-bot

Copy link
Copy Markdown

This issue has been resolved in version 1.5.0-beta.2 (beta).

To update, run:

npx @clagentic/console@1.5.0-beta.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant