Repository navigation
Fix 25 problems from the log (http, runner, db) - #219
Merged
danielehrhardt merged 2 commits intoOct 21, 2026
Merged
Conversation
… run once more after it When Claude's sign-in ran out, every scheduled automation failed with its own notice and nothing ran again once it worked. - The sign-in notice is an error now, names the runner it comes from and says how to sign in again (claude, then /login, or one click in Godmode). Automation failures over the sign-in send no notice of their own. - The first run Claude answers on that computer ends the outage: every scheduled automation whose latest run failed over the sign-in runs once more, unless its next slot is less than two hours away, it is turned off, it runs already, or that run was such a second try. Kept in the meta table, so a restart neither repeats nor forgets it.
…e, mark retries on their event - A failure that reads like a sign-in problem but sent no sign-in notice (Claude Code didn't say so itself) is still told after a short wait. - "Once until it works again" skips runs that failed over the sign-in. - The one more run is recognised by its automation event too, so a computer that stood in or a full list doesn't start it a third time.
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.
Done. Two commits on the branch, the branch is up to date with
origin/main, the typecheck passes and the related core tests pass.What changed
1. One notice per sign-out outage (
services/claudeLogin.ts,services/runNotices.ts)error, the same pathnotify_useruses (inbox and desktop). It says scheduled automations are failing and how to sign in again: runclaudein a terminal and type/login, or use one click in Godmode.2. One more run after the outage (new
automations/signInRetry.ts, started next to the scheduler)sign-in-retry) gives how many automations ran again and which were skipped, with the reason.Tests: new
test/sign-in-retry.test.tswith the fake Claude inAUTH_EXPIREDmode. It checks:A review pass found no blocking defects; I fixed its three smaller findings (the second commit).
Log lines that are not code bugs (nothing changed)
ENOTFOUNDfailures, the GitHub "can't reach" and "timed out" warnings for sources and tasks, the browser "CDP connection closed" lines, and the 403 "Request not allowed" refusals. Resume and the 403 back-off already handle the retries.Next for Daniel: nothing. Supporting a long-lived
claude setup-tokenlogin in Godmode would prevent this kind of outage, but that is a separate feature.Task #63 · done by Self-Healer with Godmode Bot