DashboardCodelabs ts-opencode-watchdog advertisements

labs ts-opencode-watchdog advertisements

Category: preference
Confidence: 1.00
ID: 01a0aeb1-5554-71a7-83d7-468c9db96736
Project ID: ffa98226-3908-4f0c-936b-969018c62abf
Cross-project: No
Recalled in other projects: 2
Source session: 1VvNwjvl4b9bYkxps
Created: 2026-06-13 14:56:42
Updated: 2026-09-17 09:27:32

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 6 20h ago
opencode 5 10d ago

Content

On labs, /usr/local/bin/ts-opencode-watchdog.sh captures tailscale debug prefs once, independently restores svc:opencode with serve advertise, and restores missing 0.0.0.0/0 or ::/0 routes with set --advertise-exit-node. Chose extending the existing 60-second ts-opencode-advertise.timer over adding another recovery unit because one mechanism avoids overlap and preserves tags and unrelated preferences. A mutation test cleared AdvertiseRoutes; the timer restored both routes within one minute while preserving the service advertisement and clean Tailscale health.

Move to: