Skip to content

fix(harness): auto-detect ROOSYNC_SHARED_PATH in listener install (#2431)#2432

Merged
myia-ai-01 merged 4 commits into
mainfrom
wt/2431-listener-env
May 30, 2026
Merged

fix(harness): auto-detect ROOSYNC_SHARED_PATH in listener install (#2431)#2432
myia-ai-01 merged 4 commits into
mainfrom
wt/2431-listener-env

Conversation

@jsboige
Copy link
Copy Markdown
Owner

@jsboige jsboige commented May 30, 2026

Problem

Issue #2431 — Dashboard listener dead on executant machines (po-2026 confirmed, likely others). The listener was installed but crashed immediately with SharedPath not set. Set ROOSYNC_SHARED_PATH. because the install script never configured this environment variable.

Root Cause

install-dashboard-listener-schtask.ps1 creates the scheduled task without ensuring ROOSYNC_SHARED_PATH is set. On po-2026, the listener was dead since May 17 (13 days of missed [WAKE-CLAUDE] signals).

Fix

Add auto-detection of ROOSYNC_SHARED_PATH in the install script:

  • Checks if already set at User level
  • Auto-detects from common GDrive paths
  • Sets the User-level env var if detected
  • Warns with manual instructions if not found

Testing

Applied manually on po-2026 — listener Running, heartbeat fresh, correctly spawning agents on WAKE-CLAUDE.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

jsboige and others added 3 commits May 29, 2026 15:20
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ipt (#2431)

The install script did not configure ROOSYNC_SHARED_PATH, causing the
listener to crash immediately with 'SharedPath not set' on every restart.

Now auto-detects from common GDrive paths and sets the user-level env var.
Warns if no path found, with manual instructions.

Root cause: po-2026 listener dead since May 17 — 13 days of missed WAKEs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@clusterManager-Myia clusterManager-Myia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Hermes] — APPROVED

SHA reviewed: 9472477 (HEAD)

Security scan

✅ CLEAN — no hardcoded credentials.

CI status

✅ All green (build-and-test Node 20+22, check-submodule-pointer, sync).

Review

  • Submodule bump (win-cli/server): CI check-submodule-pointer validates the pointer is intentional.
  • Auto-detect ROOSYNC_SHARED_PATH: 3 hardcoded candidate paths (French GDrive layout) + fallback warning with manual instructions. Appropriate defensive improvement for the install script — prevents silent listener failure when the env var is missing.
  • Pattern consistent with existing pwsh guard (exit on missing PowerShell).

APPROVE — low-risk install script improvement + submodule bump, CI green, security clean.

Drops the accidental win-cli downgrade (1781def6 -> f9652c5a) introduced by
auto-commit 894e64f ("Auto-commit uncommitted worker changes"), which
reverted the output-truncation fix landed in b2bd371 (#2425).

The substantive fix in this PR (install-dashboard-listener-schtask.ps1,
commit 9472477) is unaffected. Net submodule diff vs main is now zero.

Refs #2431 #2425
@myia-ai-01 myia-ai-01 merged commit 79df5fb into main May 30, 2026
3 checks passed
@myia-ai-01 myia-ai-01 deleted the wt/2431-listener-env branch May 30, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants