Skip to content

fix(daemon): start cache daemon as user service#17

Merged
tee8z merged 1 commit into
masterfrom
fix/daemon-user-service-autostart
Jun 17, 2026
Merged

fix(daemon): start cache daemon as user service#17
tee8z merged 1 commit into
masterfrom
fix/daemon-user-service-autostart

Conversation

@tee8z

@tee8z tee8z commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary:

  • Auto-start daemon-backed caching through the user service manager: systemd-run --user on Linux and launchctl LaunchAgent on macOS.
  • Preserve a direct detached-spawn fallback for environments without a service manager.
  • Pass socket and desktop-session environment into the daemon so editor/agent one-shot shells can reuse the same warm cache.
  • Document the auto-start behavior in the daemon and agent setup docs.

Validation:

  • cargo fmt --check
  • cargo build --locked
  • cargo test --locked
  • Runtime Linux validation with a dedicated VIA_DAEMON_SOCKET: one fresh process started the daemon and completed a Linear GraphQL viewer query; a second fresh process reported via daemon: running with cached entries and completed the same query without another 1Password login prompt. ps showed the daemon parented by systemd --user.

@tee8z tee8z merged commit a3acf17 into master Jun 17, 2026
8 checks passed
@tee8z tee8z deleted the fix/daemon-user-service-autostart branch June 17, 2026 16:23
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.

1 participant