Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: issue tombstone seriesId placeholder + tailscale PATH scan
Adam Eivyfc2a835db0b8
diff --git a/server/lib/syncWire.js b/server/lib/syncWire.jsindex 0982c60f10..c14c7c407d 100644--- a/server/lib/syncWire.js+++ b/server/lib/syncWire.js@@ -112,7 +112,13 @@ export function sanitizeRecordForWire(kind, record) {if (kind === 'universe' || kind === 'series') {minimized.name = isNonEmptyStr(record.name) ? record.name : '_';} else if (kind === 'issue') {- if (record.seriesId) minimized.seriesId = record.seriesId;+ // seriesId is REQUIRED by sanitizeIssue on the receiver. Without+ // a placeholder, an ephemeral issue tombstone whose on-disk+ // seriesId got cleared (rare, but possible via hand-edit or a+ // partial-delete race) would be silently dropped on receive and+ // the tombstone would never land — peer keeps the live issue+ // copy forever.+ minimized.seriesId = isNonEmptyStr(record.seriesId) ? record.seriesId : '_';minimized.title = isNonEmptyStr(record.title) ? record.title : '_';}return { ...minimized, ...sanitizeSoftDeleteFields(record) };diff --git a/server/lib/tailscale.js b/server/lib/tailscale.jsindex d7fd26ed7d..a63a6ca1c6 100644--- a/server/lib/tailscale.js+++ b/server/lib/tailscale.js@@ -48,5 +48,21 @@ export function isSandboxedTailscale(binPath) {export function hasOnlySandboxedTailscale() {if (process.platform !== 'darwin') return false;- return findTailscale() === MACOS_TAILSCALE_APP_BUNDLE;+ // True iff the MAS app bundle exists AND no unsandboxed binary is+ // reachable anywhere. The previous implementation delegated to+ // findTailscale which returns the FIRST candidate in TAILSCALE_CANDIDATES+ // order — so an unsandboxed `tailscale` living in a non-standard $PATH+ // directory (not in TAILSCALE_CANDIDATES) was missed entirely, and we+ // misclassified the machine as sandboxed-only.+ if (!existsSync(MACOS_TAILSCALE_APP_BUNDLE)) return false;+ for (const p of TAILSCALE_CANDIDATES) {+ if (p === MACOS_TAILSCALE_APP_BUNDLE) continue;+ if (existsSync(p)) return false;+ }+ for (const dir of (process.env.PATH || '').split(delimiter)) {+ if (!dir) continue;+ const p = join(dir, TAILSCALE_BIN);+ if (existsSync(p) && p !== MACOS_TAILSCALE_APP_BUNDLE) return false;+ }+ return true;}