Skip to content

simulators: idle iOS simulators shut down after 15 minutes; agents stop what they start - #15

Merged
0xdaniell merged 1 commit into
mainfrom
sims-idle-15min
Nov 14, 2026
Merged

0xdaniell merged 1 commit into
mainfrom
sims-idle-15min

Conversation

@0xdaniell

Copy link
Copy Markdown
Owner

What

  • mac-sim idle (the mac-sim-idle.timer user unit) now shuts down a pool simulator after 15 minutes idle instead of 20. That's MAC_SIM_IDLE_MINUTES, in both the script's default and the unit's Environment=.
  • The agent instructions snippet says "You start it, you stop it": start a simulator only when the work needs it, reuse the checkout's own, and mac-sim down / device_close as soon as you're done.
  • The docs (docs/agents.md, docs/architecture.md, the simulators skill and references/ios.md) now say 15 minutes.

Why

Simulators left running by agents that finished cost the Mac CPU, RAM and GPU. Twenty minutes left too much of that. The claim, Metro and the tunnel stay, and the next mac-sim command boots the simulator again, so the shorter timeout only costs one boot.

Tested

  • bash -n src/sims/bin/mac-sim.
  • The same 15-minute idle shutdown runs on the author's own setup, verified there 2026-11-14: a booted simulator nobody used was shut down at 15 minutes. That setup uses a different launcher (Simlock), so this repo's mac-sim-idle.timer itself wasn't run with the new value.

…gents start one only when needed and stop it when done
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T13:07:22.164953Z
We couldn’t complete this review. Comment @codex review to try again.
3f82f6a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@0xdaniell
0xdaniell merged commit ee283ec into main Nov 14, 2026
2 checks passed
@0xdaniell
0xdaniell deleted the sims-idle-15min branch November 14, 2026 13:07
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.

1 participant