diff --git a/src/features/agents/Session.module.css b/src/features/agents/Session.module.css index 6fb8a235bb..125da7bcc4 100644 --- a/src/features/agents/Session.module.css +++ b/src/features/agents/Session.module.css @@ -1154,32 +1154,86 @@ flex-wrap: wrap; align-items: center; align-content: flex-start; - gap: 0 10px; + gap: 0 6px; color: var(--fg-subtle); font-size: var(--fs-small); font-variant-numeric: tabular-nums; white-space: nowrap; } +.meterSegment { + display: inline-flex; + flex: 0 1 auto; + align-items: center; + min-width: 0; + height: 22px; + gap: 6px; +} +.meterGroup { + display: inline-flex; + flex: 0 1 auto; + align-items: center; + min-width: 0; + height: 22px; + gap: 6px; +} +.meterDivider { + flex: none; + width: 1px; + height: 11px; + background: var(--border-strong); + opacity: 0.5; +} .meter { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; - height: 22px; + height: 20px; gap: 5px; overflow: hidden; } -.usageBar { - width: 36px; - height: 4px; - border-radius: 2px; - background: var(--border); - overflow: hidden; +.meterValue { + line-height: 1; } -.usageBar > span { +.usageRing { + flex: none; + width: 13px; + height: 13px; display: block; - height: 100%; - background: var(--fg-muted); +} +.usageRingTrack { + fill: none; + stroke: color-mix(in srgb, currentColor 22%, transparent); + stroke-width: 1.75; +} +.usageRingArc { + fill: none; + stroke: var(--fg-muted); + stroke-width: 1.75; + stroke-linecap: round; + transition: + stroke-dashoffset 200ms var(--ease), + stroke var(--dur-fast) var(--ease); +} +.limitsButton { + gap: 0; +} +.limitItem { + display: inline-flex; + align-items: baseline; + gap: 3px; +} +.limitWindow { + color: var(--fg-faint); +} +.limitPercent { + color: inherit; +} +.meterDot { + flex: none; + margin: 0 5px; + color: var(--fg-faint); + opacity: 0.65; } .images { @@ -1937,8 +1991,110 @@ color: inherit; font: inherit; border: 0; + border-radius: var(--radius-control); background: transparent; - padding: 0 var(--space-1); + padding: 0 5px; + transition: + background var(--dur-fast) var(--ease), + color var(--dur-fast) var(--ease); +} +.meterButton:hover, +.meterButton[aria-expanded="true"] { + background: var(--bg-toolbar-hover); + color: var(--fg); +} +.meterButton:hover .usageRingArc, +.meterButton[aria-expanded="true"] .usageRingArc { + stroke: currentColor; +} +.limitsButton:hover .limitWindow, +.limitsButton[aria-expanded="true"] .limitWindow { + color: var(--fg-subtle); +} +.meterButton:focus-visible { + outline: 1px solid var(--focus-ring); + outline-offset: -1px; +} +.meterWarning, +.meterWarning:hover, +.meterWarning[aria-expanded="true"] { + color: var(--warning); +} +.meterDanger, +.meterDanger:hover, +.meterDanger[aria-expanded="true"] { + color: var(--danger); +} +.meterWarning .usageRingArc, +.meterDanger .usageRingArc { + stroke: currentColor; +} +.meterWarning .meterValue, +.meterDanger .meterValue, +.meterWarning .limitPercent, +.meterDanger .limitPercent { + font-weight: 500; +} +.limitsDetails { + display: grid; + gap: var(--space-2); + width: min(272px, 80vw); + padding: var(--space-3); + color: var(--fg-secondary); + font-size: var(--fs-ui); + font-variant-numeric: tabular-nums; +} +.limitsList { + display: grid; + gap: var(--space-3); +} +.limitsRow { + display: grid; + gap: 5px; +} +.limitsRowHeader { + display: flex; + align-items: baseline; + justify-content: space-between; + gap: var(--space-2); +} +.limitsRowName { + color: var(--fg); + font-size: var(--fs-small); +} +.limitsRowPercent { + color: var(--fg-secondary); + font-size: var(--fs-small); +} +.meterWarning .limitsRowPercent { + color: var(--warning); + font-weight: 500; +} +.meterDanger .limitsRowPercent { + color: var(--danger); + font-weight: 500; +} +.limitsTrack { + height: 4px; + border-radius: 2px; + background: var(--border); + overflow: hidden; +} +.limitsFill { + display: block; + height: 100%; + border-radius: 2px; + background: var(--fg-muted); +} +.meterWarning .limitsFill { + background: var(--warning); +} +.meterDanger .limitsFill { + background: var(--danger); +} +.limitsReset { + color: var(--fg-subtle); + font-size: var(--fs-tiny, var(--fs-small)); } .contextPopover { max-width: calc(100vw - 24px); diff --git a/src/features/agents/composerModel.ts b/src/features/agents/composerModel.ts index 61ca897778..e793335c81 100644 --- a/src/features/agents/composerModel.ts +++ b/src/features/agents/composerModel.ts @@ -599,23 +599,51 @@ const LIMIT_WINDOWS: Record = { seven_day_sonnet: { short: "7d Sonnet", name: "Weekly Sonnet limit" }, }; +/** Visual severity for a usage percentage meter: quiet until nearing the cap. */ +export type MeterTone = "warning" | "danger"; + +export function meterTone(percent: number): MeterTone | undefined { + if (percent >= 95) return "danger"; + if (percent >= 80) return "warning"; + return undefined; +} + +/** Structured fields for a usage-limit window, shared by inline badges and the detail popover. */ +export function limitParts( + l: AgentLimit, + now: number, +): { + windowShort: string; + name: string; + percent: number; + resetIn: string | null; + detail: string; +} { + const known = LIMIT_WINDOWS[l.window]; + const windowShort = known?.short ?? l.window; + const percent = Math.min(100, Math.round(l.usedPercent ?? 0)); + const name = known ? tx(known.name) : l.window; + const used = tx`${known ? txPart(known.name) : l.window}: ${percent}% used`; + if (l.resetsMs == null) { + return { windowShort, name, percent, resetIn: null, detail: used }; + } + const resetIn = untilReset(Math.max(0, l.resetsMs - now)); + return { + windowShort, + name, + percent, + resetIn, + detail: tx`${used}, resets in ${resetIn}`, + }; +} + /** "5h 19%" for a usage-limit window, and a tooltip saying when it resets. */ export function limitLabel(l: AgentLimit, now: number): { short: string; percent: number; detail: string } { - const known = LIMIT_WINDOWS[l.window]; - const percent = Math.min(100, Math.round(l.usedPercent ?? 0)); - const name = known ? txPart(known.name) : l.window; - const used = tx`${name}: ${percent}% used`; - if (l.resetsMs == null) - return { - short: `${known?.short ?? l.window} ${percent}%`, - percent, - detail: used, - }; - const reset = untilReset(Math.max(0, l.resetsMs - now)); + const { windowShort, percent, detail } = limitParts(l, now); return { - short: `${known?.short ?? l.window} ${percent}%`, + short: `${windowShort} ${percent}%`, percent, - detail: tx`${used}, resets in ${reset}`, + detail, }; } diff --git a/src/features/agents/session/ContextMeter.tsx b/src/features/agents/session/ContextMeter.tsx index 2368a5bb2d..10d7e13842 100644 --- a/src/features/agents/session/ContextMeter.tsx +++ b/src/features/agents/session/ContextMeter.tsx @@ -1,13 +1,17 @@ import { useEffect, useRef, useState } from "react"; +import clsx from "clsx"; import type { AgentContextUsage, AgentTask, AgentUsage } from "@/bindings"; import { call, commands } from "@/platform/ipc"; import { useTx } from "@/platform/i18n"; import { Button, Popup, T, tooltipAttrs } from "@/ui"; -import { usageLabel } from "../composerModel"; +import { meterTone, usageLabel } from "../composerModel"; import { isBusy } from "../model"; import { resendMessage } from "../store"; import styles from "../Session.module.css"; +const RING_RADIUS = 5; +const RING_CIRCUMFERENCE = 2 * Math.PI * RING_RADIUS; + const categoryTones = new Map([ ["System prompt", "var(--accent)"], ["System tools", "var(--warning)"], @@ -37,17 +41,38 @@ export function ContextMeter({ task, usage }: { task: AgentTask; usage: AgentUsa const timer = window.setTimeout(() => setPhase("closed"), 100); return () => window.clearTimeout(timer); }, [phase]); + const severity = meterTone(label.percent); + const severityClass = + severity === "danger" ? styles.meterDanger : severity === "warning" ? styles.meterWarning : undefined; + const dashOffset = RING_CIRCUMFERENCE * (1 - label.percent / 100); const meter = ( <> - - - - {label.percent}% + + + 0 ? 1 : 0} + transform="rotate(-90 7 7)" + data-percent={label.percent} + /> + + {label.percent}% ); if (!task.capabilities?.contextUsage) return ( - + {meter} ); @@ -56,7 +81,8 @@ export function ContextMeter({ task, usage }: { task: AgentTask; usage: AgentUsa + +
+
+ + Usage limits + +
+
+ {items.map((item) => { + const severity = meterTone(item.percent); + const severityClass = + severity === "danger" ? styles.meterDanger : severity === "warning" ? styles.meterWarning : undefined; + return ( +
+
+ {item.name} + {item.percent}% +
+
+ +
+ {item.resetIn && {tx`Resets in ${item.resetIn}`}} +
+ ); + })} +
+
+
+ ); } diff --git a/src/features/agents/sessionState.test.tsx b/src/features/agents/sessionState.test.tsx index d0f2c6d06e..2dfbc23689 100644 --- a/src/features/agents/sessionState.test.tsx +++ b/src/features/agents/sessionState.test.tsx @@ -2301,14 +2301,12 @@ describe("meters in the task header", () => { render(); await screen.findByText("Answer A"); const usage = screen.getByLabelText(/^Context /); - // The bar and percent show; the counts are in its label and tooltip. + // The ring and percent show; the counts are in its label and tooltip. expect(usage).toHaveTextContent("12%"); expect(usage).toHaveAccessibleName(/24k\/200k \(12%\)/); - expect(usage.querySelector(`.${styles.usageBar} span`)).toHaveStyle({ - width: "12%", - }); - expect(screen.getByText("5h 19%")).toBeInTheDocument(); - expect(screen.getByText("7d 9%")).toBeInTheDocument(); + expect(usage.querySelector(`.${styles.usageRingArc}`)).toHaveAttribute("data-percent", "12"); + expect(screen.getByLabelText("5-hour limit: 19% used")).toHaveTextContent("5h 19%"); + expect(screen.getByLabelText("Weekly limit: 9% used")).toHaveTextContent("7d 9%"); expect(screen.queryByText("$0.42")).toBeNull(); act(() => useProject.setState({ @@ -2322,10 +2320,42 @@ describe("meters in the task header", () => { }), ); expect(screen.queryByText("24k/200k (12%)")).toBeNull(); - expect(screen.queryByText("5h 19%")).toBeNull(); + expect(screen.queryByLabelText("5-hour limit: 19% used")).toBeNull(); expect(screen.getByText("$0.42")).toBeInTheDocument(); }); + it("colors meters at warning/danger thresholds and opens usage-limit details on click", async () => { + const reported: AgentTask = { + ...task("A"), + usage: { used: 164_000, size: 200_000, cost: null }, + }; + const limits = [ + { window: "five_hour", usedPercent: 82, resetsMs: Date.now() + 2 * 3_600_000 }, + { window: "seven_day", usedPercent: 95, resetsMs: null }, + ]; + useAgents.setState({ + tasks: new Map([["A", reported]]), + limits: new Map([["codex", limits]]), + }); + render(); + await screen.findByText("Answer A"); + + expect(screen.getByLabelText(/^Context /)).toHaveAttribute("data-tone", "warning"); + const fiveHour = screen.getByLabelText(/^5-hour limit: 82% used/); + const sevenDay = screen.getByLabelText("Weekly limit: 95% used"); + expect(fiveHour).toHaveTextContent("5h 82%"); + expect(fiveHour).toHaveAttribute("data-tone", "warning"); + expect(sevenDay).toHaveTextContent("7d 95%"); + expect(sevenDay).toHaveAttribute("data-tone", "danger"); + + fireEvent.click(screen.getByRole("button", { name: "Usage limits" })); + expect(await screen.findByRole("dialog", { name: "Usage limits" })).toBeInTheDocument(); + expect(screen.getByText("5-hour limit")).toBeInTheDocument(); + expect(screen.getByText("Weekly limit")).toBeInTheDocument(); + fireEvent.keyDown(document, { key: "Escape" }); + expect(screen.queryByRole("dialog", { name: "Usage limits" })).toBeNull(); + }); + it("toggles fitWidth on the session root and remeasures off-screen rows from settings.agents.fitWindowWidth", async () => { const frames: FrameRequestCallback[] = []; const raf = vi.spyOn(window, "requestAnimationFrame").mockImplementation((cb) => { diff --git a/src/features/settings/pages/tools.tsx b/src/features/settings/pages/tools.tsx index eae1159f2f..c8fd48524b 100644 --- a/src/features/settings/pages/tools.tsx +++ b/src/features/settings/pages/tools.tsx @@ -842,7 +842,6 @@ export const TOOLS_PAGES: PageSpec[] = [ title: "Shown in the Task Header", options: [ { kind: "toggle", key: "agents.showContextUsage", label: "Context window usage" }, - { kind: "toggle", key: "agents.showWorkTime", label: "Time spent on the task" }, { kind: "toggle", key: "agents.showUsageLimits", diff --git a/src/platform/locales/text/es.json b/src/platform/locales/text/es.json index 83cb2f50db..8175f492d5 100644 --- a/src/platform/locales/text/es.json +++ b/src/platform/locales/text/es.json @@ -4432,7 +4432,6 @@ "Find in Conversation": "Buscar en la conversación", "Find in conversation": "Buscar en la conversación", "0 results": "0 resultados", - "Time the agent spent on this task": "Tiempo que dedicó el agente a esta tarea", "Send Again": "Enviar de nuevo", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Personalice la apariencia y el comportamiento del IDE: cambie temas y tamaño de fuente, configure ajustes del sistema y notificaciones.", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "Configure la edición de código: autocompletado, plegado, pestañas, fuentes, colores, estilo de código e inspecciones.", @@ -5677,7 +5676,6 @@ "Chat": "Chat", "Shown in the Task Header": "Se muestra en el encabezado de la tarea", "Context window usage": "Uso de la ventana de contexto", - "Time spent on the task": "Tiempo dedicado a la tarea", "Usage limits": "Límites de uso", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "Los límites de 5 horas y semanales de la cuenta, cuando el agente los informa (Claude Code)", "Session cost": "Costo de la sesión", @@ -6110,5 +6108,6 @@ "Roll Back to Here": "Revertir hasta aquí", "Couldn't roll back": "No se pudo revertir", "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "Este mensaje y los posteriores se eliminan, y los archivos que el agente modificó desde entonces vuelven a como estaban antes de enviarlo. El mensaje vuelve al cuadro de texto.", - "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "Esto borra toda la conversación, devuelve los archivos que el agente modificó a como estaban al empezar la tarea e inicia una nueva sesión del agente con este mensaje." + "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "Esto borra toda la conversación, devuelve los archivos que el agente modificó a como estaban al empezar la tarea e inicia una nueva sesión del agente con este mensaje.", + "Resets in {resetIn}": "Se restablece en {resetIn}" } diff --git a/src/platform/locales/text/fr.json b/src/platform/locales/text/fr.json index 16f78c4276..8dbb0ca7d7 100644 --- a/src/platform/locales/text/fr.json +++ b/src/platform/locales/text/fr.json @@ -4288,7 +4288,6 @@ "Find in Conversation": "Rechercher dans la conversation", "Find in conversation": "Rechercher dans la conversation", "0 results": "0 résultat", - "Time the agent spent on this task": "Temps passé par l'agent sur cette tâche", "Send Again": "Renvoyer", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Personnalisez l'apparence et le comportement de l'IDE : thèmes, taille de police, paramètres système et notifications.", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "Configurez l'édition du code : complétion, pliage, onglets, polices, couleurs, style de code et inspections.", @@ -5607,7 +5606,6 @@ "Chat": "Discussion", "Shown in the Task Header": "Affiché dans l'en-tête de la tâche", "Context window usage": "Utilisation de la fenêtre de contexte", - "Time spent on the task": "Temps passé sur la tâche", "Usage limits": "Limites d'utilisation", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "Les limites sur 5 heures et hebdomadaires du compte, lorsque l'agent les indique (Claude Code)", "Session cost": "Coût de la session", @@ -5753,5 +5751,6 @@ "Roll Back to Here": "Revenir à ce point", "Couldn't roll back": "Impossible de revenir en arrière", "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "Ce message et les suivants sont supprimés, et les fichiers modifiés par l'agent depuis reviennent à leur état d'avant l'envoi. Le message revient dans la zone de saisie.", - "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "Cela efface toute la conversation, remet les fichiers modifiés par l'agent dans leur état du début de la tâche et démarre une nouvelle session de l'agent avec ce message." + "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "Cela efface toute la conversation, remet les fichiers modifiés par l'agent dans leur état du début de la tâche et démarre une nouvelle session de l'agent avec ce message.", + "Resets in {resetIn}": "Réinitialisation dans {resetIn}" } diff --git a/src/platform/locales/text/ko.json b/src/platform/locales/text/ko.json index 24b540d9ca..1ce94430fb 100644 --- a/src/platform/locales/text/ko.json +++ b/src/platform/locales/text/ko.json @@ -4499,7 +4499,6 @@ "Find in Conversation": "대화에서 찾기", "Find in conversation": "대화에서 찾기", "0 results": "결과 0개", - "Time the agent spent on this task": "에이전트가 이 작업에 소요한 시간", "Send Again": "다시 보내기", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "IDE 모양과 동작을 사용자 지정합니다. 테마와 글꼴 크기를 변경하고 시스템 설정과 알림을 구성합니다.", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "코드 편집을 구성합니다: 완성, 접기, 탭, 글꼴, 색, 코드 스타일 및 검사.", @@ -5744,7 +5743,6 @@ "Chat": "채팅", "Shown in the Task Header": "작업 헤더에 표시", "Context window usage": "컨텍스트 창 사용량", - "Time spent on the task": "작업 소요 시간", "Usage limits": "사용 한도", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "에이전트가 보고하는 경우 계정의 5시간 및 주간 한도(Claude Code)", "Session cost": "세션 비용", @@ -6220,5 +6218,6 @@ "Roll Back to Here": "여기로 롤백", "Couldn't roll back": "롤백할 수 없습니다", "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "이 메시지와 이후 메시지가 제거되고, 그 이후 에이전트가 변경한 파일은 메시지를 보내기 전 상태로 돌아갑니다. 메시지는 입력란으로 돌아갑니다.", - "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "전체 대화를 지우고, 에이전트가 변경한 파일을 작업 시작 시점의 상태로 되돌린 뒤, 이 메시지로 새 에이전트 세션을 시작합니다." + "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "전체 대화를 지우고, 에이전트가 변경한 파일을 작업 시작 시점의 상태로 되돌린 뒤, 이 메시지로 새 에이전트 세션을 시작합니다.", + "Resets in {resetIn}": "{resetIn} 후 재설정" } diff --git a/src/platform/locales/text/pl.json b/src/platform/locales/text/pl.json index 6a0d564b76..f0aff6ca85 100644 --- a/src/platform/locales/text/pl.json +++ b/src/platform/locales/text/pl.json @@ -4384,7 +4384,6 @@ "Find in Conversation": "Znajdź w rozmowie", "Find in conversation": "Znajdź w rozmowie", "0 results": "0 wyników", - "Time the agent spent on this task": "Czas spędzony przez agenta nad tym zadaniem", "Send Again": "Wyślij ponownie", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Dostosuj wygląd i zachowanie IDE: zmieniaj motywy i rozmiary czcionek, konfiguruj ustawienia systemowe i powiadomienia.", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "Konfiguruj edycję kodu: automatyczne uzupełnianie, zwijanie kodu, karty, czcionki, kolory, styl kodu oraz inspekcje.", @@ -5606,7 +5605,6 @@ "Chat": "Czat", "Shown in the Task Header": "Pokazywane w nagłówku zadania", "Context window usage": "Wykorzystanie okna kontekstu", - "Time spent on the task": "Czas poświęcony na zadanie", "Usage limits": "Limity użycia", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "Limity 5-godzinne oraz tygodniowe konta zgłaszane przez agenta (Claude Code)", "Session cost": "Koszt sesji", @@ -5918,5 +5916,6 @@ "Roll Back to Here": "Wycofaj do tego miejsca", "Couldn't roll back": "Nie udało się wycofać", "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "Ta wiadomość i kolejne zostaną usunięte, a pliki zmienione od tego czasu przez agenta wrócą do stanu sprzed jej wysłania. Wiadomość wróci do pola tekstowego.", - "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "To wyczyści całą rozmowę, przywróci pliki zmienione przez agenta do stanu z początku zadania i rozpocznie nową sesję agenta z tą wiadomością." + "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "To wyczyści całą rozmowę, przywróci pliki zmienione przez agenta do stanu z początku zadania i rozpocznie nową sesję agenta z tą wiadomością.", + "Resets in {resetIn}": "Resetuje się za {resetIn}" } diff --git a/src/platform/locales/text/pt.json b/src/platform/locales/text/pt.json index bed90a0766..e710eee1ef 100644 --- a/src/platform/locales/text/pt.json +++ b/src/platform/locales/text/pt.json @@ -4398,7 +4398,6 @@ "Find in Conversation": "Localizar na conversa", "Find in conversation": "Localizar na conversa", "0 results": "0 resultados", - "Time the agent spent on this task": "Tempo que o agente gastou nesta tarefa", "Send Again": "Enviar novamente", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Personalize a aparência e o comportamento da IDE: altere temas e tamanho da fonte, configure as opções do sistema e notificações.", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "Configure a edição de código: preenchimento automático, dobramento de código, abas, fontes, cores, estilo de código e inspeções.", @@ -5621,7 +5620,6 @@ "Chat": "Chat", "Shown in the Task Header": "Mostrado no cabeçalho da tarefa", "Context window usage": "Uso da janela de contexto", - "Time spent on the task": "Tempo gasto na tarefa", "Usage limits": "Limites de uso", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "Os limites de 5 horas e semanais da conta, quando o agente os informa (Claude Code)", "Session cost": "Custo da sessão", @@ -5933,5 +5931,6 @@ "Roll Back to Here": "Reverter até aqui", "Couldn't roll back": "Não foi possível reverter", "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "Esta mensagem e as seguintes são removidas, e os arquivos que o agente alterou desde então voltam a como estavam antes do envio. A mensagem volta para a caixa de texto.", - "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "Isso limpa toda a conversa, devolve os arquivos que o agente alterou a como estavam no início da tarefa e inicia uma nova sessão do agente com esta mensagem." + "This clears the entire conversation, puts the files the agent changed back as they were when the task started, and starts a fresh agent session with this message.": "Isso limpa toda a conversa, devolve os arquivos que o agente alterou a como estavam no início da tarefa e inicia uma nova sessão do agente com esta mensagem.", + "Resets in {resetIn}": "Redefine em {resetIn}" } diff --git a/src/platform/locales/text/ru.json b/src/platform/locales/text/ru.json index 172dc7dbfb..ca0addbcb0 100644 --- a/src/platform/locales/text/ru.json +++ b/src/platform/locales/text/ru.json @@ -5912,7 +5912,6 @@ "Find in Conversation": "Найти в диалоге", "Find in conversation": "Найти в диалоге", "0 results": "0 результатов", - "Time the agent spent on this task": "Время, затраченное агентом на эту задачу", "Send Again": "Отправить снова", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Настройте внешний вид и поведение IDE: измените темы и размер шрифта, задайте системные параметры и уведомления.", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "Настройте редактирование кода: автодополнение, сворачивание, вкладки, шрифты, цвета, стиль кода и инспекции.", @@ -7204,7 +7203,6 @@ "Chat": "Чат", "Shown in the Task Header": "Отображается в заголовке задачи", "Context window usage": "Использование контекстного окна", - "Time spent on the task": "Время, затраченное на задачу", "Usage limits": "Лимиты использования", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "5-часовые и недельные лимиты аккаунта, если агент о них сообщает (Claude Code)", "Session cost": "Стоимость сессии", @@ -10116,5 +10114,6 @@ "Mark Agent Tasks as Read": "Отметить задачи агента как прочитанные", "Roll Back to Here": "Откатить до этого места", "Couldn't roll back": "Не удалось откатить", - "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "Это сообщение и все последующие будут удалены, а файлы, изменённые агентом с тех пор, вернутся к состоянию до его отправки. Сообщение вернётся в поле ввода." + "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "Это сообщение и все последующие будут удалены, а файлы, изменённые агентом с тех пор, вернутся к состоянию до его отправки. Сообщение вернётся в поле ввода.", + "Resets in {resetIn}": "Сброс через {resetIn}" } diff --git a/src/platform/locales/text/tr.json b/src/platform/locales/text/tr.json index 9880e8789e..d06c3bccdb 100644 --- a/src/platform/locales/text/tr.json +++ b/src/platform/locales/text/tr.json @@ -7120,7 +7120,6 @@ "Find in Conversation": "Konuşmada Bul", "Find in conversation": "Konuşmada bul", "0 results": "0 sonuç", - "Time the agent spent on this task": "Ajanın bu görevde harcadığı süre", "Send Again": "Yeniden Gönder", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "IDE görünümünü ve davranışını özelleştirin: temaları ve yazı tipi boyutunu değiştirin, sistem ayarlarını ve bildirimleri yapılandırın.", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "Kod düzenlemeyi yapılandırın: tamamlama, katlama, sekmeler, yazı tipleri, renkler, kod stili ve incelemeler.", @@ -8347,7 +8346,6 @@ "Chat": "Sohbet", "Shown in the Task Header": "Görev Başlığında Gösterilir", "Context window usage": "Bağlam penceresi kullanımı", - "Time spent on the task": "Görevde harcanan süre", "Usage limits": "Kullanım sınırları", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "Ajan bildirdiğinde hesabın 5 saatlik ve haftalık sınırları (Claude Code)", "Session cost": "Oturum maliyeti", @@ -8773,5 +8771,6 @@ "This version is signed with a different key than the installed one, and the publisher's earlier key doesn't vouch for it. Only continue if you know the publisher changed keys.": "Bu sürüm, yüklü olandan farklı bir anahtarla imzalanmış ve yayıncının önceki anahtarı bunu doğrulamıyor. Yalnızca yayıncının anahtar değiştirdiğinden eminseniz devam edin.", "Roll Back to Here": "Buraya Geri Al", "Couldn't roll back": "Geri alınamadı", - "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "Bu mesaj ve sonrakiler kaldırılır; ajanın o zamandan beri değiştirdiği dosyalar mesaj gönderilmeden önceki hâline döner. Mesaj yazma alanına geri konur." + "This message and the ones after it are removed, and the files the agent changed since go back to how they were before it was sent. The message returns to the composer.": "Bu mesaj ve sonrakiler kaldırılır; ajanın o zamandan beri değiştirdiği dosyalar mesaj gönderilmeden önceki hâline döner. Mesaj yazma alanına geri konur.", + "Resets in {resetIn}": "{resetIn} sonra sıfırlanır" } diff --git a/src/platform/locales/text/zh-TW.json b/src/platform/locales/text/zh-TW.json index 0a70305b86..a69eb80f5c 100644 --- a/src/platform/locales/text/zh-TW.json +++ b/src/platform/locales/text/zh-TW.json @@ -5412,7 +5412,6 @@ "Find in Conversation": "在對話中查詢", "Find in conversation": "在對話中查詢", "0 results": "0 個結果", - "Time the agent spent on this task": "代理在此任務上花費的時間", "Send Again": "再次傳送", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "自訂 IDE 的外觀和行為:更改主題和字號,設定系統設定和通知。", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "設定程式碼編輯:自動完成、摺疊、分頁、字型、配色、程式碼樣式和檢查。", @@ -6698,7 +6697,6 @@ "Chat": "聊天", "Shown in the Task Header": "在任務標題欄中顯示", "Context window usage": "上下文視窗用量", - "Time spent on the task": "任務耗時", "Usage limits": "用量限額", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "帳戶的 5 小時和每週限額,在代理報告時顯示(Claude Code)", "Session cost": "工作階段花費", @@ -9292,5 +9290,6 @@ "Cannot read {path}.": "無法讀取 {path}。", "Already in the project": "已在專案中", "{name} is inside the opened project, so its sources are already part of it.": "{name} 位於已開啟的專案內,其原始碼已屬於該專案。", - "{name} has no pom.xml or Gradle build file. Attach it to this project as another root? Its source folders are detected automatically.": "{name} 沒有 pom.xml 或 Gradle 建置檔案。要將其作為另一個根附加到此專案嗎?其中的原始碼目錄會自動識別。" + "{name} has no pom.xml or Gradle build file. Attach it to this project as another root? Its source folders are detected automatically.": "{name} 沒有 pom.xml 或 Gradle 建置檔案。要將其作為另一個根附加到此專案嗎?其中的原始碼目錄會自動識別。", + "Resets in {resetIn}": "{resetIn} 後重設" } diff --git a/src/platform/locales/text/zh.json b/src/platform/locales/text/zh.json index 5bbe6ffa94..cc9ee807f2 100644 --- a/src/platform/locales/text/zh.json +++ b/src/platform/locales/text/zh.json @@ -5979,7 +5979,6 @@ "Find in Conversation": "在对话中查找", "Find in conversation": "在对话中查找", "0 results": "0 个结果", - "Time the agent spent on this task": "智能体在此任务上花费的时间", "Send Again": "再次发送", "Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "自定义 IDE 的外观和行为:更改主题和字号,配置系统设置和通知。", "Configure code editing: completion, folding, tabs, fonts, colors, code style and inspections.": "配置代码编辑:补全、折叠、标签页、字体、配色、代码样式和检查。", @@ -7282,7 +7281,6 @@ "Chat": "聊天", "Shown in the Task Header": "在任务标题栏中显示", "Context window usage": "上下文窗口用量", - "Time spent on the task": "任务耗时", "Usage limits": "用量限额", "The account's 5-hour and weekly limits, when the agent reports them (Claude Code)": "账户的 5 小时和每周限额,在智能体报告时显示(Claude Code)", "Session cost": "会话花费", @@ -10331,5 +10329,6 @@ "Cannot read {path}.": "无法读取 {path}。", "Already in the project": "已在项目中", "{name} is inside the opened project, so its sources are already part of it.": "{name} 位于已打开的项目内,其源码已属于该项目。", - "{name} has no pom.xml or Gradle build file. Attach it to this project as another root? Its source folders are detected automatically.": "{name} 没有 pom.xml 或 Gradle 构建文件。要将其作为另一个根附加到此项目吗?其中的源码目录会自动识别。" + "{name} has no pom.xml or Gradle build file. Attach it to this project as another root? Its source folders are detected automatically.": "{name} 没有 pom.xml 或 Gradle 构建文件。要将其作为另一个根附加到此项目吗?其中的源码目录会自动识别。", + "Resets in {resetIn}": "{resetIn} 后重置" }