fix(healthsync): one quiet skip line for unconfigured providers on pull - #2108
Open
pai-scaffolde wants to merge 1 commit into
Open
fix(healthsync): one quiet skip line for unconfigured providers on pull#2108pai-scaffolde wants to merge 1 commit into
pai-scaffolde wants to merge 1 commit into
Conversation
`HealthSync.ts pull` (hourly via com.lifeos.healthsync) printed one `<source>: unconfigured; ... error=<CREDENTIALS> not set in ~/.claude/.env` line per provider on every run, so a stock install with no Oura, Eight Sleep or Function Health credentials logged three error-shaped lines an hour for a state that is not an error. Group unconfigured and awaiting-first-export sources into a single `skipped (not configured): ...` line; ok/failed sources keep the detailed line, and current.json plus the healthsync JSONL row still carry the per-source reason. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reproduced on a fresh LifeOS 7.40.4 install (macOS, Claude Code in the Claude desktop app); the fix was applied to that install and run there before filing. Related: #1946 covered the
SHORTCUT_SETUP.mdpointer printed bystatus; this change does not touchstatusor that pointer.Observed
MEMORY/OBSERVABILITY/health-sync.log, every hour (com.lifeos.healthsync, BackgroundServices.md:56):Three error-shaped lines an hour for a state that is not an error: no provider was ever configured.
Root cause
runPull()inLIFEOS/TOOLS/HealthSync.tsprints the sameerror=line for every source regardless of status. The provider modules returnstatus: "unconfigured"with the missing-credential text inlastError, and the summary loop renders that as an error.Fix (in the tool)
Group
unconfiguredandawaiting-first-export(the same pairrunStatus()treats as "not set up") into oneskipped (not configured): oura, eightsleep, apple, functionline.okandfailedsources keep the detailed line; the per-source reason still lands incurrent.jsonand thehealthsync.jsonlrow (unchanged). A configured provider that fails still logs its error.How tested
HOME=<tmp> bun LIFEOS/TOOLS/HealthSync.ts pull(store.ts derives.env, state, data and observability paths from HOME, so the run is hermetic):On the live install the hourly job now logs the single skip line.
🤖 Generated with Claude Code