#377

Automation never turns on: 'Enter Your Passcode Next' alert never appears (0.4.1 build 1382, iOS 27.3)

OpenShaneglopened 7d ago

What happens

After a fresh install, Poki never turns on. The Automation switch in Settings > Connection flips back to off at once, and every agent call fails with "Poki is off". No alert or passcode screen appears.

The log shows that Poki keeps trying to show the passcode note: no automation since this iPhone restarted: telling the owner iOS will ask for the passcode. That line was logged more than 90 times in 22 minutes: on every launch, every time the switch was tapped, and on every tool call of a chat task. The "Enter Your Passcode Next" alert (PokiApp.swift, bound to model.passcodeHeadsUp) never appears on screen, so continueAfterPasscodeHeadsUp() never runs and startSession returns early every time.

It also fails from the main chat screen with no sheet open: right after launch, and while a chat task runs. So the cause is not only that the alert cannot show over the Settings sheet.

Every item under Settings > Connection > This iPhone shows a green check: Developer Mode, Local Connection, Pairing, UI Automation and Background. 10.7.0.1 answers through Surge.

Steps

  1. Install with node bin/install-iphone.mjs run --json. The run turned on Developer Mode, which restarted the phone.
  2. The install finished with ok:true: Developer Mode on, paired, developer disk image mounted, loopback answers.
  3. Open Poki and tap Settings > Connection > Automation. The switch flips back to off, and nothing else happens.
  4. Force-quit and reopen Poki, then send a chat task. It fails with "Poki is off" and still shows no alert.

Expected

The "Enter Your Passcode Next" alert appears. Continue then leads to iOS's passcode screen, and Poki turns on.

Log (identifiers removed)

00:46:10.170 [app] Poki started (0.4.1 build 1382)
00:46:10.320 [session] installed by Poki Setup: Poki turns on by itself
00:46:11.032 [runner] no automation since this iPhone restarted: telling the owner iOS will ask for the passcode
00:46:14.909 [loopback] 10.7.0.1 answers already: the external connection is the recorded choice
00:46:24.949 [pairing] check could not finish: remote pairing handshake failed: the phone's remote pairing service did not answer (device socket io failed: early eof, after 10.0 s). [loopback proxy, local VPN unavailable, Wi-Fi on]
00:53:27.319 [chat] task started: pi, custom/deepseek/deepseek-v4.1-flash-fast
00:53:32.709 [runner] no automation since this iPhone restarted: telling the owner iOS will ask for the passcode
... (repeated on every tool call)
00:53:56.400 [chat] task ended: pi, done after 29.1 s, 12 tool calls, finish_task failure
01:04:01.673 [app] Poki started (0.4.1 build 1382)
01:04:02.169 [runner] no automation since this iPhone restarted: telling the owner iOS will ask for the passcode
01:04:13.049 [chat] task started: pi, custom/deepseek/deepseek-v4.1-flash-fast
01:04:28.820 [chat] task ended: pi, done after 15.8 s, 7 tool calls, finish_task failure
01:08:00.625 [runner] no automation since this iPhone restarted: telling the owner iOS will ask for the passcode

Versions

Poki 0.4.1 (1382), Beta, installed by Poki installer 0.1.1 (8c5a8da) with Poki Setup 0.2.2 (661). iPhone18,2 on iOS 27.3 (24C5037i). Loopback via Surge. macOS 27.2.1, Xcode 27.2. Free Apple Account.

Activity

5
github-actions[bot]7d ago

Thanks for opening this. It does not follow one of our issue forms, so maintainers cannot triage it yet.

If an AI agent (Claude Code, Codex, ...) filed this for you, ask it to read AGENTS.md: File an issue and then edit this issue so the body has every required section of one form, as Markdown headings with the exact English labels:

Edit this issue rather than opening a new one. When it matches a form, the needs-template label comes off on its own. Remove passcodes, tokens, pairing files, and private screen contents while you are at it.

感谢反馈。这个 issue 没有使用仓库的 issue 模板,维护者暂时无法分类处理。如果是 AI 代理(Claude Code、Codex 等)代你提交的,请让它先阅读 AGENTS.md 中的 File an issue,再编辑本 issue,按上面任一模板补齐所有必填小节(标题保留英文原文,内容可以用中文)。请直接编辑本 issue,不要重新开一个。符合模板后 needs-template 标签会自动移除。

JosssphZhou7d ago

Thanks, Shanegl, this is a very clear report and the log helps a lot; no need to reformat it for the template. We're tracing why the passcode notice never shows. An open fix (#368) covers the case where it is hidden behind Settings, but your report shows it also fails on the main chat screen, so we're checking that path too. We'll post what we find here.

JosssphZhou7d ago

Update: on an iOS 27.0 Simulator, both 0.4.1 (1382) and the #368 fix show the passcode notice on the main chat screen, so we couldn't reproduce the missing alert there yet. What is certain is that startup depends on that one alert with no other way forward, and that's a bug on its own. We're adding a Continue button inside Settings > Connection while automation is waiting, so you can proceed even if the alert never appears, and tool calls will say what to do instead of "Poki is off".

Two questions that would help find why the alert doesn't show on 27.3: was any other screen up when it should have appeared (the first-run welcome, an update or connection prompt)? And did it ever appear once, for example right after the Developer Mode restart?

Shanegl6d ago

Thanks for the quick look and the fallback button.

  1. Other screens: When Poki first opened after the install (00:46:10 in the log), a screen flashed by for a split second, too fast to read. Right after it, at 00:46:11, Poki logged the first passcode notice. That could be the first-run welcome or another prompt taking the alert's turn. Later, when Poki was force-quit and reopened from the main chat screen, the same line was logged on every launch, still with no alert and nothing else visible on screen.
  2. Did it ever appear: No, not once. Not after the Developer Mode restart, and not on any later launch, switch tap or chat task.

The install ran the Developer Mode restart before Poki was ever opened, so the very first launch was also the first launch since the restart. Happy to test a build with the Continue button.

JosssphZhou6d ago

Thanks, Shanegl. This build changes the passcode step: the explanation now shows over Settings, and Settings > Connection has a Continue button while automation is waiting, so you can go on even if the alert does not appear. Please update to 0.4.2 Beta and try turning Automation on again.

The screen that flashed by on the first launch is a useful clue, and we will look at it together with the missing alert. We have not confirmed why the alert does not show on iOS 27.3, so please keep telling us what you see.