Skip to content

nodespace logs falls back to another install's Homebrew log without saying so #3832

Closed

Description

@mstomar125

What happens

nodespace logs reads candidate_paths_for in packages/cli/src/commands/logs.rs. When ~/.nodespace/logs/nodespaced.log does not exist it falls back to the Homebrew locations (/opt/homebrew/var/log/nodespace/nodespaced.log, /usr/local/var/log/nodespace/nodespaced.log) and prints the first that exists as the daemon's log, with no warning, even when that file is a month old and belongs to a former Homebrew install. (With NODESPACE_HOME set, only the state-directory candidate is used.)

The LaunchAgent log ~/Library/Logs/com.nodespace/nodespaced.log is not a candidate at all.

Expected

When the chosen file is a fallback, the output names the path, says it may belong to another install and not the running daemon, and shows its last-modified time. When no candidate exists, it says which paths were looked at.

Acceptance criteria

  • When a fallback candidate (Homebrew) is chosen, the output names the path, says it may belong to another install, and states its last-modified time.
  • When no candidate exists, the message lists the paths checked.
  • ~/Library/Logs/com.nodespace/nodespaced.log is considered as a last candidate if any registration or formula names it (today core's registration names ~/.nodespace/logs/nodespaced.log).
  • Unit tests for candidate_paths_for and the notice.

Why it matters

A tester or support engineer reads a stale foreign log as current.

Where

packages/cli/src/commands/logs.rs: candidate_paths_for, resolve_log_path.

Activity

  1. self-assigned this
    on Oct 16, 2026
  2. added
    bug
    on Oct 16, 2026
  3. mstomar125 commented on Oct 20, 2026

    @mstomar125
    ContributorAuthor

    Planned for core v0.3.9.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions