fix(app): shorten reconnecting toast text (#9636)
This commit is contained in:
1 parent
2a9395e2d1
commit
dd2281d82c
13 files changed
+15
-15
No files matched your search
@@ -136,7 +136,7 @@ async function expectForkFailureWithoutOverlappingStatus(page: Page) {
|
||||
async function observeToastReplacement(page: Page) {
|
||||
const observation = await page
|
||||
.getByRole("alert")
|
||||
.filter({ hasText: "Reconnecting to host" })
|
||||
.filter({ hasText: "Reconnecting" })
|
||||
.evaluateHandle((toast) => {
|
||||
const frames: Array<{ connected: boolean; opacity: number; transform: string }> = [];
|
||||
let frame = 0;
|
||||
|
||||
@@ -92,7 +92,7 @@ export async function measureRelayRestartDuringStream(input: {
|
||||
agentTitle: string;
|
||||
}): Promise<RelayDeploymentMeasurements> {
|
||||
const { page, relay, agentTitle } = input;
|
||||
const toast = page.getByRole("alert").filter({ hasText: "Reconnecting to host" });
|
||||
const toast = page.getByRole("alert").filter({ hasText: "Reconnecting" });
|
||||
const beforeOutage = await latestAssistantText(page);
|
||||
await waitForAssistantTextToGrow(page, beforeOutage);
|
||||
|
||||
|
||||
@@ -109,18 +109,18 @@ export async function expectReconnectingToastVisible(
|
||||
page: Page,
|
||||
options?: { timeout?: number },
|
||||
): Promise<void> {
|
||||
const toast = page.getByRole("alert").filter({ hasText: "Reconnecting to host" });
|
||||
const toast = page.getByRole("alert").filter({ hasText: "Reconnecting" });
|
||||
await expect(toast).toBeVisible({
|
||||
timeout: options?.timeout ?? 30_000,
|
||||
});
|
||||
await expect(toast).toHaveText("Reconnecting to host");
|
||||
await expect(toast).toHaveText("Reconnecting");
|
||||
}
|
||||
|
||||
export async function expectReconnectingToastGone(
|
||||
page: Page,
|
||||
options?: { timeout?: number },
|
||||
): Promise<void> {
|
||||
await expect(page.getByRole("alert").filter({ hasText: "Reconnecting to host" })).toHaveCount(0, {
|
||||
await expect(page.getByRole("alert").filter({ hasText: "Reconnecting" })).toHaveCount(0, {
|
||||
timeout: options?.timeout ?? 30_000,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ export const ar: TranslationResources = {
|
||||
states: {
|
||||
notFound: "لم يتم العثور على Agent",
|
||||
failedToLoad: "فشل تحميل الوكيل",
|
||||
reconnecting: "جارٍ إعادة الاتصال بالمضيف",
|
||||
reconnecting: "جارٍ إعادة الاتصال",
|
||||
updating: "جارٍ تحديث الرسائل",
|
||||
timelineSyncFailed: "تعذر تحديث سجل الوكيل.",
|
||||
timelineSyncRetrying: "جارٍ إعادة المحاولة…",
|
||||
|
||||
@@ -257,7 +257,7 @@ export const en = {
|
||||
states: {
|
||||
notFound: "Agent not found",
|
||||
failedToLoad: "Failed to load agent",
|
||||
reconnecting: "Reconnecting to host",
|
||||
reconnecting: "Reconnecting",
|
||||
updating: "Updating messages",
|
||||
timelineSyncFailed: "Couldn't refresh agent history.",
|
||||
timelineSyncRetrying: "Retrying…",
|
||||
|
||||
@@ -263,7 +263,7 @@ export const es: TranslationResources = {
|
||||
states: {
|
||||
notFound: "Agentno encontrado",
|
||||
failedToLoad: "No se pudo cargar el agente",
|
||||
reconnecting: "Reconectando al host",
|
||||
reconnecting: "Reconectando",
|
||||
updating: "Actualizando mensajes",
|
||||
timelineSyncFailed: "No se pudo actualizar el historial del agente.",
|
||||
timelineSyncRetrying: "Reintentando…",
|
||||
|
||||
@@ -264,7 +264,7 @@ export const fr: TranslationResources = {
|
||||
states: {
|
||||
notFound: "Agent introuvable",
|
||||
failedToLoad: "Impossible de charger l’agent",
|
||||
reconnecting: "Reconnexion à l’hôte…",
|
||||
reconnecting: "Reconnexion…",
|
||||
updating: "Mise à jour des messages…",
|
||||
timelineSyncFailed: "Impossible d’actualiser l’historique de l’agent.",
|
||||
timelineSyncRetrying: "Nouvelle tentative…",
|
||||
|
||||
@@ -263,7 +263,7 @@ export const ja: TranslationResources = {
|
||||
states: {
|
||||
notFound: "エージェントが見つかりません",
|
||||
failedToLoad: "エージェントの読み込みに失敗しました",
|
||||
reconnecting: "ホストに再接続中",
|
||||
reconnecting: "再接続中",
|
||||
updating: "メッセージを更新中",
|
||||
timelineSyncFailed: "エージェントの履歴を更新できませんでした。",
|
||||
timelineSyncRetrying: "再試行しています…",
|
||||
|
||||
@@ -261,7 +261,7 @@ export const ko: TranslationResources = {
|
||||
states: {
|
||||
notFound: "에이전트를 찾을 수 없습니다",
|
||||
failedToLoad: "에이전트를 불러오지 못했습니다",
|
||||
reconnecting: "호스트에 다시 연결하는 중",
|
||||
reconnecting: "다시 연결하는 중",
|
||||
updating: "메시지 업데이트 중",
|
||||
timelineSyncFailed: "에이전트 기록을 새로고침할 수 없습니다.",
|
||||
timelineSyncRetrying: "재시도 중…",
|
||||
|
||||
@@ -262,7 +262,7 @@ export const ptBR: TranslationResources = {
|
||||
states: {
|
||||
notFound: "Agente não encontrado",
|
||||
failedToLoad: "Falha ao carregar agente",
|
||||
reconnecting: "Reconectando ao host",
|
||||
reconnecting: "Reconectando",
|
||||
updating: "Atualizando mensagens",
|
||||
timelineSyncFailed: "Não foi possível atualizar o histórico do agente.",
|
||||
timelineSyncRetrying: "Tentando novamente…",
|
||||
|
||||
@@ -263,7 +263,7 @@ export const ru: TranslationResources = {
|
||||
states: {
|
||||
notFound: "Агент не найден",
|
||||
failedToLoad: "Не удалось загрузить агента",
|
||||
reconnecting: "Повторное подключение к хосту",
|
||||
reconnecting: "Повторное подключение",
|
||||
updating: "Обновление сообщений",
|
||||
timelineSyncFailed: "Не удалось обновить историю агента.",
|
||||
timelineSyncRetrying: "Повторная попытка…",
|
||||
|
||||
@@ -261,7 +261,7 @@ export const zhCN: TranslationResources = {
|
||||
states: {
|
||||
notFound: "未找到 Agent",
|
||||
failedToLoad: "加载 Agent 失败",
|
||||
reconnecting: "正在重新连接主机",
|
||||
reconnecting: "正在重新连接",
|
||||
updating: "正在更新消息",
|
||||
timelineSyncFailed: "无法刷新代理历史记录。",
|
||||
timelineSyncRetrying: "正在重试…",
|
||||
|
||||
@@ -690,7 +690,7 @@ export function createViewedTimelineSync(ports: ViewedTimelineSyncPorts): Viewed
|
||||
|
||||
// The delay measures the daemon's answer, so it starts when the question is sent. On a cold
|
||||
// start the cache read that precedes the question can outlast it on its own. Only opening a
|
||||
// chat escalates. A reconnect already shows Reconnecting to host until the answer. A resume
|
||||
// chat escalates. A reconnect already shows Reconnecting until the answer. A resume
|
||||
// kept its socket subscribed, so a slow answer is no reason to doubt the chat; a socket that
|
||||
// died quietly is caught by the foreground liveness probe and becomes a reconnect.
|
||||
const startFreshnessCheckDelay = (agentId: string) => {
|
||||
|
||||
Reference in new issue
Block a user