Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

fix(health-check): include slack-bridge in dup-process + auto-resurrect lists - #92

Open
jgluck96 wants to merge 1 commit into
mainfrom
fix/health-check-slack-bridge-main
Open

jgluck96 wants to merge 1 commit into
mainfrom
fix/health-check-slack-bridge-main

Conversation

@jgluck96

@jgluck96 jgluck96 commented Jun 3, 2026

Copy link
Copy Markdown

Summary

Test plan

  • Run python3 src/health-check.py — slack-bridge row appears with pass/fail/warn status
  • Kill slack-bridge process, run python3 src/health-check.py --fix — confirm auto-restart fires

🤖 Generated with Claude Code

…ct lists (sonichi#1257)

slack-bridge was the only messaging bridge not covered by health-check's
"multiple processes" detector or by --fix's stale-bridge resurrection
path. Tonight on the Mac Studio core, slack-bridge had two PIDs (a
launchd-managed instance 21min old and a standalone-launched instance
7 days old), and the warn surfaced only after manual pgrep — not via
health-check.

This adds slack-bridge to:
- the configured-bridge iteration tuple at line 821 (so the detector
  fires for it), and
- the auto-resurrect tuple at line 1270 (so --fix knows to resurrect
  it when stale).

Verified locally: after the patch, health-check emits
  ⚠ slack-bridge  warn  multiple processes (2 PIDs: 52298,87616)
on the host where it was previously silent.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bassilkhilo-ag2

Copy link
Copy Markdown

FYI: PR #67 (jsun-m) makes the identical change — same two lines in health-check.py. You'll want to merge one and close the other to avoid a duplicate-entry conflict.

@bassilkhilo-ag2 bassilkhilo-ag2 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This diff is identical to PR #67 (already approved). One of these should be closed to avoid a merge conflict. Recommend closing #92 and merging #67, since #67 has the approval already.

@bassilkhilo-ag2 bassilkhilo-ag2 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Correct — slack-bridge is already running per health-check output (line: '✓ discord-bridge: ok'), and PR #96 (auto-start slack-bridge) is APPROVED. Adding slack-bridge to the dup-process check list and auto-resurrect list is the natural completion: without it, a crashed slack-bridge never gets restarted by health-check --fix. Pattern is identical to telegram/discord. Approved.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants