Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [Unreleased]

### Breaking Changes

* **daemon.sock path has moved:** `~/.clagentic/daemon.sock` → `~/.clagentic/console/daemon.sock`

Console creates `~/.clagentic/console/` automatically on first startup after upgrade. A one-time warning is printed if the old socket path is still present on disk.

If you use `clagentic-relay claim register` without `--daemon-sock-path`, update `CLAGENTIC_CONSOLE_HOME` from `~/.clagentic` to `~/.clagentic/console`, or pass `--daemon-sock-path ~/.clagentic/console/daemon.sock` explicitly until the relay follow-up update ships (lr-a752).

## [1.4.1](https://github.com/clagentic/clagentic-console/compare/v1.4.0...v1.4.1) (2026-06-08)


Expand Down
2 changes: 1 addition & 1 deletion docs/guides/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Clagentic:Console decouples the CLI from the long-running server. The CLI starts
graph TB
CLI1["npx @clagentic/console<br/>(Terminal 1)"]
CLI2["npx @clagentic/console --add ."]
IPC["Unix socket<br/>~/.clagentic/daemon.sock"]
IPC["Unix socket<br/>~/.clagentic/console/daemon.sock"]
Daemon["Daemon Process<br/>lib/daemon.js"]
HTTP["HTTP / WS<br/>:2633"]
P1["Project A"]
Expand Down
9 changes: 8 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function socketPath() {
var pipeName = _devMode ? "clagentic-daemon-dev" : "clagentic-daemon";
return "\\\\.\\pipe\\" + pipeName;
}
return path.join(CONFIG_DIR, _devMode ? "daemon-dev.sock" : "daemon.sock");
return path.join(CONFIG_DIR, "console", _devMode ? "daemon-dev.sock" : "daemon.sock");
}

function logPath() {
Expand All @@ -88,6 +88,13 @@ function chmodSafe(filePath, mode) {
function ensureConfigDir() {
fs.mkdirSync(CONFIG_DIR, { recursive: true });
chmodSafe(CONFIG_DIR, 0o700);
fs.mkdirSync(path.join(CONFIG_DIR, "console"), { recursive: true });
chmodSafe(path.join(CONFIG_DIR, "console"), 0o700);
// One-time migration warning: old socket path was directly under CONFIG_DIR
var oldSock = path.join(CONFIG_DIR, _devMode ? "daemon-dev.sock" : "daemon.sock");
if (fs.existsSync(oldSock)) {
console.warn("[config] daemon.sock has moved to ~/.clagentic/console/daemon.sock — update any scripts or CLAGENTIC_CONSOLE_HOME settings using the old path");
}
}

function loadConfig() {
Expand Down
Loading