simlock run holds a lease around one command, and a detached lease follows the agent process
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- android, ios, typescript
Direção de pesquisa
Start with the CLI reference at website/src/content/docs/docs/reference/cli.mdx, the Android environment block in src/drivers/android/index.ts, and the renewal policy in src/lease-policy/index.ts. Then read src/leasing/AGENTS.md for the known holder lifecycle gap. The issue describes two features but leaves key design questions open; done means defining and implementing the chosen run and detached --bind-pid behavior, including renewal, child exit status, and release.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
An agent that uses the CLI runs one shell per tool call. The held form of simlock lease dies with that shell, so the docs steer agents to --detach with a 15 minute default TTL and manual simlock lease renew. In practice the agent copies the lease id and UDID out of the grant JSON by hand, starts a long build or test run, and forgets to renew. The lease ends mid-run and the device is wiped under the test runner.
Today, across several tool calls:
simlock lease --platform ios --device "iPhone 16" --detach --ttl 1h
# copy lease.id and device.driverDeviceId out of the JSON
xcodebuild -scheme MyApp -destination "generic/platform=iOS Simulator" build # 12 min
simlock simctl install <UDID> build/Debug-iphonesimulator/MyApp.app
maestro test flows/ # 20 min
simlock release <lease.id>
Two things are missing.
1. A command that holds a lease around one child process. The shape of xvfb-run, flock or timeout:
simlock run --platform ios --device "iPhone 16" -- sh -c '
xcodebuild -scheme MyApp -destination "generic/platform=iOS Simulator" build &&
simlock simctl install "$SIMLOCK_DEVICE_UDID" build/Debug-iphonesimulator/MyApp.app &&
maestro test flows/'
run leases with the same options as lease, exports the lease into the child's environment (SIMLOCK_LEASE_ID, SIMLOCK_DEVICE_UDID, ANDROID_SERIAL, plus today's environment), renews every third of the TTL while the child runs, ends the child with a clear message when the lease is lost, releases on exit, and returns the child's exit code.
2. A detached lease that follows the agent's process. --bind-pid already releases a held lease when a named process exits, but it is ignored with --detach (website/src/content/docs/docs/reference/cli.mdx, --bind-pid row). Claude Code exports CLAUDE_PID into every shell it runs. --detach could leave a small keeper behind that renews the lease and releases it when that pid exits, by default when CLAUDE_PID (or an explicit --bind-pid) is present. A closed Claude Code window then frees the device in seconds instead of at the TTL, and nobody has to renew.
Context
Found in the 2026-10-23 product review. Related facts:
- The grant
environmentcarries no device identifier for virtual devices: onlySIMLOCK_IOS_DEVICE_SET(iOS) andANDROID_ADB_SERVER_PORT(Android).ANDROID_SERIALis set only for physical phones (src/drivers/android/index.ts, environment block). Omitting-son the shared adb server is ambiguous with several emulators up. --export-envprints onlyenvironment, so the lease id and UDID are lost and the docs send the agent tosimlock status, whose human line shows neither.src/leasing/AGENTS.mdlists "a SIGKILLed holder keeps its device until the TTL" as a known gap.- The MCP server and the held CLI already renew every TTL/3 (
src/lease-policy/index.ts);runand the keeper reuse that policy.
Open questions for the spec session: whether run is a new command or a flag on lease; what the keeper does when the daemon restarts; whether run also accepts an existing lease id so a session can reuse a device across several run calls.
Written by an agent.
- Linguagem predominante
- TypeScript
- Estrelas
- 730
- Forks
- 44
- Merge médio
- 15h 28min
- PRs com merge (30d)
- 387
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de callstackincubator/simlock
-
bug:new
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
callstackincubator/simlock#2088 ·
Mantenedores costumam responder em até 1 dia
-
bug:new
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
callstackincubator/simlock#2080 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
task:ready
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
callstackincubator/simlock#2079 ·
Mantenedores costumam responder em até 1 dia
-
platform:ios task:ready
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 18/100
callstackincubator/simlock#2078 ·
Mantenedores costumam responder em até 1 dia
-
iOS copy: keep the app database at the copy's own UDIDTalvez já em andamento @V3RON assumiu hoje. Abertaplatform:ios task:ready
callstackincubator/simlock#2077 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de callstackincubator/simlock
Issues semelhantes
-
提出物確認の詳細で状態バッジの重複と期限切れの欠落を直すAbertaCodex使用可 かんたん コード
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ryuki-moro/Nicomaru#348 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
Bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
area-integrations
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia