Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

iOS alert wait: the last poll can get ~30 ms and turns "no alert" into a failed read

Aberta Para iniciantes
#4,018 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
77/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
ios, typescript
Domínio
mobile, testing-qa

Direção de pesquisa

Comece por awaitAppleAlert em packages/platform-apple/src/alert.ts e examine como o orçamento de leitura restante é calculado após ALERT_NOT_FOUND. Verifique se os testes de polling de alertas cobrem uma leitura final que não cabe no tempo restante. O trabalho estará concluído quando essa leitura for ignorada, as ausências tipadas retornarem “nenhum alerta” quando a janela expirar e as falhas reais de leitura continuarem sendo propagadas.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug ready-for-agent

What happens

open --launch-url on iOS can return success with the warning launchConfirmationProbeFailure: "alert-read" when no "Open in" prompt appeared at all. Seen twice on iPhone 17e (iOS 27.0) while verifying #4017.

Why

awaitAppleAlert (packages/platform-apple/src/alert.ts) polls alert get until its timeout (3 s for the launch-confirmation check). After each ALERT_NOT_FOUND it sleeps for the poll interval, then starts another read with remainingBudgetMs(start, timeout). Nothing checks that the remaining budget can hold a read. The last read can get about 30 ms. The runner can't answer in that time and reports a main-thread timeout. That isn't a typed absence, so awaitAppleAlert rethrows it, and the probe reports a failed read instead of "no alert".

Required behavior

  • A read that the remaining budget can't hold is not started. When the window runs out after typed absences, the result is "no alert".
  • A real read failure is still reported as itself.

Found by the agent working on #3861.

Linguagem predominante
TypeScript
Estrelas
5.2k
Forks
359
Merge médio
12h 43min
PRs com merge (30d)
666

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de callstack/agent-device

Todas as issues de callstack/agent-device

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.