Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
65fb098
fix(server): a site's Copy button in a server browser tab offers its …
Sean-R-Wilson Nov 6, 2026
6b39bab
no-mistakes(review): Fix copy payloads and reject chorded clicks
Sean-R-Wilson Nov 6, 2026
6e8f928
no-mistakes(review): Capture clipboard items and delegated frame copies
Sean-R-Wilson Nov 6, 2026
a4dac88
no-mistakes(review): Preserve copy order and fix HTTP copying
Sean-R-Wilson Nov 6, 2026
c0f3a41
no-mistakes(review): Attribute copy offers to their source frame origin
Sean-R-Wilson Nov 7, 2026
6bd9c4e
no-mistakes(review): Fix copy handoffs and clipboard capture gaps
Sean-R-Wilson Nov 7, 2026
3120566
no-mistakes(review): Preserve clipboard conversion failures
Sean-R-Wilson Nov 7, 2026
9702bee
no-mistakes(document): Clarify streamed clipboard guidance
Sean-R-Wilson Nov 7, 2026
8710d1d
no-mistakes(lint): Format server browser clipboard tests
Sean-R-Wilson Nov 8, 2026
a66b70d
no-mistakes(ci): Fixed the server typecheck error by discarding the u…
Sean-R-Wilson Nov 8, 2026
296ab93
no-mistakes(ci): Checkout cancellation was an infrastructure issue. C…
Sean-R-Wilson Nov 8, 2026
9ee800f
fix(server): isolate clipboard reports to the active copy transfer
maria-rcks Nov 10, 2026
326cc97
Merge remote-tracking branch 'origin/main' into fix/server-browser-si…
juliusmarminge Nov 11, 2026
0fa45a3
test(server): trim page copy cases to distinct paths
juliusmarminge Nov 11, 2026
91bdf45
fix(web): say when an offered page copy could not be copied
Sean-R-Wilson Nov 11, 2026
862b291
Merge origin/main into fix/server-browser-site-copy
Sean-R-Wilson Nov 11, 2026
d09d9cc
Merge origin/main into fix/server-browser-site-copy
Sean-R-Wilson Nov 14, 2026
80c8f8d
Merge origin/main into fix/server-browser-site-copy
Sean-R-Wilson Nov 19, 2026
a5e315e
Merge origin/main into fix/server-browser-site-copy
Sean-R-Wilson Nov 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions apps/mobile/src/features/browser/PreviewStreamWebView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
previewStreamControlLabel,
previewStreamHostSetupMessage,
type PreviewStreamControl,
type PreviewStreamCopyOffer,
type PreviewStreamDownload,
type PreviewStreamFileChooser,
type PreviewStreamInput,
Expand Down Expand Up @@ -94,6 +95,23 @@ async function sendFilesToPage(chooser: PreviewStreamFileChooser, pick: boolean)
if (!response.ok) throw new Error((await response.text()) || m(msg("The upload was refused.")));
}

/** Only this tap writes a page's own copy to the clipboard. */
function offerPageCopy({ text, host }: PreviewStreamCopyOffer) {
const title = host
? m(msg("{host} wants to copy text", { host }))
: m(msg("This page wants to copy text"));
Dialog.alert(title, undefined, [
{ text: m(msg("Not now")), style: "cancel" },
{
text: m(msg("Copy", { $context: "verb, copies text to the clipboard" })),
onPress: () =>
void Clipboard.setStringAsync(text).catch(() =>
Dialog.alert(m(msg("Could not copy the text"))),
),
},
]);
}

function offerDownload(download: PreviewStreamDownload) {
Dialog.alert(m(msg("Downloaded {fileName}", { fileName: download.fileName })), undefined, [
{ text: m(msg("Not now")), style: "cancel" },
Expand Down Expand Up @@ -419,6 +437,9 @@ function PreviewStreamDocumentView({
case "clipboard":
void Clipboard.setStringAsync(message.text).catch(() => undefined);
return;
case "copyOffer":
offerPageCopy(message);
return;
case "download":
offerDownload(message);
return;
Expand Down
2 changes: 2 additions & 0 deletions apps/mobile/src/features/browser/preview-stream-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { DeviceHubAccess } from "@t3tools/client-runtime/device/hub-access"
import type { PreviewStreamHostSetup } from "@t3tools/contracts";
import type {
PreviewStreamControl,
PreviewStreamCopyOffer,
PreviewStreamDownload,
PreviewStreamFileChooser,
} from "@t3tools/client-runtime/preview/server-browser-stream";
Expand Down Expand Up @@ -35,6 +36,7 @@ export type PreviewStreamMessage =
/** The direction a drag scrolls the page, sent every few dozen pixels of it. */
| { readonly type: "scroll"; readonly direction: "up" | "down" }
| { readonly type: "clipboard"; readonly text: string }
| ({ readonly type: "copyOffer" } & PreviewStreamCopyOffer)
| ({ readonly type: "download" } & PreviewStreamDownload)
| { readonly type: "fileChooser"; readonly chooser: PreviewStreamFileChooser | null }
| {
Expand Down
1 change: 1 addition & 0 deletions apps/mobile/src/features/browser/preview-stream.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export function start(configuration: PreviewStreamConfiguration) {
onFrame: (jpeg) => painter.paint(jpeg),
onPointer: showAgentCursor,
onClipboard: (text) => post({ type: "clipboard", text }),
onCopyOffer: (offer) => post({ type: "copyOffer", ...offer }),
onDownload: (download) => post({ type: "download", ...download }),
onFileChooser: (chooser) => post({ type: "fileChooser", chooser }),
onViewport: (page) => {
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "Seiten auf dem localhost von {environment} laden über dessen Verbindung. Versuche es erneut, sobald die Verbindung wieder steht.",
"301045c720839f4d": "Auf {environment} lauscht nichts auf Port {port}. Starte dort den Server und versuche es dann erneut.",
"0b16434dff468d30": "Der Upload wurde abgelehnt.",
"6f1da9a36c248d39": "{host} möchte Text kopieren",
"d044949d07b00044": "Diese Seite möchte Text kopieren",
"4cffda9eddb15bb2": "Kopieren",
"c19c369300a0c9f0": "Der Text konnte nicht kopiert werden",
"bbcd3776bcd3e2c5": "{fileName} heruntergeladen",
"f746b1e0bfb2ec4a": "Nicht jetzt",
"2bbb5073f65cde97": "Der Download konnte nicht gespeichert werden",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "Pages on {environment}’s localhost load through its connection. Try again once it reconnects.",
"301045c720839f4d": "Nothing is listening on port {port} on {environment}. Start the server there, then try again.",
"0b16434dff468d30": "The upload was refused.",
"6f1da9a36c248d39": "{host} wants to copy text",
"d044949d07b00044": "This page wants to copy text",
"4cffda9eddb15bb2": "Copy",
"c19c369300a0c9f0": "Could not copy the text",
"bbcd3776bcd3e2c5": "Downloaded {fileName}",
"f746b1e0bfb2ec4a": "Not now",
"2bbb5073f65cde97": "Could not save the download",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "Las páginas del localhost de {environment} se cargan a través de su conexión. Vuelve a intentarlo cuando se reconecte.",
"301045c720839f4d": "Nada escucha en el puerto {port} de {environment}. Inicia el servidor allí y vuelve a intentarlo.",
"0b16434dff468d30": "Se rechazó la subida.",
"6f1da9a36c248d39": "{host} quiere copiar texto",
"d044949d07b00044": "Esta página quiere copiar texto",
"4cffda9eddb15bb2": "Copiar",
"c19c369300a0c9f0": "No se pudo copiar el texto",
"bbcd3776bcd3e2c5": "Se descargó {fileName}",
"f746b1e0bfb2ec4a": "Ahora no",
"2bbb5073f65cde97": "No se pudo guardar la descarga",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "Les pages du localhost de {environment} passent par sa connexion. Réessaie une fois la connexion rétablie.",
"301045c720839f4d": "Rien n’écoute sur le port {port} de {environment}. Démarre le serveur là-bas, puis réessaie.",
"0b16434dff468d30": "L’envoi a été refusé.",
"6f1da9a36c248d39": "{host} veut copier du texte",
"d044949d07b00044": "Cette page veut copier du texte",
"4cffda9eddb15bb2": "Copier",
"c19c369300a0c9f0": "Impossible de copier le texte",
"bbcd3776bcd3e2c5": "{fileName} téléchargé",
"f746b1e0bfb2ec4a": "Pas maintenant",
"2bbb5073f65cde97": "Impossible d’enregistrer le téléchargement",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "{environment} の localhost のページは、その接続を通じて読み込まれます。再接続されたらもう一度お試しください。",
"301045c720839f4d": "{environment} のポート {port} で待ち受けているものはありません。そこでサーバーを起動してから、もう一度お試しください。",
"0b16434dff468d30": "アップロードは拒否されました。",
"6f1da9a36c248d39": "{host} がテキストをコピーしようとしています",
"d044949d07b00044": "このページがテキストをコピーしようとしています",
"4cffda9eddb15bb2": "コピー",
"c19c369300a0c9f0": "テキストをコピーできませんでした",
"bbcd3776bcd3e2c5": "{fileName} をダウンロードしました",
"f746b1e0bfb2ec4a": "今はしない",
"2bbb5073f65cde97": "ダウンロードを保存できませんでした",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "{environment}의 localhost 페이지는 해당 연결을 통해 로드됩니다. 다시 연결되면 다시 시도하세요.",
"301045c720839f4d": "{environment}의 포트 {port}에서 수신 대기 중인 항목이 없습니다. 그곳에서 서버를 시작한 다음 다시 시도하세요.",
"0b16434dff468d30": "업로드가 거부되었습니다.",
"6f1da9a36c248d39": "{host}에서 텍스트를 복사하려고 합니다",
"d044949d07b00044": "이 페이지에서 텍스트를 복사하려고 합니다",
"4cffda9eddb15bb2": "복사",
"c19c369300a0c9f0": "텍스트를 복사할 수 없습니다",
"bbcd3776bcd3e2c5": "{fileName} 다운로드됨",
"f746b1e0bfb2ec4a": "나중에",
"2bbb5073f65cde97": "다운로드를 저장할 수 없습니다",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "As páginas do localhost de {environment} carregam pela conexão dele. Tente novamente quando ela se reconectar.",
"301045c720839f4d": "Nada está escutando na porta {port} de {environment}. Inicie o servidor lá e tente novamente.",
"0b16434dff468d30": "O envio foi recusado.",
"6f1da9a36c248d39": "{host} quer copiar um texto",
"d044949d07b00044": "Esta página quer copiar um texto",
"4cffda9eddb15bb2": "Copiar",
"c19c369300a0c9f0": "Não foi possível copiar o texto",
"bbcd3776bcd3e2c5": "{fileName} baixado",
"f746b1e0bfb2ec4a": "Agora não",
"2bbb5073f65cde97": "Não foi possível salvar o download",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "Страницы localhost окружения {environment} загружаются через его подключение. Повторите попытку, когда оно восстановится.",
"301045c720839f4d": "На порту {port} в {environment} ничего не слушает. Запустите там сервер и повторите попытку.",
"0b16434dff468d30": "Загрузка отклонена.",
"6f1da9a36c248d39": "{host} хочет скопировать текст",
"d044949d07b00044": "Эта страница хочет скопировать текст",
"4cffda9eddb15bb2": "Копировать",
"c19c369300a0c9f0": "Не удалось скопировать текст",
"bbcd3776bcd3e2c5": "Скачан {fileName}",
"f746b1e0bfb2ec4a": "Не сейчас",
"2bbb5073f65cde97": "Не удалось сохранить загруженный файл",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -1787,6 +1787,10 @@
"69e9c247d0266e9f": "Sidor på localhost i {environment} laddas via dess anslutning. Försök igen när den har återanslutit.",
"301045c720839f4d": "Inget lyssnar på port {port} i {environment}. Starta servern där och försök sedan igen.",
"0b16434dff468d30": "Uppladdningen nekades.",
"6f1da9a36c248d39": "{host} vill kopiera text",
"d044949d07b00044": "Den här sidan vill kopiera text",
"4cffda9eddb15bb2": "Kopiera",
"c19c369300a0c9f0": "Kunde inte kopiera texten",
"bbcd3776bcd3e2c5": "Laddade ned {fileName}",
"f746b1e0bfb2ec4a": "Inte nu",
"2bbb5073f65cde97": "Kunde inte spara nedladdningen",
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/src/i18n/translations/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,10 @@
"69e9c247d0266e9f": "{environment} 上的 localhost 页面通过其连接加载。重新连接后请再试一次。",
"301045c720839f4d": "{environment} 上的端口 {port} 没有任何服务在监听。请在那里启动服务器,然后再试一次。",
"0b16434dff468d30": "上传被拒绝。",
"6f1da9a36c248d39": "{host} 想要复制文字",
"d044949d07b00044": "此页面想要复制文字",
"4cffda9eddb15bb2": "复制",
"c19c369300a0c9f0": "无法复制文字",
"bbcd3776bcd3e2c5": "已下载 {fileName}",
"f746b1e0bfb2ec4a": "暂不",
"2bbb5073f65cde97": "无法保存下载内容",
Expand Down
Loading
Loading