fix: declining "Outra pessoa está nesta máquina" just leaves the chooser open (DTF-WEB-1V)
All checks were successful
Build and deploy / Validate source (push) Successful in 10s
Build and deploy / Integration suite on a real stack (push) Successful in 8m17s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 2m5s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-26 14:10:47 -03:00
parent 617868945a
commit 3b9575b94b

View File

@@ -39,7 +39,8 @@ function askMachine(again=false){
// Someone else on the machine is a question, not an error (Sentry DTF-WEB-1J).
try{await api('/me/machine',{machine_id:id,confirm},{expected:confirm?[]:[409]});m.close();await load(true);}
catch(e){
if(e.status===409&&!confirm&&await ask('Outra pessoa está nesta máquina',e.message,'Continuar mesmo assim'))return choose(id,true);
// Declined: the person stays on the chooser, nothing to say (Sentry DTF-WEB-1V).
if(e.status===409&&!confirm)return await ask('Outra pessoa está nesta máquina',e.message,'Continuar mesmo assim')?choose(id,true):undefined;
// No network (an iPhone between Wi-Fi and data, Sentry DTF-WEB-1Q): a
// warning to try again, not an error; load() reports one that lasts.
if(e.offline){say('Sem conexão com o servidor. Confira a internet e escolha a máquina de novo.');return;}