fix(cli): v0.1.14 — persist displayName in config file, not env var
Some checks failed
Some checks failed
Write displayName into tmpdir config.json so the MCP server reads it directly. Env vars from claudemesh launch may not propagate to MCP child processes spawned by Claude Code. Config file is reliable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -86,6 +86,7 @@ export class BrokerClient {
|
||||
private mesh: JoinedMesh,
|
||||
private opts: {
|
||||
onStatusChange?: (status: ConnStatus) => void;
|
||||
displayName?: string;
|
||||
debug?: boolean;
|
||||
} = {},
|
||||
) {}
|
||||
@@ -132,7 +133,7 @@ export class BrokerClient {
|
||||
memberId: this.mesh.memberId,
|
||||
pubkey: this.mesh.pubkey,
|
||||
sessionPubkey: this.sessionPubkey,
|
||||
displayName: process.env.CLAUDEMESH_DISPLAY_NAME || undefined,
|
||||
displayName: process.env.CLAUDEMESH_DISPLAY_NAME || this.opts.displayName || undefined,
|
||||
sessionId: `${process.pid}-${Date.now()}`,
|
||||
pid: process.pid,
|
||||
cwd: process.cwd(),
|
||||
|
||||
Reference in New Issue
Block a user