Skip to content

fix(agent): keep a slow Simlock daemon instead of restarting it - #12

Merged
SparshKaushik merged 1 commit into
mainfrom
fix/simlock-slow-not-dead
Nov 10, 2026
Merged

SparshKaushik merged 1 commit into
mainfrom
fix/simlock-slow-not-dead

Conversation

@SparshKaushik

Copy link
Copy Markdown
Contributor

Why

Two v0.6.7 iPhone Duo runs (kek9256/sims 42596484136 and 42612379553) were live and serving for ~2h. When the client's lease ended, Simlock began wiping and re-warming the Duo, and the 3-vCPU host saturated: "Host load read timed out" and simctl list timing out at 120s. simlock status then failed three times in a row (20s timeout). The agent stopped the daemon, the new simlock daemon start failed with DAEMON_CONNECTION_LOST ("Daemon connection closed"), and the run shut down with exit 1.

What

  • After three failed status reads, ask Simlock's anonymous /v1/healthz (60s budget). Restart only when that fails too.
  • simlock daemon stop gets 90s (was 20s). A failed start waits 15s and tries once more.
  • The "simlock status failed" warning now gives the reason (exit code and time taken).

bun test and bun run check pass.

🤖 Generated with Claude Code

Three status timeouts while the host wiped and re-warmed an iPhone Duo made
the agent stop Simlock; its start then hit the old daemon going away and the
run shut down after serving for two hours. Ask Simlock's health route first
and restart only a daemon that does not answer it; give stop 90s and start a
second try. Status warnings now say why the read failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 17:39

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@SparshKaushik
SparshKaushik merged commit a0727b6 into main Nov 10, 2026
1 check passed
@SparshKaushik
SparshKaushik deleted the fix/simlock-slow-not-dead branch November 10, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants