mirror of https://github.com/openclaw/openclaw.git
fix: include OPENCLAW_SERVICE_VERSION in system presence version detection
The gateway's system-presence.ts was not detecting the version when OpenClaw is run as a launchd service, because the daemon-runtime.ts sets OPENCLAW_SERVICE_VERSION but system-presence.ts only checked OPENCLAW_VERSION and npm_package_version. This caused 'openclaw status' to show 'unknown' for the version. Issue: #18456 🤖 AI-assisted (lightly tested)
This commit is contained in:
parent
5d9a026a9e
commit
91903bac15
|
|
@ -50,7 +50,7 @@ function resolvePrimaryIPv4(): string | undefined {
|
|||
function initSelfPresence() {
|
||||
const host = os.hostname();
|
||||
const ip = resolvePrimaryIPv4() ?? undefined;
|
||||
const version = process.env.OPENCLAW_VERSION ?? process.env.npm_package_version ?? "unknown";
|
||||
const version = process.env.OPENCLAW_VERSION ?? process.env.OPENCLAW_SERVICE_VERSION ?? process.env.npm_package_version ?? "unknown";
|
||||
const modelIdentifier = (() => {
|
||||
const p = os.platform();
|
||||
if (p === "darwin") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue