From ef0ca5c2666e5b2cde3802c002dbab37f2f06516 Mon Sep 17 00:00:00 2001 From: phantomptr Date: Tue, 24 Nov 2026 14:47:00 -0800 Subject: [PATCH 1/5] Play: a stream another device or the PS5 took over says so in plain words ("Server shutting down") Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT --- client/src/i18n/locales/ar.ts | 1 + client/src/i18n/locales/bn.ts | 1 + client/src/i18n/locales/de.ts | 1 + client/src/i18n/locales/en.ts | 1 + client/src/i18n/locales/es.ts | 1 + client/src/i18n/locales/fa.ts | 1 + client/src/i18n/locales/fr.ts | 1 + client/src/i18n/locales/hi.ts | 1 + client/src/i18n/locales/hu.ts | 1 + client/src/i18n/locales/id.ts | 1 + client/src/i18n/locales/it.ts | 1 + client/src/i18n/locales/ja.ts | 1 + client/src/i18n/locales/ko.ts | 1 + client/src/i18n/locales/pl.ts | 1 + client/src/i18n/locales/pt-BR.ts | 1 + client/src/i18n/locales/ru.ts | 1 + client/src/i18n/locales/th.ts | 1 + client/src/i18n/locales/tr.ts | 1 + client/src/i18n/locales/vi.ts | 1 + client/src/i18n/locales/zh-CN.ts | 1 + client/src/i18n/locales/zh-TW.ts | 1 + client/src/screens/Play/streamError.test.ts | 13 +++++++++++++ client/src/screens/Play/streamErrors.ts | 8 ++++++++ scripts/i18n-source-hashes.json | 1 + 24 files changed, 43 insertions(+) diff --git a/client/src/i18n/locales/ar.ts b/client/src/i18n/locales/ar.ts index e17bc05da..3508f3f5b 100644 --- a/client/src/i18n/locales/ar.ts +++ b/client/src/i18n/locales/ar.ts @@ -7078,6 +7078,7 @@ library_compressed_hint: "تحتاج الصور المضغوطة إلى ShadowMo "rp_phone_be": "استخدام هذا الجهاز كيد تحكم له", "rp_err_keys2": "لم يقبل PS5 اقتران هذا التطبيق. أقرن مجددًا: إعداد «العب» › إقران.", "rp_err_in_use": "جهاز آخر يستخدم التشغيل عن بُعد على هذا PS5، أو أن PS5 ما زال ينهي جلسة. أغلق التشغيل عن بُعد على ذلك الجهاز، ثم اضغط «ابدأ».", +"rp_err_console_took_over": "أنهى PS5 البث لأن شيئًا آخر تولّاه: استُخدمت يد تحكم عند الجهاز، أو بدأ جهاز آخر التشغيل عن بُعد، أو أُطفئ PS5. اضغط ابدأ لتلعب هنا مرة أخرى.", "rp_err_console_ended": "أنهى PS5 البث: {reason}", "rp_err_no_session": "انتهى البث أثناء غياب هذه الصفحة. اضغط «ابدأ» لتلعب مجددًا.", "rp_err_other": "توقّف البث.", diff --git a/client/src/i18n/locales/bn.ts b/client/src/i18n/locales/bn.ts index b9fc7c48f..142abeab5 100644 --- a/client/src/i18n/locales/bn.ts +++ b/client/src/i18n/locales/bn.ts @@ -7078,6 +7078,7 @@ library_compressed_hint: "সংকুচিত ইমেজ চালাতে "rp_phone_be": "এই ডিভাইসকে এর কন্ট্রোলার হিসেবে ব্যবহার করুন", "rp_err_keys2": "PS5 এই অ্যাপের পেয়ারিং গ্রহণ করেনি। আবার পেয়ার করুন: খেলুন সেট আপ করুন › পেয়ার করুন।", "rp_err_in_use": "অন্য একটি ডিভাইস এই PS5-এ Remote Play ব্যবহার করছে, অথবা PS5 এখনও একটি সেশন শেষ করছে। সেই ডিভাইসে Remote Play বন্ধ করুন, তারপর শুরু চাপুন।", +"rp_err_console_took_over": "PS5 স্ট্রিম শেষ করেছে কারণ অন্য কিছু এটি নিয়ে নিয়েছে: কনসোলে একটি কন্ট্রোলার ব্যবহার হয়েছে, অন্য ডিভাইস রিমোট প্লে শুরু করেছে, বা PS5 বন্ধ হয়েছে। এখানে আবার খেলতে Start চাপুন।", "rp_err_console_ended": "PS5 স্ট্রিম শেষ করেছে: {reason}", "rp_err_no_session": "এই পেজ দূরে থাকার সময় স্ট্রিম শেষ হয়েছে। আবার খেলতে শুরু চাপুন।", "rp_err_other": "স্ট্রিম থেমে গেছে।", diff --git a/client/src/i18n/locales/de.ts b/client/src/i18n/locales/de.ts index 93eb67074..da93ad2cc 100644 --- a/client/src/i18n/locales/de.ts +++ b/client/src/i18n/locales/de.ts @@ -7086,6 +7086,7 @@ library_compressed_hint: "Komprimierte Images benötigen ShadowMount+ zum Spiele "rp_phone_be": "Dieses Gerät als Controller nutzen", "rp_err_keys2": "Die PS5 hat die Kopplung dieser App nicht angenommen. Kopple erneut: Spielen einrichten › Koppeln.", "rp_err_in_use": "Ein anderes Gerät nutzt Remote Play auf dieser PS5, oder die PS5 beendet noch eine Sitzung. Schließe Remote Play auf dem anderen Gerät und drücke dann Start.", +"rp_err_console_took_over": "Die PS5 hat den Stream beendet, weil etwas anderes ihn übernommen hat: Ein Controller an der Konsole wurde benutzt, ein anderes Gerät hat Remote Play gestartet oder die PS5 wurde ausgeschaltet. Drücke Start, um hier weiterzuspielen.", "rp_err_console_ended": "Die PS5 hat den Stream beendet: {reason}", "rp_err_no_session": "Der Stream endete, während diese Seite weg war. Drücke Start, um weiterzuspielen.", "rp_err_other": "Der Stream wurde beendet.", diff --git a/client/src/i18n/locales/en.ts b/client/src/i18n/locales/en.ts index 4d44208ce..a8f063c11 100644 --- a/client/src/i18n/locales/en.ts +++ b/client/src/i18n/locales/en.ts @@ -7387,6 +7387,7 @@ library_compressed_hint: "Compressed images need ShadowMount+ to play. To edit, "rp_phone_be": "Use this device as its controller", "rp_err_keys2": "The PS5 did not accept this app's pairing. Pair again: Play › Set up › Pair.", "rp_err_in_use": "Another device is using Remote Play on this PS5, or the PS5 is still finishing a session. Close Remote Play on that device, then press Start.", +"rp_err_console_took_over": "The PS5 ended the stream because something else took it over: a controller at the console was used, another device started Remote Play, or the PS5 was turned off. Press Start to play here again.", "rp_err_console_ended": "The PS5 ended the stream: {reason}", "rp_err_no_session": "The stream ended while this page was away. Press Start to play again.", "rp_err_other": "The stream stopped.", diff --git a/client/src/i18n/locales/es.ts b/client/src/i18n/locales/es.ts index 6a54e6a46..09af27d77 100644 --- a/client/src/i18n/locales/es.ts +++ b/client/src/i18n/locales/es.ts @@ -7031,6 +7031,7 @@ library_compressed_hint: "Las imágenes comprimidas necesitan ShadowMount+ para "rp_phone_be": "Usar este dispositivo como su mando", "rp_err_keys2": "La PS5 no aceptó el emparejamiento de esta app. Empareja de nuevo: Configurar Jugar › Emparejar.", "rp_err_in_use": "Otro dispositivo está usando Remote Play en esta PS5, o la PS5 aún está terminando una sesión. Cierra Remote Play en ese dispositivo y pulsa Iniciar.", +"rp_err_console_took_over": "La PS5 terminó la transmisión porque otra cosa la tomó: se usó un mando en la consola, otro dispositivo inició Remote Play o la PS5 se apagó. Pulsa Iniciar para volver a jugar aquí.", "rp_err_console_ended": "La PS5 terminó la transmisión: {reason}", "rp_err_no_session": "La transmisión terminó mientras esta página no estaba. Pulsa Iniciar para volver a jugar.", "rp_err_other": "La transmisión se detuvo.", diff --git a/client/src/i18n/locales/fa.ts b/client/src/i18n/locales/fa.ts index 81ba8b0b7..3ac64a493 100644 --- a/client/src/i18n/locales/fa.ts +++ b/client/src/i18n/locales/fa.ts @@ -7356,6 +7356,7 @@ library_compressed_hint: "برای اجرای ایمیج فشرده به ShadowM "rp_phone_be": "استفاده از این دستگاه به‌عنوان دسته‌اش", "rp_err_keys2": "PS5 جفت‌شدن این برنامه را نپذیرفت. دوباره جفت کنید: راه‌اندازی «بازی» › جفت کردن.", "rp_err_in_use": "دستگاه دیگری از Remote Play روی این PS5 استفاده می‌کند، یا PS5 هنوز جلسه‌ای را تمام می‌کند. Remote Play را روی آن دستگاه ببندید، سپس «شروع» را بزنید.", +"rp_err_console_took_over": "PS5 پخش را تمام کرد چون چیز دیگری آن را گرفت: یک دسته روی کنسول استفاده شد، دستگاه دیگری Remote Play را شروع کرد یا PS5 خاموش شد. برای بازی دوباره در اینجا، شروع را بزنید.", "rp_err_console_ended": "PS5 پخش را تمام کرد: {reason}", "rp_err_no_session": "پخش در نبود این صفحه تمام شد. برای بازی دوباره «شروع» را بزنید.", "rp_err_other": "پخش متوقف شد.", diff --git a/client/src/i18n/locales/fr.ts b/client/src/i18n/locales/fr.ts index 710fea2aa..b5d53c496 100644 --- a/client/src/i18n/locales/fr.ts +++ b/client/src/i18n/locales/fr.ts @@ -7094,6 +7094,7 @@ library_compressed_hint: "Les images compressées nécessitent ShadowMount+ pour "rp_phone_be": "Utiliser cet appareil comme sa manette", "rp_err_keys2": "La PS5 n'a pas accepté l'association de cette app. Associez à nouveau : Configurer Jouer › Appairer.", "rp_err_in_use": "Un autre appareil utilise Remote Play sur cette PS5, ou la PS5 termine encore une session. Fermez Remote Play sur cet appareil, puis appuyez sur Démarrer.", +"rp_err_console_took_over": "La PS5 a arrêté le flux parce que quelque chose d'autre l'a repris : une manette a été utilisée sur la console, un autre appareil a lancé la lecture à distance, ou la PS5 s'est éteinte. Appuyez sur Démarrer pour rejouer ici.", "rp_err_console_ended": "La PS5 a mis fin au streaming : {reason}", "rp_err_no_session": "Le streaming s'est terminé pendant l'absence de cette page. Appuyez sur Démarrer pour rejouer.", "rp_err_other": "Le flux s'est arrêté.", diff --git a/client/src/i18n/locales/hi.ts b/client/src/i18n/locales/hi.ts index 627c79640..1c2924842 100644 --- a/client/src/i18n/locales/hi.ts +++ b/client/src/i18n/locales/hi.ts @@ -7092,6 +7092,7 @@ library_compressed_hint: "संपीड़ित इमेज चलाने "rp_phone_be": "इस डिवाइस को इसका कंट्रोलर बनाएँ", "rp_err_keys2": "PS5 ने इस ऐप की पेयरिंग स्वीकार नहीं की। फिर से पेयर करें: खेलें सेट अप करें › पेयर करें।", "rp_err_in_use": "कोई दूसरा डिवाइस इस PS5 पर Remote Play इस्तेमाल कर रहा है, या PS5 अभी एक सेशन खत्म कर रहा है। उस डिवाइस पर Remote Play बंद करें, फिर शुरू करें दबाएँ।", +"rp_err_console_took_over": "PS5 ने स्ट्रीम बंद की क्योंकि किसी और ने उसे ले लिया: कंसोल पर कंट्रोलर इस्तेमाल हुआ, किसी दूसरे डिवाइस ने रिमोट प्ले शुरू किया, या PS5 बंद हुआ। यहाँ फिर खेलने के लिए Start दबाएँ।", "rp_err_console_ended": "PS5 ने स्ट्रीम खत्म कर दी: {reason}", "rp_err_no_session": "यह पेज दूर रहते समय स्ट्रीम खत्म हो गई। फिर खेलने के लिए शुरू करें दबाएँ।", "rp_err_other": "स्ट्रीम रुक गई।", diff --git a/client/src/i18n/locales/hu.ts b/client/src/i18n/locales/hu.ts index 5d1e909af..1a02972d2 100644 --- a/client/src/i18n/locales/hu.ts +++ b/client/src/i18n/locales/hu.ts @@ -7370,6 +7370,7 @@ library_compressed_hint: "A tömörített képfájlok futtatásához ShadowMount "rp_phone_be": "Eszköz használata kontrollerként", "rp_err_keys2": "A PS5 nem fogadta el ennek az alkalmazásnak a párosítását. Párosítsd újra: A Játék beállítása › Párosítás.", "rp_err_in_use": "Egy másik eszköz használja a Remote Playt ezen a PS5-ön, vagy a PS5 még befejez egy munkamenetet. Zárd be a Remote Playt azon az eszközön, majd nyomd meg az Indítás gombot.", +"rp_err_console_took_over": "A PS5 befejezte a streamet, mert valami más vette át: a konzolnál használtak egy kontrollert, egy másik eszköz indított Remote Playt, vagy a PS5 kikapcsolt. Nyomd meg a Start gombot, hogy itt játssz tovább.", "rp_err_console_ended": "A PS5 befejezte a streamet: {reason}", "rp_err_no_session": "A stream véget ért, amíg ez az oldal nem volt itt. Az újabb játékhoz nyomd meg az Indítás gombot.", "rp_err_other": "A stream leállt.", diff --git a/client/src/i18n/locales/id.ts b/client/src/i18n/locales/id.ts index 3e1a19981..a175864c7 100644 --- a/client/src/i18n/locales/id.ts +++ b/client/src/i18n/locales/id.ts @@ -7087,6 +7087,7 @@ library_compressed_hint: "Image terkompresi memerlukan ShadowMount+ untuk bermai "rp_phone_be": "Gunakan perangkat ini sebagai kontrolernya", "rp_err_keys2": "PS5 tidak menerima pemasangan aplikasi ini. Pasangkan lagi: Siapkan Main › Pasangkan.", "rp_err_in_use": "Perangkat lain sedang memakai Remote Play di PS5 ini, atau PS5 masih mengakhiri sesi. Tutup Remote Play di perangkat itu, lalu tekan Mulai.", +"rp_err_console_took_over": "PS5 menghentikan stream karena hal lain mengambil alih: kontroler di konsol dipakai, perangkat lain memulai Remote Play, atau PS5 dimatikan. Tekan Start untuk bermain di sini lagi.", "rp_err_console_ended": "PS5 mengakhiri streaming: {reason}", "rp_err_no_session": "Streaming berakhir saat halaman ini tidak ada. Tekan Mulai untuk bermain lagi.", "rp_err_other": "Streaming berhenti.", diff --git a/client/src/i18n/locales/it.ts b/client/src/i18n/locales/it.ts index 7dc001a29..096c1c14e 100644 --- a/client/src/i18n/locales/it.ts +++ b/client/src/i18n/locales/it.ts @@ -7031,6 +7031,7 @@ library_compressed_hint: "Le immagini compresse richiedono ShadowMount+ per gioc "rp_phone_be": "Usa questo dispositivo come suo controller", "rp_err_keys2": "La PS5 non ha accettato l'associazione di questa app. Associa di nuovo: Configura Gioca › Abbina.", "rp_err_in_use": "Un altro dispositivo sta usando Remote Play su questa PS5, oppure la PS5 sta ancora chiudendo una sessione. Chiudi Remote Play su quel dispositivo, poi premi Avvia.", +"rp_err_console_took_over": "La PS5 ha chiuso lo stream perché qualcos'altro l'ha preso: è stato usato un controller sulla console, un altro dispositivo ha avviato Riproduzione remota o la PS5 è stata spenta. Premi Avvia per giocare di nuovo qui.", "rp_err_console_ended": "La PS5 ha chiuso lo streaming: {reason}", "rp_err_no_session": "Lo streaming è finito mentre questa pagina non c'era. Premi Avvia per giocare ancora.", "rp_err_other": "Lo stream si è interrotto.", diff --git a/client/src/i18n/locales/ja.ts b/client/src/i18n/locales/ja.ts index fdc078bf1..60ba5916c 100644 --- a/client/src/i18n/locales/ja.ts +++ b/client/src/i18n/locales/ja.ts @@ -7097,6 +7097,7 @@ library_compressed_hint: "圧縮イメージのプレイには ShadowMount+ が "rp_phone_be": "このデバイスをコントローラーにする", "rp_err_keys2": "PS5 がこのアプリのペアリングを受け付けませんでした。もう一度ペアリングしてください:プレイを設定 › ペアリング。", "rp_err_in_use": "別のデバイスがこの PS5 のリモートプレイを使っているか、PS5 がまだセッションを終了中です。そのデバイスのリモートプレイを閉じてから 開始 を押してください。", +"rp_err_console_took_over": "別のものがストリームを引き継いだため、PS5 がストリームを終了しました(本体のコントローラーが使われた、別の機器がリモートプレイを始めた、または PS5 の電源が切れた)。ここで続けて遊ぶには「開始」を押してください。", "rp_err_console_ended": "PS5 がストリームを終了しました:{reason}", "rp_err_no_session": "このページを離れている間にストリームが終了しました。もう一度遊ぶには 開始 を押してください。", "rp_err_other": "ストリームが停止しました。", diff --git a/client/src/i18n/locales/ko.ts b/client/src/i18n/locales/ko.ts index bc8296912..5f5d61e91 100644 --- a/client/src/i18n/locales/ko.ts +++ b/client/src/i18n/locales/ko.ts @@ -7095,6 +7095,7 @@ library_compressed_hint: "압축 이미지를 플레이하려면 ShadowMount+가 "rp_phone_be": "이 기기를 컨트롤러로 사용", "rp_err_keys2": "PS5가 이 앱의 페어링을 받아들이지 않았습니다. 다시 페어링하세요: 플레이 설정 › 페어링.", "rp_err_in_use": "다른 기기가 이 PS5에서 리모트 플레이를 사용 중이거나 PS5가 아직 세션을 끝내는 중입니다. 그 기기에서 리모트 플레이를 닫은 뒤 시작을 누르세요.", +"rp_err_console_took_over": "다른 것이 세션을 가져가서 PS5가 스트림을 끝냈습니다: 콘솔에서 컨트롤러를 사용했거나, 다른 기기가 리모트 플레이를 시작했거나, PS5가 꺼졌습니다. 여기서 다시 하려면 시작을 누르세요.", "rp_err_console_ended": "PS5가 스트림을 끝냈습니다: {reason}", "rp_err_no_session": "이 페이지가 없는 동안 스트림이 끝났습니다. 다시 플레이하려면 시작을 누르세요.", "rp_err_other": "스트림이 멈췄습니다.", diff --git a/client/src/i18n/locales/pl.ts b/client/src/i18n/locales/pl.ts index de0b738b9..4f031a51b 100644 --- a/client/src/i18n/locales/pl.ts +++ b/client/src/i18n/locales/pl.ts @@ -7315,6 +7315,7 @@ library_compressed_hint: "Skompresowane obrazy wymagają ShadowMount+, aby grać "rp_phone_be": "Użyj tego urządzenia jako jego kontrolera", "rp_err_keys2": "PS5 nie przyjęła parowania tej aplikacji. Sparuj ponownie: Skonfiguruj Graj › Sparuj.", "rp_err_in_use": "Inne urządzenie używa Remote Play na tej PS5 albo PS5 wciąż kończy sesję. Zamknij Remote Play na tamtym urządzeniu, a potem naciśnij Start.", +"rp_err_console_took_over": "PS5 zakończyła stream, bo przejęło go coś innego: użyto kontrolera przy konsoli, inne urządzenie uruchomiło Remote Play albo PS5 się wyłączyła. Naciśnij Start, aby znów grać tutaj.", "rp_err_console_ended": "PS5 zakończyła strumień: {reason}", "rp_err_no_session": "Strumień skończył się, gdy tej strony nie było. Naciśnij Start, aby znów grać.", "rp_err_other": "Strumień się zatrzymał.", diff --git a/client/src/i18n/locales/pt-BR.ts b/client/src/i18n/locales/pt-BR.ts index 36558b51c..652945f2b 100644 --- a/client/src/i18n/locales/pt-BR.ts +++ b/client/src/i18n/locales/pt-BR.ts @@ -7093,6 +7093,7 @@ library_compressed_hint: "Imagens compactadas precisam do ShadowMount+ para joga "rp_phone_be": "Usar este dispositivo como controle dele", "rp_err_keys2": "O PS5 não aceitou o pareamento deste app. Pareie de novo: Configurar Jogar › Parear.", "rp_err_in_use": "Outro dispositivo está usando o Remote Play neste PS5, ou o PS5 ainda está encerrando uma sessão. Feche o Remote Play nesse dispositivo e toque em Iniciar.", +"rp_err_console_took_over": "O PS5 encerrou a transmissão porque outra coisa assumiu: um controle foi usado no console, outro dispositivo iniciou a Reprodução Remota ou o PS5 foi desligado. Pressione Iniciar para jogar aqui de novo.", "rp_err_console_ended": "O PS5 encerrou a transmissão: {reason}", "rp_err_no_session": "A transmissão terminou enquanto esta página estava fora. Toque em Iniciar para jogar de novo.", "rp_err_other": "A transmissão parou.", diff --git a/client/src/i18n/locales/ru.ts b/client/src/i18n/locales/ru.ts index b02d8d058..7a8db016e 100644 --- a/client/src/i18n/locales/ru.ts +++ b/client/src/i18n/locales/ru.ts @@ -7031,6 +7031,7 @@ library_compressed_hint: "Для запуска сжатых образов ну "rp_phone_be": "Сделать это устройство его контроллером", "rp_err_keys2": "PS5 не приняла сопряжение этого приложения. Выполните его заново: Настройка «Игры» › Связать.", "rp_err_in_use": "Другое устройство использует Remote Play на этой PS5, или PS5 ещё завершает сеанс. Закройте Remote Play на том устройстве, затем нажмите «Старт».", +"rp_err_console_took_over": "PS5 завершила трансляцию, потому что её перехватило другое: использовали контроллер у консоли, другое устройство запустило Remote Play или PS5 выключили. Нажмите «Старт», чтобы снова играть здесь.", "rp_err_console_ended": "PS5 завершила трансляцию: {reason}", "rp_err_no_session": "Трансляция закончилась, пока этой страницы не было. Нажмите «Старт», чтобы играть снова.", "rp_err_other": "Поток остановился.", diff --git a/client/src/i18n/locales/th.ts b/client/src/i18n/locales/th.ts index f86179a25..de89cf283 100644 --- a/client/src/i18n/locales/th.ts +++ b/client/src/i18n/locales/th.ts @@ -7085,6 +7085,7 @@ library_compressed_hint: "อิมเมจที่บีบอัดต้อ "rp_phone_be": "ใช้อุปกรณ์นี้เป็นคอนโทรลเลอร์", "rp_err_keys2": "PS5 ไม่ยอมรับการจับคู่ของแอปนี้ จับคู่ใหม่: ตั้งค่าเล่น › จับคู่", "rp_err_in_use": "อุปกรณ์อื่นกำลังใช้ Remote Play บน PS5 เครื่องนี้ หรือ PS5 ยังจบเซสชันไม่เสร็จ ปิด Remote Play บนอุปกรณ์นั้น แล้วกด เริ่ม", +"rp_err_console_took_over": "PS5 หยุดสตรีมเพราะมีอย่างอื่นมาแทน: มีการใช้คอนโทรลเลอร์ที่เครื่อง อุปกรณ์อื่นเริ่มรีโมตเพลย์ หรือ PS5 ถูกปิด กดเริ่มเพื่อเล่นที่นี่อีกครั้ง", "rp_err_console_ended": "PS5 จบการสตรีมแล้ว: {reason}", "rp_err_no_session": "การสตรีมจบลงระหว่างที่หน้านี้ไม่อยู่ กด เริ่ม เพื่อเล่นอีกครั้ง", "rp_err_other": "สตรีมหยุดแล้ว", diff --git a/client/src/i18n/locales/tr.ts b/client/src/i18n/locales/tr.ts index 215bb9fa1..a3011d699 100644 --- a/client/src/i18n/locales/tr.ts +++ b/client/src/i18n/locales/tr.ts @@ -7085,6 +7085,7 @@ library_compressed_hint: "Sıkıştırılmış kalıpları oynatmak için Shadow "rp_phone_be": "Bu cihazı kumandası olarak kullan", "rp_err_keys2": "PS5 bu uygulamanın eşleşmesini kabul etmedi. Yeniden eşleştir: Oyna'yı kur › Eşleştir.", "rp_err_in_use": "Başka bir cihaz bu PS5'te Remote Play kullanıyor ya da PS5 hâlâ bir oturumu bitiriyor. O cihazda Remote Play'i kapatıp Başlat'a bas.", +"rp_err_console_took_over": "PS5 yayını bitirdi çünkü başka bir şey devraldı: konsolda bir kumanda kullanıldı, başka bir cihaz Remote Play başlattı ya da PS5 kapandı. Burada yeniden oynamak için Başlat'a bas.", "rp_err_console_ended": "PS5 yayını bitirdi: {reason}", "rp_err_no_session": "Bu sayfa yokken yayın bitti. Yeniden oynamak için Başlat'a bas.", "rp_err_other": "Yayın durdu.", diff --git a/client/src/i18n/locales/vi.ts b/client/src/i18n/locales/vi.ts index d288cc836..f66557880 100644 --- a/client/src/i18n/locales/vi.ts +++ b/client/src/i18n/locales/vi.ts @@ -7080,6 +7080,7 @@ library_compressed_hint: "Ảnh đĩa nén cần ShadowMount+ để chơi. Để "rp_phone_be": "Dùng thiết bị này làm tay cầm của nó", "rp_err_keys2": "PS5 không chấp nhận ghép đôi của ứng dụng này. Hãy ghép đôi lại: Thiết lập Chơi › Ghép đôi.", "rp_err_in_use": "Một thiết bị khác đang dùng Remote Play trên PS5 này, hoặc PS5 vẫn đang kết thúc một phiên. Hãy đóng Remote Play trên thiết bị đó, rồi nhấn Bắt đầu.", +"rp_err_console_took_over": "PS5 đã kết thúc luồng vì thứ khác đã chiếm lấy: tay cầm ở máy được dùng, thiết bị khác bắt đầu Remote Play, hoặc PS5 đã tắt. Nhấn Bắt đầu để chơi lại ở đây.", "rp_err_console_ended": "PS5 đã kết thúc luồng: {reason}", "rp_err_no_session": "Luồng đã kết thúc khi trang này vắng mặt. Nhấn Bắt đầu để chơi lại.", "rp_err_other": "Luồng đã dừng.", diff --git a/client/src/i18n/locales/zh-CN.ts b/client/src/i18n/locales/zh-CN.ts index bc2862baa..0d7864e82 100644 --- a/client/src/i18n/locales/zh-CN.ts +++ b/client/src/i18n/locales/zh-CN.ts @@ -7037,6 +7037,7 @@ library_compressed_hint: "压缩镜像需要 ShadowMount+ 才能游玩。如需 "rp_phone_be": "将此设备作为它的手柄", "rp_err_keys2": "PS5 未接受此应用的配对。请重新配对:设置畅玩 › 配对。", "rp_err_in_use": "另一台设备正在这台 PS5 上使用远程游玩,或者 PS5 仍在结束会话。请关闭那台设备上的远程游玩,然后按开始。", +"rp_err_console_took_over": "PS5 结束了串流,因为别的东西接管了它:主机旁的手柄被使用、另一台设备开始了远程游玩,或 PS5 被关闭。按“开始”在这里继续玩。", "rp_err_console_ended": "PS5 结束了串流:{reason}", "rp_err_no_session": "串流在此页面离开时已结束。按开始可再次游玩。", "rp_err_other": "串流已停止。", diff --git a/client/src/i18n/locales/zh-TW.ts b/client/src/i18n/locales/zh-TW.ts index 6bf1999d3..4af435c16 100644 --- a/client/src/i18n/locales/zh-TW.ts +++ b/client/src/i18n/locales/zh-TW.ts @@ -7031,6 +7031,7 @@ library_compressed_hint: "壓縮映像需要 ShadowMount+ 才能遊玩。如需 "rp_phone_be": "將此裝置當作它的控制器", "rp_err_keys2": "PS5 未接受此應用程式的配對。請重新配對:設定暢玩 › 配對。", "rp_err_in_use": "另一台裝置正在這台 PS5 上使用遙控遊玩,或 PS5 仍在結束工作階段。請關閉那台裝置上的遙控遊玩,然後按開始。", +"rp_err_console_took_over": "PS5 結束了串流,因為別的東西接管了它:主機旁的控制器被使用、另一台裝置開始了遙控遊玩,或 PS5 被關閉。按「開始」在這裡繼續玩。", "rp_err_console_ended": "PS5 結束了串流:{reason}", "rp_err_no_session": "串流在此頁面離開時已結束。按開始可再次遊玩。", "rp_err_other": "串流已停止。", diff --git a/client/src/screens/Play/streamError.test.ts b/client/src/screens/Play/streamError.test.ts index c1fca24e7..e77c31ecf 100644 --- a/client/src/screens/Play/streamError.test.ts +++ b/client/src/screens/Play/streamError.test.ts @@ -65,3 +65,16 @@ describe("streamErrorMessage", () => { ); }); }); + +describe("a session the PS5 handed to something else", () => { + it("says it was taken over, not Sony's server words (#769)", () => { + const m = streamErrorMessage(tr, { code: "console_ended", detail: "Server shutting down" }); + expect(m).toMatch(/took it over/); + expect(m).not.toMatch(/Server shutting down/); + }); + + it("passes any other reason through as the PS5 gave it", () => { + const m = streamErrorMessage(tr, { code: "console_ended", detail: "Remote Play turned off" }); + expect(m).toBe("The PS5 ended the stream: Remote Play turned off"); + }); +}); diff --git a/client/src/screens/Play/streamErrors.ts b/client/src/screens/Play/streamErrors.ts index 946917f8c..a0b039c31 100644 --- a/client/src/screens/Play/streamErrors.ts +++ b/client/src/screens/Play/streamErrors.ts @@ -29,6 +29,14 @@ export function streamErrorMessage(tr: Tr, e: StreamError): string { "Another device is using Remote Play on this PS5, or the PS5 is still finishing a session. Close Remote Play on that device, then press Start.", ); case "console_ended": + // Sony's words for a session taken over (#769): a controller at the PS5, another device, + // or the console turned off. Said plainly instead of as a server error. + if (/^\s*server shutting down\s*$/i.test(e.detail ?? "")) + return tr( + "rp_err_console_took_over", + undefined, + "The PS5 ended the stream because something else took it over: a controller at the console was used, another device started Remote Play, or the PS5 was turned off. Press Start to play here again.", + ); return tr("rp_err_console_ended", { reason: e.detail }, `The PS5 ended the stream: ${e.detail}`); case "no_session": return tr("rp_err_no_session", undefined, "The stream ended while this page was away. Press Start to play again."); diff --git a/scripts/i18n-source-hashes.json b/scripts/i18n-source-hashes.json index ac070152a..a280e892e 100644 --- a/scripts/i18n-source-hashes.json +++ b/scripts/i18n-source-hashes.json @@ -7154,6 +7154,7 @@ "rp_err_busy": "98ccd35b VHrqvbWtkoTPdamO_UCIN1PBH3w1b9kq2ZgOXjw_rXSm_B1QUoBglFWXdbYY", "rp_err_busy_other": "04da1f06 Eg0zkWCytyqMexug1ZTFm4Ntts7qYjtDyiccMqjm48CxcLae9rFzE8kKSV4F", "rp_err_console_ended": "96ac7b8a yvg3BEVK1KgBXt9Ds6yw-3Ey1edBdvJghl6wAoI_9Os_EsBN1FZSQmrt4vT2", + "rp_err_console_took_over": "067baa5c xek8UxixAXfn_jxSVt6tLfaN-Qhp0iFVmpKD1A93m68bD0RWYtM5mrg6dD2z", "rp_err_decode": "f6c42deb wRhg2Nc7M9nUbUZsrYlmpG72pCUiA75TXEZwbReZHTXPlqSeQy6VZScwYhwg", "rp_err_held": "2ec5a9dd M5ESEqF9SCvej4qN6y7b3r-AuCqGeQj_VFYZexNR9e5gngwCzKgwehW29tFz", "rp_err_in_use": "95206a2e 4-MlDqmCf3SzzhermUdZGBXzQy4BvvhVZgiiNZ15RINKCn2ysWT2hby3YHQD", From 55b477ccef3a489cff58f79de0dcf4296b8187f6 Mon Sep 17 00:00:00 2001 From: phantomptr Date: Tue, 24 Nov 2026 14:47:00 -0800 Subject: [PATCH 2/5] Servers: a sign-in overtaken by an edit or removal is not kept; pairing poll test measures its own time Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT --- .../crates/ps5upload-ctest/tests/pairing.rs | 11 ++- .../crates/ps5upload-engine/src/remote/api.rs | 10 ++- .../ps5upload-engine/src/remote/pool.rs | 83 ++++++++++++++++++- 3 files changed, 97 insertions(+), 7 deletions(-) diff --git a/engine/crates/ps5upload-ctest/tests/pairing.rs b/engine/crates/ps5upload-ctest/tests/pairing.rs index c06f9289e..0d2f318dc 100644 --- a/engine/crates/ps5upload-ctest/tests/pairing.rs +++ b/engine/crates/ps5upload-ctest/tests/pairing.rs @@ -255,6 +255,7 @@ async fn polling_an_unpaired_console_for_a_minute_opens_at_most_two_handshakes() .with_not_paired_ttl(Duration::from_millis(300)), ); let p = pool.clone(); + let began = std::time::Instant::now(); tokio::task::spawn_blocking(move || { for _ in 0..11 { let _ = require_in(&p, "192.0.2.9", ava1::gen::CAP_DATA_PLANE); @@ -263,7 +264,15 @@ async fn polling_an_unpaired_console_for_a_minute_opens_at_most_two_handshakes() }) .await .unwrap(); - assert!(pool.attempts() <= 2, "{} handshakes", pool.attempts()); + // One handshake per not-paired memory (300 ms) at most, never one per poll. The window is + // ~600 ms (two), longer on a loaded machine, where a third is the memory working, not a bug. + let allowed = 1 + (began.elapsed().as_millis() / 300) as usize; + assert!( + pool.attempts() <= allowed.min(10), + "{} handshakes in {:?} (allowed {allowed})", + pool.attempts(), + began.elapsed() + ); assert!(pool.attempts() >= 1); } diff --git a/engine/crates/ps5upload-engine/src/remote/api.rs b/engine/crates/ps5upload-engine/src/remote/api.rs index f24dbf290..489e98fe6 100644 --- a/engine/crates/ps5upload-engine/src/remote/api.rs +++ b/engine/crates/ps5upload-engine/src/remote/api.rs @@ -328,7 +328,11 @@ pub(crate) async fn update_connection(r: &Remote, id: &str, body: ConnectionBody return remote_err(&RemoteError::UnknownConnection(id.to_string())); } r.pool.invalidate(id); - match r.store.update(id, conn, secret) { + let updated = r.store.update(id, conn, secret); + // Again once the new settings are stored: a sign-in that read the old ones in between + // must not leave its session behind (Pool::fs checks the generation). + r.pool.invalidate(id); + match updated { Ok(v) => Json(login_start(r, v).await).into_response(), Err(e) => err(StatusCode::INTERNAL_SERVER_ERROR, e.to_string()), } @@ -336,7 +340,9 @@ pub(crate) async fn update_connection(r: &Remote, id: &str, body: ConnectionBody pub(crate) async fn delete_connection(r: &Remote, id: &str) -> Response { r.pool.invalidate(id); - match r.store.remove(id) { + let removed = r.store.remove(id); + r.pool.invalidate(id); + match removed { Ok(()) => Json(json!({ "ok": true })).into_response(), Err(_) => remote_err(&RemoteError::UnknownConnection(id.to_string())), } diff --git a/engine/crates/ps5upload-engine/src/remote/pool.rs b/engine/crates/ps5upload-engine/src/remote/pool.rs index 2c5d707da..01cdf1b59 100644 --- a/engine/crates/ps5upload-engine/src/remote/pool.rs +++ b/engine/crates/ps5upload-engine/src/remote/pool.rs @@ -1,7 +1,7 @@ //! Signed-in sessions, one per saved connection, reused while browsing and streaming. use std::collections::HashMap; -use std::sync::atomic::{AtomicUsize, Ordering}; +use std::sync::atomic::{AtomicU64, AtomicUsize, Ordering}; use std::sync::{Arc, Mutex, OnceLock}; use std::time::{Duration, Instant}; @@ -90,6 +90,9 @@ pub struct Pool { connector: Box, entries: Mutex, connects: AtomicUsize, + /// Bumped by every `invalidate`: a sign-in that started before an edit or delete must not + /// keep its session (made with the old settings) after it. + generation: AtomicU64, } impl Pool { @@ -98,6 +101,7 @@ impl Pool { connector, entries: Mutex::new(HashMap::new()), connects: AtomicUsize::new(0), + generation: AtomicU64::new(0), } } @@ -113,6 +117,7 @@ impl Pool { /// The session for connection `id`, signing in if there is none (or it went idle). pub async fn fs(&self, store: &Store, id: &str) -> Result, RemoteError> { + let started = self.generation.load(Ordering::SeqCst); let Some((conn, secret)) = store.get(id) else { self.invalidate(id); return Err(RemoteError::UnknownConnection(id.to_string())); @@ -132,8 +137,11 @@ impl Pool { .await .map_err(|e| scrub(e, &secret))?; self.connects.fetch_add(1, Ordering::SeqCst); - self.lock() - .insert(id.to_string(), (Arc::clone(&fs), Instant::now())); + let mut entries = self.lock(); + // Checked under the lock `invalidate` takes, so an edit can't slip in between. + if self.generation.load(Ordering::SeqCst) == started { + entries.insert(id.to_string(), (Arc::clone(&fs), Instant::now())); + } Ok(fs) } @@ -159,7 +167,9 @@ impl Pool { /// Forget the session: the connection was edited or deleted, or the session broke. pub fn invalidate(&self, id: &str) { - self.lock().remove(id); + let mut entries = self.lock(); + self.generation.fetch_add(1, Ordering::SeqCst); + entries.remove(id); } fn lock(&self) -> std::sync::MutexGuard<'_, Sessions> { @@ -525,6 +535,71 @@ mod tests { )); } + /// Signs in only when told to, so a test can edit the connection mid sign-in. + struct GatedConnector { + fs: Arc, + entered: Arc, + go: Arc, + } + + #[async_trait::async_trait] + impl Connector for GatedConnector { + async fn connect( + &self, + _conn: &Connection, + _secret: &Secret, + ) -> Result, RemoteError> { + self.entered.notify_one(); + self.go.notified().await; + let fake = testing::FakeConnector { + fs: Arc::clone(&self.fs), + fail: None, + }; + fake.connect(_conn, _secret).await + } + } + + /// A sign-in that read the old settings and finishes after the connection was edited does + /// not leave its session to be reused with the new ones. + #[tokio::test] + async fn a_sign_in_overtaken_by_an_edit_is_not_kept() { + let entered = Arc::new(tokio::sync::Notify::new()); + let go = Arc::new(tokio::sync::Notify::new()); + let store = Arc::new(Store::open(&crate::remote::store::test_dir()).unwrap()); + let pool = Arc::new(Pool::new(Box::new(GatedConnector { + fs: Arc::new(MemFs::new(&[("/a", b"x")])), + entered: Arc::clone(&entered), + go: Arc::clone(&go), + }))); + let id = store + .add(conn("NAS", Protocol::Smb), Secret::None) + .unwrap() + .conn + .id; + let (p, s, i) = (Arc::clone(&pool), Arc::clone(&store), id.clone()); + let first = tokio::spawn(async move { p.fs(&s, &i).await.map(|_| ()) }); + entered.notified().await; + pool.invalidate(&id); // the edit + go.notify_one(); + first.await.unwrap().unwrap(); + assert_eq!(pool.connects(), 1); + let (p, s, i) = (Arc::clone(&pool), Arc::clone(&store), id.clone()); + let mut second = tokio::spawn(async move { p.fs(&s, &i).await.map(|_| ()) }); + // Reusing the overtaken session signs in to nothing, so wait for whichever comes first: + // a regression then fails the count below instead of waiting forever. + tokio::select! { + _ = entered.notified() => { + go.notify_one(); + second.await.unwrap().unwrap(); + } + r = &mut second => r.unwrap().unwrap(), + } + assert_eq!(pool.connects(), 2, "the overtaken session was reused"); + // With nothing in between, the new session is kept as before. + pool.fs(&store, &id).await.unwrap(); + assert_eq!(pool.connects(), 2); + } + /// A walk the user stopped is not a dropped connection: the session stays, and the server /// is not signed in to again after the cancel. #[tokio::test] From 8637c4c0e3ecaa2ee68b05e1fa988032adf23da1 Mon Sep 17 00:00:00 2001 From: phantomptr Date: Tue, 24 Nov 2026 14:47:00 -0800 Subject: [PATCH 3/5] PS4 add-ons install without a same-ID base game (#924); Files wraps long names on a phone (#923) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT --- client/e2e/files-phone-long-names.spec.ts | 95 +++++++++++++++++++ client/src/screens/FileSystem/index.tsx | 76 ++++++++------- .../src/screens/GameHub/installStaged.test.ts | 12 +++ client/src/screens/GameHub/installStaged.ts | 10 +- client/src/screens/InstallPackage/index.tsx | 8 +- .../crates/ps5upload-engine/api/openapi.json | 2 +- .../ps5upload-engine/src/install/mod.rs | 10 +- .../ps5upload-engine/src/pkg_install.rs | 12 ++- 8 files changed, 177 insertions(+), 48 deletions(-) create mode 100644 client/e2e/files-phone-long-names.spec.ts diff --git a/client/e2e/files-phone-long-names.spec.ts b/client/e2e/files-phone-long-names.spec.ts new file mode 100644 index 000000000..4c259fcfc --- /dev/null +++ b/client/e2e/files-phone-long-names.spec.ts @@ -0,0 +1,95 @@ +import { expect, test, type Page, type Route } from "@playwright/test"; + +// #923: on a phone, long file names were cut off after a few characters because the tag, size and +// buttons share the name's line. There the name now wraps and the tag and size sit below it; wider +// windows keep one line per row. + +const HOST = "192.168.0.5"; +const LONG = "Dead.or.Alive.5.Last.Round.CUSA01778.v1.19.All.DLC.Backport.Fixed.pkg"; +const FILES = [LONG, "b-second.bin"]; + +async function openFiles(page: Page) { + await page.addInitScript((files) => { + const w = window as unknown as Record; + const calls: string[] = []; + w.__calls = calls; + let id = 0; + w.__TAURI_INTERNALS__ = { + invoke: async (cmd: string) => { + calls.push(cmd); + if (cmd === "ps5_list_dir") + return { + entries: files.map((name) => ({ name, kind: "file", size: 1000, mtime: 1791360199 })), + truncated: false, + }; + if (cmd === "payload_check") + return { + ok: true, + reachable: true, + engine: true, + status: { version: "7.0.29", instance_id: 1, ucred_elevated: true }, + }; + return null; + }, + transformCallback: () => ++id, + unregisterCallback: () => {}, + convertFileSrc: (p: string) => p, + metadata: { currentWindow: { label: "main" }, currentWebview: { windowLabel: "main", label: "main" } }, + plugins: {}, + }; + w.__TAURI_EVENT_PLUGIN_INTERNALS__ = { unregisterListener: () => {} }; + }, FILES); + await page.addInitScript((host) => { + window.localStorage.setItem("ps5upload.host", host); + }, HOST); + const json = (route: Route, body: unknown) => + route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify(body) }); + await page.route( + (u) => u.pathname.startsWith("/api/"), + async (route) => { + const p = new URL(route.request().url()).pathname; + if (p === "/api/version") return json(route, { caps: {}, version: "7.0.29" }); + if (p === "/api/ps5/volumes") return json(route, { volumes: [] }); + if (p === "/api/jobs") return json(route, []); + return json(route, {}); + }, + ); + + await page.goto("/files", { waitUntil: "domcontentloaded" }); + const name = page.getByRole("main").getByRole("button", { name: LONG, exact: true }); + await expect(name).toBeVisible({ timeout: 30_000 }); + return name; +} + +test.describe("phone width", () => { + test.use({ viewport: { width: 360, height: 800 }, hasTouch: true, isMobile: true }); + + test("a long file name wraps instead of being cut off, with its size below (#923)", async ({ page }) => { + const name = await openFiles(page); + const fits = await name.evaluate((el) => el.scrollWidth <= el.clientWidth + 1); + expect(fits).toBe(true); + const nameBox = await name.boundingBox(); + const meta = name.locator("xpath=following-sibling::div[1]"); + const metaBox = await meta.boundingBox(); + if (!nameBox || !metaBox) throw new Error("no box"); + // More than one line of text, and the size line starts below the name. + expect(nameBox.height).toBeGreaterThan(24); + expect(metaBox.y).toBeGreaterThanOrEqual(nameBox.y + nameBox.height - 1); + await expect(meta).toContainText("1000 B"); + if (process.env.FS_SHOT) await page.screenshot({ path: process.env.FS_SHOT }); + }); +}); + +test.describe("desktop width", () => { + test.use({ viewport: { width: 1280, height: 800 } }); + + test("rows stay one line, the size beside the name", async ({ page }) => { + const name = await openFiles(page); + const nameBox = await name.boundingBox(); + const size = name.locator("xpath=following-sibling::div[1]").getByText("1000 B"); + const sizeBox = await size.boundingBox(); + if (!nameBox || !sizeBox) throw new Error("no box"); + expect(nameBox.height).toBeLessThan(28); + expect(Math.abs(sizeBox.y + sizeBox.height / 2 - (nameBox.y + nameBox.height / 2))).toBeLessThan(6); + }); +}); diff --git a/client/src/screens/FileSystem/index.tsx b/client/src/screens/FileSystem/index.tsx index 08a9dff7a..2432dd596 100644 --- a/client/src/screens/FileSystem/index.tsx +++ b/client/src/screens/FileSystem/index.tsx @@ -4560,41 +4560,53 @@ export default function FileSystemScreen() { className="input input-sm flex-1" /> ) : ( - - )} - {(() => { - const tag = gameFormatTag(e.name, isDir); - if (!tag) return null; - return ( - + +
+ {(() => { + const tag = gameFormatTag(e.name, isDir); + if (!tag) return null; + return ( + + {gameFormatLabel(tag, tr("fs_tag_folder", undefined, "Folder"))} + + ); + })()} + + {isDir ? "—" : formatBytes(e.size)} + +
+ + )} { expect(install).toHaveBeenCalledOnce(); }); + it("never asks about an add-on, whose title id need not be the game's (#924)", async () => { + const confirm = vi.fn(async () => false); + await installStagedPkg({ + host: "h", + entry: { path: "/data/pkg/ac/EP0006-CUSA01601_00-DOA5LRCOSTUME001.pkg", category: "ac" }, + baseInstalled: false, + confirmWithoutBase: confirm, + }); + expect(confirm).not.toHaveBeenCalled(); + expect(install).toHaveBeenCalledOnce(); + }); + it("offers no button while the package is queued or installing", () => { expect(stagedPkgAction({ status: "queued" })).toBe("busy"); expect(stagedPkgAction({ status: "installing" })).toBe("busy"); diff --git a/client/src/screens/GameHub/installStaged.ts b/client/src/screens/GameHub/installStaged.ts index b9d84e28c..2f1ac2a23 100644 --- a/client/src/screens/GameHub/installStaged.ts +++ b/client/src/screens/GameHub/installStaged.ts @@ -17,15 +17,17 @@ export function stagedPkgAction(entry: Pick; + entry: Pick & Partial>; baseInstalled: boolean; confirmWithoutBase: () => Promise; }): Promise { - if (!opts.baseInstalled && !(await opts.confirmWithoutBase())) return null; + const addOn = opts.entry.category?.toLowerCase().endsWith("ac") ?? false; + if (!opts.baseInstalled && !addOn && !(await opts.confirmWithoutBase())) return null; return pkgLibraryStore(opts.host).getState().install(opts.entry.path, opts.host); } diff --git a/client/src/screens/InstallPackage/index.tsx b/client/src/screens/InstallPackage/index.tsx index 2e7505bed..6419a156d 100644 --- a/client/src/screens/InstallPackage/index.tsx +++ b/client/src/screens/InstallPackage/index.tsx @@ -1272,14 +1272,16 @@ export default function InstallPackageScreen({ // DLC ("ac") share a ContentID AND a title_id — they never overwrite each // other (the library stages them to separate sub-dirs; on the PS5 the base // lands in /user/app//app.pkg and the update in /user/patch// - // patch.pkg). The one thing that goes wrong is ORDER: a patch/DLC needs its + // patch.pkg). The one thing that goes wrong is ORDER: an update needs its // base installed FIRST. Install it without the base and Sony's installer // accepts the request (err_code 0) but nothing actually lands — a confusing - // "it said done but the game's missing". So before installing an add-on + // "it said done but the game's missing". So before installing an update // whose base isn't on the console, warn (advisory, not blocking). async function handleInstall(entry: PkgEntry) { + // Updates only: an add-on installs into its own folder, and its title id need not be the + // game's (Dead or Alive 5 Last Round's are CUSA01601, the game CUSA01778, #924). const baseMissing = - isAddonCategory(entry.category) && + entry.category === "gp" && !!entry.titleId && !installedIds.has(entry.titleId); if (baseMissing) { diff --git a/engine/crates/ps5upload-engine/api/openapi.json b/engine/crates/ps5upload-engine/api/openapi.json index 3dc7ace06..838aa95d0 100644 --- a/engine/crates/ps5upload-engine/api/openapi.json +++ b/engine/crates/ps5upload-engine/api/openapi.json @@ -6931,7 +6931,7 @@ ] }, "state": { - "description": "`installed` — these exact bytes are already on the console\n`different_version_installed` — the title has this kind of artifact, but not this build\n`base_missing` — a patch/add-on with no base game to apply to\n`not_installed` — nothing for this title in this category\n`unknown` — the console couldn't be read; never act on this", + "description": "`installed` — these exact bytes are already on the console\n`different_version_installed` — the title has this kind of artifact, but not this build\n`base_missing` — an update with no base game to apply to (add-ons are not checked)\n`not_installed` — nothing for this title in this category\n`unknown` — the console couldn't be read; never act on this", "type": "string" }, "title_id": { diff --git a/engine/crates/ps5upload-engine/src/install/mod.rs b/engine/crates/ps5upload-engine/src/install/mod.rs index 6e1122c09..c7dc39530 100644 --- a/engine/crates/ps5upload-engine/src/install/mod.rs +++ b/engine/crates/ps5upload-engine/src/install/mod.rs @@ -537,11 +537,13 @@ pub fn base_check_applies(category: &str, title_id: &str) -> Option<&'static str if package_type_for_verify(category, title_id).starts_with("PS5") { return None; } + // Only an update needs its game: Sony accepts one without it and applies nothing. An add-on + // installs into its own folder, and its title id need not be the game's: Dead or Alive 5 + // Last Round's add-ons are CUSA01601 while the game is CUSA01778, and the PS5 installs them + // (#924). The console decides those. let c = category.to_ascii_lowercase(); if c.ends_with("gp") || c.ends_with("dp") { Some("gp") - } else if c.ends_with("ac") { - Some("ac") } else { None } @@ -3687,7 +3689,9 @@ mod tests { assert_eq!(package_type_for_verify("gp", "PPSA00001"), "PS5DP"); assert_eq!(package_type_for_verify("PS5AC", "XXXX00001"), "PS5AC"); assert_eq!(base_check_applies("gp", "CUSA00001"), Some("gp")); - assert_eq!(base_check_applies("PS4AC", "CUSA00001"), Some("ac")); + // An add-on's title id need not be its game's (#924), so the PS5 decides. + assert_eq!(base_check_applies("PS4AC", "CUSA00001"), None); + assert_eq!(base_check_applies("ac", "CUSA01601"), None); assert_eq!(base_check_applies("gd", "CUSA00001"), None); // A PS5 update can carry the whole app (measured), so the PS5 decides. assert_eq!(base_check_applies("gp", "PPSA00001"), None); diff --git a/engine/crates/ps5upload-engine/src/pkg_install.rs b/engine/crates/ps5upload-engine/src/pkg_install.rs index 2cb8c0c7b..31ee1aa48 100644 --- a/engine/crates/ps5upload-engine/src/pkg_install.rs +++ b/engine/crates/ps5upload-engine/src/pkg_install.rs @@ -1692,7 +1692,7 @@ pub struct PreflightQuery { pub struct InstallPreflightResponse { /// `installed` — these exact bytes are already on the console /// `different_version_installed` — the title has this kind of artifact, but not this build - /// `base_missing` — a patch/add-on with no base game to apply to + /// `base_missing` — an update with no base game to apply to (add-ons are not checked) /// `not_installed` — nothing for this title in this category /// `unknown` — the console couldn't be read; never act on this pub state: &'static str, @@ -1753,10 +1753,12 @@ fn install_preflight( resp.installed_version = read_installed_app_ver(&normalize_mgmt_addr(addr), &title_id) .filter(|v| !v.trim().is_empty()); - // A patch or add-on applies to a base that must already be there. Sony - // accepts the request without one and then writes nothing, which used to - // surface as a 10-minute stall — the answer is knowable now, so say it now. - if category != "gd" { + // A patch applies to a base that must already be there. Sony accepts the + // request without one and then writes nothing, which used to surface as a + // 10-minute stall — the answer is knowable now, so say it now. An add-on is + // not checked: its title id need not be the game's (#924), and it installs + // into its own folder either way. + if category == "gp" { let base_present = inventory.artifacts.iter().any(|a| a.kind == "base"); if !base_present { resp.state = "base_missing"; From ef1ac7c134276fd0b67c8f1d9542d4f384c29180 Mon Sep 17 00:00:00 2001 From: phantomptr Date: Tue, 24 Nov 2026 14:47:23 -0800 Subject: [PATCH 4/5] 12.6.27 release notes; catch up to 12.6.26 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT --- CHANGELOG.md | 14 +++++++++++ VERSION | 2 +- client/package-lock.json | 4 ++-- client/package.json | 2 +- client/src-tauri/Cargo.lock | 30 ++++++++++++------------ client/src-tauri/Cargo.toml | 2 +- client/src-tauri/tauri.conf.json | 2 +- engine/Cargo.lock | 40 ++++++++++++++++---------------- engine/Cargo.toml | 2 +- payload/include/config.h | 2 +- 10 files changed, 57 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f9efade8..56f7591d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,20 @@ What's new in ps5upload, written for humans. ## Unreleased +**Install** +- **PS4 add-ons install even when their title ID differs from the game's (#924).** Some games use a different title ID for their add-ons than for the game itself (Dead or Alive 5 Last Round: game CUSA01778, add-ons CUSA01601). The app refused those add-ons with "the base game is not on this PS5", even though the PS5 installs them fine. Add-ons are no longer checked for a base game; the PS5 decides. Updates still are, because the PS5 accepts an update without its game and then installs nothing. + +**Files** +- **Long names are readable on a phone (#923).** On a narrow screen a long file or folder name now wraps onto up to three lines, with its type and size underneath, instead of being cut off after a few characters. Wider windows keep one line per row. + +**Play** +- **"Server shutting down" is explained.** When the PS5 ends the stream because something else took over (a controller at the console was used, another device started Remote Play, or the PS5 was turned off), the app now says that in plain words and tells you to press Start to play here again. + +**Your servers** +- **Editing a server while it signs in uses the new settings.** If you changed or removed a server connection while the app was signing in to it, that sign-in could be kept with the old settings. It is now dropped, and the next use signs in with what you saved. + +## 12.6.26 + **Cheats** - **PS4 games' cheats can be switched on (#920).** In a PS4 game, the app looked for the game's code in the wrong place, so every switch answered "the game's code is not loaded yet". It now uses the PS4 game's own code. As before, nothing is written unless every location holds the cheat's original bytes, so a cheat for another version of the game is still refused. diff --git a/VERSION b/VERSION index 69a0d481c..2340fa1f9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -12.6.25 +12.6.26 diff --git a/client/package-lock.json b/client/package-lock.json index 456baaf1b..0338ec077 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,12 +1,12 @@ { "name": "ps5upload-client", - "version": "12.6.25", + "version": "12.6.26", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ps5upload-client", - "version": "12.6.25", + "version": "12.6.26", "dependencies": { "@tauri-apps/api": "^2.12.5", "@tauri-apps/plugin-dialog": "^2.8.4", diff --git a/client/package.json b/client/package.json index 67d776ba7..aab73a120 100644 --- a/client/package.json +++ b/client/package.json @@ -2,7 +2,7 @@ "name": "ps5upload-client", "private": true, "type": "module", - "version": "12.6.25", + "version": "12.6.26", "description": "The all-in-one PS5 companion app.", "homepage": "https://github.com/phantomptr/ps5upload", "author": "PhantomPtr ", diff --git a/client/src-tauri/Cargo.lock b/client/src-tauri/Cargo.lock index d40b54c9a..cf464b5c6 100644 --- a/client/src-tauri/Cargo.lock +++ b/client/src-tauri/Cargo.lock @@ -4743,7 +4743,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-exfat" -version = "12.6.25" +version = "12.6.26" dependencies = [ "ps5-dump-forge-patch", "ps5upload-fpkg", @@ -4752,14 +4752,14 @@ dependencies = [ [[package]] name = "ps5-dump-forge-patch" -version = "12.6.25" +version = "12.6.26" dependencies = [ "crc32fast", ] [[package]] name = "ps5-dump-forge-pfs" -version = "12.6.25" +version = "12.6.26" dependencies = [ "flate2", "ps5-dump-forge-patch", @@ -4768,7 +4768,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-ufs2" -version = "12.6.25" +version = "12.6.26" dependencies = [ "ps5-dump-forge-patch", "ps5upload-fpkg", @@ -4777,7 +4777,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-zstd" -version = "12.6.25" +version = "12.6.26" dependencies = [ "crc32fast", "getrandom 0.4.3", @@ -4788,7 +4788,7 @@ dependencies = [ [[package]] name = "ps5upload-archive" -version = "12.6.25" +version = "12.6.26" dependencies = [ "anyhow", "crc32fast", @@ -4798,7 +4798,7 @@ dependencies = [ [[package]] name = "ps5upload-ava1" -version = "12.6.25" +version = "12.6.26" dependencies = [ "anyhow", "ava1", @@ -4817,7 +4817,7 @@ dependencies = [ [[package]] name = "ps5upload-convert-core" -version = "12.6.25" +version = "12.6.26" dependencies = [ "blake3", "libc", @@ -4834,7 +4834,7 @@ dependencies = [ [[package]] name = "ps5upload-core" -version = "12.6.25" +version = "12.6.26" dependencies = [ "aes 0.9.2", "aes-gcm 0.11.0", @@ -4868,7 +4868,7 @@ dependencies = [ [[package]] name = "ps5upload-desktop" -version = "12.6.25" +version = "12.6.26" dependencies = [ "anyhow", "ava1", @@ -4909,7 +4909,7 @@ dependencies = [ [[package]] name = "ps5upload-engine" -version = "12.6.25" +version = "12.6.26" dependencies = [ "aes 0.9.2", "aes-gcm 0.11.0", @@ -4973,7 +4973,7 @@ dependencies = [ [[package]] name = "ps5upload-fpkg" -version = "12.6.25" +version = "12.6.26" dependencies = [ "aes 0.9.2", "crc32fast", @@ -4996,7 +4996,7 @@ dependencies = [ [[package]] name = "ps5upload-hub" -version = "12.6.25" +version = "12.6.26" dependencies = [ "axum", "base64 0.23.1", @@ -5010,7 +5010,7 @@ dependencies = [ [[package]] name = "ps5upload-pkg" -version = "12.6.25" +version = "12.6.26" dependencies = [ "aes 0.9.2", "blake3", @@ -5022,7 +5022,7 @@ dependencies = [ [[package]] name = "ps5upload-tailnet" -version = "12.6.25" +version = "12.6.26" dependencies = [ "cc", ] diff --git a/client/src-tauri/Cargo.toml b/client/src-tauri/Cargo.toml index 50c1192a7..4eabe9503 100644 --- a/client/src-tauri/Cargo.toml +++ b/client/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ps5upload-desktop" -version = "12.6.25" +version = "12.6.26" description = "The all-in-one PS5 companion app." license = "GPL-3.0-or-later" edition = "2021" diff --git a/client/src-tauri/tauri.conf.json b/client/src-tauri/tauri.conf.json index ee24cc2ca..67012c11a 100644 --- a/client/src-tauri/tauri.conf.json +++ b/client/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "PS5Upload", - "version": "12.6.25", + "version": "12.6.26", "identifier": "com.phantomptr.ps5upload", "build": { "beforeDevCommand": "npm run dev:vite", diff --git a/engine/Cargo.lock b/engine/Cargo.lock index cd125eb8f..85c776833 100644 --- a/engine/Cargo.lock +++ b/engine/Cargo.lock @@ -2561,7 +2561,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-exfat" -version = "12.6.25" +version = "12.6.26" dependencies = [ "ps5-dump-forge-patch", "ps5upload-fpkg", @@ -2570,14 +2570,14 @@ dependencies = [ [[package]] name = "ps5-dump-forge-patch" -version = "12.6.25" +version = "12.6.26" dependencies = [ "crc32fast", ] [[package]] name = "ps5-dump-forge-pfs" -version = "12.6.25" +version = "12.6.26" dependencies = [ "flate2", "ps5-dump-forge-patch", @@ -2587,7 +2587,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-ufs2" -version = "12.6.25" +version = "12.6.26" dependencies = [ "ps5-dump-forge-patch", "ps5upload-fpkg", @@ -2597,7 +2597,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-zstd" -version = "12.6.25" +version = "12.6.26" dependencies = [ "crc32fast", "getrandom 0.4.3", @@ -2608,7 +2608,7 @@ dependencies = [ [[package]] name = "ps5upload-apidoc" -version = "12.6.25" +version = "12.6.26" dependencies = [ "proc-macro2", "quote", @@ -2618,7 +2618,7 @@ dependencies = [ [[package]] name = "ps5upload-archive" -version = "12.6.25" +version = "12.6.26" dependencies = [ "anyhow", "crc32fast", @@ -2628,7 +2628,7 @@ dependencies = [ [[package]] name = "ps5upload-ava1" -version = "12.6.25" +version = "12.6.26" dependencies = [ "anyhow", "ava1", @@ -2651,7 +2651,7 @@ dependencies = [ [[package]] name = "ps5upload-convert" -version = "12.6.25" +version = "12.6.26" dependencies = [ "libc", "ps5upload-archive", @@ -2666,7 +2666,7 @@ dependencies = [ [[package]] name = "ps5upload-convert-core" -version = "12.6.25" +version = "12.6.26" dependencies = [ "blake3", "flate2", @@ -2686,7 +2686,7 @@ dependencies = [ [[package]] name = "ps5upload-core" -version = "12.6.25" +version = "12.6.26" dependencies = [ "aes 0.9.4", "aes-gcm 0.11.1", @@ -2720,7 +2720,7 @@ dependencies = [ [[package]] name = "ps5upload-ctest" -version = "12.6.25" +version = "12.6.26" dependencies = [ "anyhow", "ava1", @@ -2736,7 +2736,7 @@ dependencies = [ [[package]] name = "ps5upload-engine" -version = "12.6.25" +version = "12.6.26" dependencies = [ "aes 0.9.4", "aes-gcm 0.11.1", @@ -2804,7 +2804,7 @@ dependencies = [ [[package]] name = "ps5upload-fpkg" -version = "12.6.25" +version = "12.6.26" dependencies = [ "aes 0.9.4", "blake3", @@ -2828,7 +2828,7 @@ dependencies = [ [[package]] name = "ps5upload-hub" -version = "12.6.25" +version = "12.6.26" dependencies = [ "axum", "base64 0.23.1", @@ -2843,7 +2843,7 @@ dependencies = [ [[package]] name = "ps5upload-lab" -version = "12.6.25" +version = "12.6.26" dependencies = [ "anyhow", "ava1", @@ -2861,7 +2861,7 @@ dependencies = [ [[package]] name = "ps5upload-pkg" -version = "12.6.25" +version = "12.6.26" dependencies = [ "aes 0.9.4", "blake3", @@ -2873,14 +2873,14 @@ dependencies = [ [[package]] name = "ps5upload-tailnet" -version = "12.6.25" +version = "12.6.26" dependencies = [ "cc", ] [[package]] name = "ps5upload-tests" -version = "12.6.25" +version = "12.6.26" dependencies = [ "anyhow", "ava1", @@ -2898,7 +2898,7 @@ dependencies = [ [[package]] name = "ps5upload-unrar" -version = "12.6.25" +version = "12.6.26" dependencies = [ "serde", "serde_json", diff --git a/engine/Cargo.toml b/engine/Cargo.toml index 4b2031629..12e00ee68 100644 --- a/engine/Cargo.toml +++ b/engine/Cargo.toml @@ -32,7 +32,7 @@ resolver = "2" [workspace.package] edition = "2021" license = "GPL-3.0-or-later" -version = "12.6.25" +version = "12.6.26" [workspace.dependencies] # AVA1 (github.com/phantomptr/ava1): the Rust crate from crates.io; the payload builds the C side diff --git a/payload/include/config.h b/payload/include/config.h index 0c14a9b1b..481dd33c2 100644 --- a/payload/include/config.h +++ b/payload/include/config.h @@ -5,7 +5,7 @@ * UI tell apart an old payload still running from a build that includes * a particular fix, without having to boot the console. Keep in sync * with the desktop app's package.json during releases. */ -#define PS5UPLOAD2_VERSION "12.6.25" +#define PS5UPLOAD2_VERSION "12.6.26" /* Author credit — embedded in the startup toast so anyone looking at * the console screen knows who wrote the software that just loaded. * Kept separate from VERSION so release scripts can bump the version From 3f0041f2534dfb56a70403dce8afc60bc407c357 Mon Sep 17 00:00:00 2001 From: phantomptr Date: Tue, 24 Nov 2026 15:22:37 -0800 Subject: [PATCH 5/5] e2e: the ended-stream test expects the plain-words takeover message Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT --- client/e2e/remote-play.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/e2e/remote-play.spec.ts b/client/e2e/remote-play.spec.ts index b168bdade..7a3b67829 100644 --- a/client/e2e/remote-play.spec.ts +++ b/client/e2e/remote-play.spec.ts @@ -723,7 +723,8 @@ test("a stream the console ended says why, and the Start button is back", async await page.goto("/play", { waitUntil: "domcontentloaded" }); await expect(page.getByRole("heading", { name: "Play", exact: true })).toBeVisible({ timeout: 30_000 }); await page.getByTestId("rp-start").click(); - await expect(page.getByText("The PS5 ended the stream: Server shutting down")).toBeVisible({ timeout: 20_000 }); + // "Server shutting down" is the PS5's word for "something else took over": said in plain words. + await expect(page.getByText(/something else took it over/)).toBeVisible({ timeout: 20_000 }); await expect(page.getByTestId("rp-start")).toBeVisible(); });