mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 03:15:01 +00:00
copy(cloud): plain, short Orca Cloud copy; Archive tooltip says 'keeps it for 30 days', never an unexplained date
Archive tooltip: one sentence with the control plane TTL ('Stops the workspace and keeps it
for 30 days, then deletes it.'). Archived rows count down ('Deletes in 12 days'); the exact date
stays only in the card's details. Workspace lifecycle copy (sleep, wake, restart, delete toasts,
waking overlay, OOM notice) says 'workspace', not 'sandbox'; 'sandbox hours' leaves non-billing
surfaces for 'adding to your usage'. 'Grant access' becomes 'Give Orca access', archive hook
becomes archive script, parentheticals and long settings helpers trimmed.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
// Confirmation for row actions that take something away from people: making a shared workspace
|
||||
// private (teammates' computers are disconnected), handing ownership to someone else, and archiving
|
||||
// a teammate's running workspace (their agents stop).
|
||||
import { useArchiveSnapshotDefinition } from '@/components/orca-cloud/ArchiveSnapshotTooltip'
|
||||
import { archiveDialogKeptLine } from '@/components/orca-cloud/archive-snapshot-copy'
|
||||
import { useArchiveTtlDays } from '@/lib/orca-cloud/archive-ttl'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import { Loader2 } from 'lucide-react'
|
||||
import { Button } from '@/components/ui/button'
|
||||
@@ -126,8 +127,8 @@ export function CloudWorkspaceConfirmDialog({
|
||||
: t('auto.components.cloudWorkspaces.reassignTitle', 'Make {{name}} the owner?', {
|
||||
name: memberName(directory, pending.ownerUserId, selfId, t)
|
||||
})
|
||||
// What archive keeps, until when, and that it costs no sandbox hours (one shared definition).
|
||||
const archiveDefinition = useArchiveSnapshotDefinition()
|
||||
// How long archive keeps it, in the same relative words as the Archive tooltip.
|
||||
const archiveKept = archiveDialogKeptLine(t, useArchiveTtlDays())
|
||||
const losesManagement = pending.kind === 'owner' && w.ownerUserId === selfId && !canAdmin
|
||||
// Destructive for someone else (their agents stop, or you lose access): focus starts on Cancel.
|
||||
const focusCancel = losesManagement || pending.kind === 'archive' || pending.kind === 'delete'
|
||||
@@ -142,7 +143,7 @@ export function CloudWorkspaceConfirmDialog({
|
||||
<DialogDescription>
|
||||
{t(
|
||||
'auto.components.sidebar.DeleteCloudWorkspace.bodyNoSnapshot',
|
||||
"Deletes the sandbox and its disk, including chats, terminals and uncommitted changes. This can't be undone."
|
||||
'Deletes the workspace and all its files, chats and uncommitted changes. This can’t be undone.'
|
||||
)}
|
||||
</DialogDescription>
|
||||
) : pending.kind === 'archive' ? (
|
||||
@@ -152,7 +153,7 @@ export function CloudWorkspaceConfirmDialog({
|
||||
"{{owner}}'s agents in this workspace will stop.",
|
||||
{ owner: memberName(directory, w.ownerUserId, selfId, t) }
|
||||
)}{' '}
|
||||
{archiveDefinition}
|
||||
{archiveKept}
|
||||
</DialogDescription>
|
||||
) : (
|
||||
<>
|
||||
|
||||
@@ -1,31 +1,27 @@
|
||||
// The archive "snapshot" definition (archive-snapshot-copy.ts) as a tooltip on Archive controls. Every
|
||||
// Archive control and every place the copy says "snapshot" reuses the one string, so it can't drift
|
||||
// between the delete dialog, the menus, the hovercard and the archived view.
|
||||
// What Archive does (archive-snapshot-copy.ts), as a tooltip on every Archive control, so the delete
|
||||
// dialog and the menus can't drift apart.
|
||||
import type React from 'react'
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import { useArchiveTtlDays } from '@/lib/orca-cloud/archive-ttl'
|
||||
import { archiveSnapshotDefinition } from './archive-snapshot-copy'
|
||||
|
||||
/** The definition for this workspace: its kept-until date once archived, else today + the TTL. */
|
||||
export function useArchiveSnapshotDefinition(keptUntil?: number | null): string {
|
||||
/** The tooltip sentence, with the control plane's retention once it has loaded. */
|
||||
export function useArchiveSnapshotDefinition(): string {
|
||||
const t = useTranslate()
|
||||
const ttlDays = useArchiveTtlDays()
|
||||
return archiveSnapshotDefinition(t, { keptUntil, ttlDays })
|
||||
return archiveSnapshotDefinition(t, { ttlDays })
|
||||
}
|
||||
|
||||
export function ArchiveSnapshotTooltip({
|
||||
children,
|
||||
keptUntil,
|
||||
side = 'top'
|
||||
}: {
|
||||
/** The Archive control: a Button or a DropdownMenuItem (Radix `asChild` needs a ref-forwarding element). */
|
||||
children: React.ReactElement
|
||||
/** An archived workspace's own kept-until date. */
|
||||
keptUntil?: number | null
|
||||
side?: 'top' | 'right' | 'bottom' | 'left'
|
||||
}): React.JSX.Element {
|
||||
const definition = useArchiveSnapshotDefinition(keptUntil)
|
||||
const definition = useArchiveSnapshotDefinition()
|
||||
return (
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>{children}</TooltipTrigger>
|
||||
|
||||
@@ -19,13 +19,12 @@ import { cn } from '@/lib/class-names'
|
||||
import {
|
||||
buildFileTree,
|
||||
formatRelative,
|
||||
formatShortDate,
|
||||
type FileTreeNode
|
||||
} from '@/lib/orca-cloud/orca-cloud-workspace-state'
|
||||
import type { CloudArchiveInfo } from '../../../../shared/hosted-sandbox/cloud-workspace-api'
|
||||
import type { HostedArchivePullRequest } from '../../../../shared/hosted-sandbox/hosted-sandbox-wire'
|
||||
import { CloudGitChanges } from './CloudGitChanges'
|
||||
import { archivedSnapshotLine } from './archive-snapshot-copy'
|
||||
import { archivedCountdownShort } from './archive-snapshot-copy'
|
||||
import { CloudWorkspaceHeader } from './CloudWorkspaceHeader'
|
||||
import { FOCUS_RING } from './cloud-focus'
|
||||
|
||||
@@ -193,11 +192,7 @@ export function CloudArchivedWorkspaceView({
|
||||
when: formatRelative(archivedAt, now)
|
||||
})
|
||||
: t('orcaCloudWorkspace.state.archived', 'Archived'),
|
||||
expiresAt
|
||||
? t('orcaCloudWorkspace.archived.keptUntilShort', 'kept until {{date}}', {
|
||||
date: formatShortDate(expiresAt)
|
||||
})
|
||||
: null
|
||||
expiresAt ? archivedCountdownShort(t, expiresAt, now) : null
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(' · ')
|
||||
@@ -213,8 +208,18 @@ export function CloudArchivedWorkspaceView({
|
||||
title={workspaceName ?? t('orcaCloudWorkspace.archived.title', 'Archived workspace')}
|
||||
state="archived"
|
||||
stateLine={stateLine}
|
||||
// The snapshot defined inline, with this workspace's own deletion date.
|
||||
note={archivedSnapshotLine(t, expiresAt)}
|
||||
// The countdown is in the state line; without a date, the note names the 30-day rule.
|
||||
note={
|
||||
expiresAt
|
||||
? t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.archivedNote',
|
||||
'Read-only. Unarchive it to keep working.'
|
||||
)
|
||||
: t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.archived',
|
||||
'Read-only. Deletes 30 days after archiving unless you unarchive it.'
|
||||
)
|
||||
}
|
||||
headingRef={headingRef}
|
||||
action={
|
||||
<Button
|
||||
|
||||
@@ -7,12 +7,14 @@ import { Checkbox } from '@/components/ui/checkbox'
|
||||
import { InlineError } from '@/components/ui/inline-error'
|
||||
import { formatElapsedTime } from '@/components/worktree-creation/worktree-creation-clock'
|
||||
import { useTranslate } from '@/i18n/use-translate'
|
||||
import { useArchiveTtlDays } from '@/lib/orca-cloud/archive-ttl'
|
||||
import { cn } from '@/lib/class-names'
|
||||
import {
|
||||
CLOUD_MOVE_STEPS,
|
||||
effectiveArchiveAfter,
|
||||
type CloudMoveState
|
||||
} from '@/lib/orca-cloud/orca-cloud-move-store'
|
||||
import { DEFAULT_ARCHIVE_TTL_DAYS } from './archive-snapshot-copy'
|
||||
import { cloudMoveFailureCause, cloudMoveStepLabel, formatMoveSize } from './cloud-move-copy'
|
||||
import { BulletList, CloudMovePartialResult, useFocusOnStage } from './cloud-move-parts'
|
||||
|
||||
@@ -58,6 +60,7 @@ export function CloudMoveToComputerView({
|
||||
onReapply?: () => void
|
||||
}): React.JSX.Element {
|
||||
const t = useTranslate()
|
||||
const archiveTtl = useArchiveTtlDays() ?? DEFAULT_ARCHIVE_TTL_DAYS
|
||||
const primary = useRef<HTMLButtonElement | null>(null)
|
||||
useFocusOnStage(state.stage, primary)
|
||||
|
||||
@@ -368,11 +371,16 @@ export function CloudMoveToComputerView({
|
||||
{state.archivedAfter
|
||||
? t(
|
||||
'orcaCloudMove.done.archived',
|
||||
'The cloud workspace is archived. Unarchive it any time.'
|
||||
'Cloud workspace archived. It’s kept for {{count}} days, then deleted.',
|
||||
{
|
||||
count: archiveTtl,
|
||||
defaultValue_one:
|
||||
'Cloud workspace archived. It’s kept for {{count}} day, then deleted.'
|
||||
}
|
||||
)
|
||||
: t(
|
||||
'orcaCloudMove.done.stillRunning',
|
||||
'The cloud workspace is still running and using sandbox hours. Archive it to stop that; you can unarchive later.'
|
||||
'The cloud workspace is still running and adding to your usage. Archive it if you’re done.'
|
||||
)}
|
||||
</p>
|
||||
<div className="flex justify-end gap-2">
|
||||
|
||||
@@ -181,7 +181,7 @@ describe('the can’t-reach line says why (GH-FETCH-REASON)', () => {
|
||||
const line = await show('install', 'remoteDenied')
|
||||
expect(line.text).toBe('Orca’s GitHub app doesn’t have access to stablyai/orca-plugins.')
|
||||
expect(line.description).toBe('Pulls and pushes won’t work until it does.')
|
||||
expect(line.action).toMatchObject({ label: 'Grant access' })
|
||||
expect(line.action).toMatchObject({ label: 'Give Orca access' })
|
||||
expect(line.text).not.toContain('right now')
|
||||
})
|
||||
|
||||
@@ -189,7 +189,7 @@ describe('the can’t-reach line says why (GH-FETCH-REASON)', () => {
|
||||
const line = await show('cantInstall')
|
||||
expect(line.text).toBe('Orca’s GitHub app doesn’t have access to stablyai/orca-plugins.')
|
||||
expect(line.description).toBe(
|
||||
'Only an owner of stablyai can grant it. Pulls and pushes won’t work until they do.'
|
||||
'Only an owner of stablyai can give Orca access. Pulls and pushes won’t work until they do.'
|
||||
)
|
||||
expect(line.action).toMatchObject({ label: 'Copy request for an owner' })
|
||||
})
|
||||
|
||||
@@ -259,7 +259,7 @@ export function CloudWakingOverlay({
|
||||
<div className="flex justify-end gap-2">
|
||||
{terminalStalled || billing ? null : (
|
||||
<Button size="sm" variant="ghost" onClick={onRestart}>
|
||||
{t('orcaCloudWorkspace.restartSandbox', 'Restart sandbox')}
|
||||
{t('orcaCloudWorkspace.restartSandbox', 'Restart')}
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
@@ -342,7 +342,7 @@ export function CloudWakingOverlay({
|
||||
{stuck ? (
|
||||
<div className="flex gap-2">
|
||||
<Button size="xs" variant="ghost" onClick={onRestart}>
|
||||
{t('orcaCloudWorkspace.restartSandbox', 'Restart sandbox')}
|
||||
{t('orcaCloudWorkspace.restartSandbox', 'Restart')}
|
||||
</Button>
|
||||
<Button size="xs" onClick={onRetry}>
|
||||
{t('orcaCloudWorkspace.overlay.tryAgain', 'Try again')}
|
||||
|
||||
@@ -157,7 +157,7 @@ export function CloudWorkspaceCardDetails({
|
||||
/>
|
||||
{status.archive?.expiresAt ? (
|
||||
<Fact
|
||||
label={t('orcaCloudWorkspace.keptUntil', 'Kept until')}
|
||||
label={t('orcaCloudWorkspace.keptUntil', 'Deletes')}
|
||||
value={formatShortDate(status.archive.expiresAt)}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
@@ -143,11 +143,11 @@ export function CloudWorkspaceNotice({
|
||||
? victim
|
||||
? t('orcaCloudWorkspace.oom.titleRan', '{{name}} ran out of memory', { name: victim })
|
||||
: t('orcaCloudWorkspace.oom.titleProcess', 'A process ran out of memory')
|
||||
: t('orcaCloudWorkspace.unresponsive.sandboxTitle', 'This sandbox isn’t responding')
|
||||
: t('orcaCloudWorkspace.unresponsive.sandboxTitle', 'This workspace isn’t responding')
|
||||
const detail = isOom
|
||||
? t(
|
||||
'orcaCloudWorkspace.oom.stopped',
|
||||
'It was stopped so the sandbox stays up. Restart to recover.'
|
||||
'Orca stopped it to keep the workspace running. Restart to recover.'
|
||||
)
|
||||
: t('orcaCloudWorkspace.detail.restartKeeps', 'Restart keeps your files; agents resume.')
|
||||
return (
|
||||
|
||||
@@ -228,7 +228,10 @@ export function CloudWorkspaceStatusPanel({
|
||||
{unavailable ? (
|
||||
<InlineError
|
||||
tone="neutral"
|
||||
title={t('orcaCloudWorkspace.statusUnavailableTitle', 'Couldn’t get the sandbox status.')}
|
||||
title={t(
|
||||
'orcaCloudWorkspace.statusUnavailableTitle',
|
||||
'Couldn’t get the workspace status.'
|
||||
)}
|
||||
retryLabel={t('orcaCloudWorkspace.tryAgain', 'Try again')}
|
||||
retrying={entry?.loading}
|
||||
onRetry={() => void refreshCloudWorkspaceStatus(workspaceId)}
|
||||
|
||||
@@ -255,7 +255,9 @@ describe('Orca Cloud surfaces', () => {
|
||||
/>
|
||||
)
|
||||
expect(getByRole('alert').textContent).toContain('node ran out of memory')
|
||||
expect(getByRole('alert').textContent).toContain('It was stopped')
|
||||
expect(getByRole('alert').textContent).toContain(
|
||||
'Orca stopped it to keep the workspace running'
|
||||
)
|
||||
fireEvent.click(getByRole('button', { name: 'Dismiss' }))
|
||||
expect(onDismiss).toHaveBeenCalled()
|
||||
})
|
||||
|
||||
@@ -1,43 +1,49 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import { formatShortDate } from '@/lib/orca-cloud/orca-cloud-workspace-state'
|
||||
import { archivedSnapshotLine, archiveSnapshotDefinition } from './archive-snapshot-copy'
|
||||
import {
|
||||
archiveDialogKeptLine,
|
||||
archivedCountdownShort,
|
||||
archivedSnapshotLine,
|
||||
archiveSnapshotDefinition
|
||||
} from './archive-snapshot-copy'
|
||||
import { cloudStateDetail } from './cloud-state-copy'
|
||||
|
||||
const NOW = Date.UTC(2026, 10, 11, 12)
|
||||
const DAY = 86_400_000
|
||||
|
||||
describe('archiveSnapshotDefinition (one definition of "snapshot")', () => {
|
||||
it('names an archived workspace’s own kept-until date', () => {
|
||||
const keptUntil = NOW + 9 * DAY
|
||||
const text = archiveSnapshotDefinition(translate, { keptUntil, ttlDays: 30, now: NOW })
|
||||
expect(text).toContain(`until ${formatShortDate(keptUntil)}, then deletes it`)
|
||||
expect(text).toContain('its files, chats and terminal history')
|
||||
expect(text).toContain('Like a sleeping workspace, it doesn’t use sandbox hours.')
|
||||
describe('archive copy: relative retention, never an unexplained date', () => {
|
||||
it('the Archive tooltip is one short sentence with the control plane’s TTL', () => {
|
||||
const text = archiveSnapshotDefinition(translate, { ttlDays: 14 })
|
||||
expect(text).toBe('Stops the workspace and keeps it for 14 days, then deletes it.')
|
||||
expect(text.split(/\s+/).length).toBeLessThanOrEqual(12)
|
||||
})
|
||||
|
||||
it('before archiving: today plus the control plane’s TTL, so a deployed override shows', () => {
|
||||
const text = archiveSnapshotDefinition(translate, { ttlDays: 14, now: NOW })
|
||||
expect(text).toContain(`until ${formatShortDate(NOW + 14 * DAY)}`)
|
||||
it('before the TTL loads it says 30 days, the control plane default', () => {
|
||||
expect(archiveSnapshotDefinition(translate, { ttlDays: null })).toBe(
|
||||
'Stops the workspace and keeps it for 30 days, then deletes it.'
|
||||
)
|
||||
expect(archiveDialogKeptLine(translate, null)).toBe(
|
||||
'It’s kept for 30 days, then deleted. You can unarchive it until then.'
|
||||
)
|
||||
})
|
||||
|
||||
it('without a date or TTL it says "for 30 days" and never invents a date', () => {
|
||||
const text = archiveSnapshotDefinition(translate, { ttlDays: null, now: NOW })
|
||||
expect(text).toContain('for 30 days, then deletes it')
|
||||
expect(text).not.toContain('until')
|
||||
it('an archived workspace counts down in days, in the same words on every surface', () => {
|
||||
const keptUntil = NOW + 3 * DAY - 60_000
|
||||
const line = archivedSnapshotLine(translate, keptUntil, NOW)
|
||||
expect(line).toBe('Read-only. Deletes in 3 days unless you unarchive it.')
|
||||
expect(archivedSnapshotLine(translate, NOW + DAY, NOW)).toBe(
|
||||
'Read-only. Deletes in 1 day unless you unarchive it.'
|
||||
)
|
||||
expect(archivedSnapshotLine(translate, NOW - 1, NOW)).toBe(
|
||||
'Read-only. Deletes today unless you unarchive it.'
|
||||
)
|
||||
expect(archivedCountdownShort(translate, keptUntil, NOW)).toBe('deletes in 3 days')
|
||||
expect(line).not.toMatch(/snapshot|sandbox hours/)
|
||||
})
|
||||
|
||||
it('an archived workspace reads in the archived voice everywhere: what it holds, the day it is deleted', () => {
|
||||
const keptUntil = NOW + 3 * DAY
|
||||
const line = archivedSnapshotLine(translate, keptUntil)
|
||||
expect(line).toBe(
|
||||
`A read-only snapshot of its files, chats and terminal history. Unarchive before ${formatShortDate(keptUntil)} to open terminals and agents again; after that it’s deleted.`
|
||||
it('without a deletion date (older control plane) it names the rule, never a date', () => {
|
||||
expect(cloudStateDetail('archived', translate)).toBe(
|
||||
'Read-only. Deletes 30 days after archiving unless you unarchive it.'
|
||||
)
|
||||
// The status and hovercard state line say the same words as the archived view.
|
||||
expect(cloudStateDetail('archived', translate, keptUntil)).toBe(line)
|
||||
// No sandbox-hours sentence for a workspace that's already archived.
|
||||
expect(line).not.toContain('sandbox hours')
|
||||
// An older control plane without a date: the 30-day rule, never an invented date.
|
||||
expect(cloudStateDetail('archived', translate)).toContain('within 30 days of archiving')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,53 +1,86 @@
|
||||
// The one definition of an Orca Cloud archive "snapshot" (glossary: archive, Unarchive, snapshot,
|
||||
// sandbox hours), as a plain string for state lines; ArchiveSnapshotTooltip shows it on Archive controls.
|
||||
// What Archive does, in one voice for every surface: the Archive tooltip, the archive dialog and
|
||||
// toast, and an archived workspace's countdown. Retention is always relative ("for 30 days",
|
||||
// "deletes in 12 days"); only the card's managed facts show the exact deletion date.
|
||||
import type { Translate } from '@/i18n/use-translate'
|
||||
import { formatShortDate } from '@/lib/orca-cloud/orca-cloud-workspace-state'
|
||||
|
||||
const DAY_MS = 86_400_000
|
||||
/** The control plane's default ARCHIVE_TTL_DAYS, used until GET /v1/config answers. */
|
||||
export const DEFAULT_ARCHIVE_TTL_DAYS = 30
|
||||
|
||||
/**
|
||||
* Facts (sandbox-control): archive runs Sleep first and metering counts running time only, so an
|
||||
* archived workspace uses no sandbox hours, like a sleeping one; storage isn't billed. Reconcile
|
||||
* deletes the snapshot at its kept-until date (archive time + ARCHIVE_TTL_DAYS, default 30).
|
||||
*
|
||||
* `keptUntil` is an archived workspace's own date; otherwise the date is today + the control plane's
|
||||
* TTL. With neither (offline, older control plane) the copy says "for 30 days" and names no date.
|
||||
* Facts (sandbox-control): archive runs Sleep first, so nothing is left running. Reconcile deletes
|
||||
* the archive at archive time + ARCHIVE_TTL_DAYS. `ttlDays` is that TTL, or null before it loads.
|
||||
*/
|
||||
export function archiveSnapshotDefinition(
|
||||
t: Translate,
|
||||
{
|
||||
keptUntil,
|
||||
ttlDays,
|
||||
now = Date.now()
|
||||
}: { keptUntil?: number | null; ttlDays?: number | null; now?: number }
|
||||
{ ttlDays }: { ttlDays?: number | null }
|
||||
): string {
|
||||
const until = keptUntil ?? (ttlDays ? now + ttlDays * DAY_MS : null)
|
||||
return until !== null
|
||||
? t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.definitionUntil',
|
||||
'Archive keeps a snapshot of this workspace (its files, chats and terminal history) until {{date}}, then deletes it. Unarchive it from its menu before then. Like a sleeping workspace, it doesn’t use sandbox hours.',
|
||||
{ date: formatShortDate(until) }
|
||||
)
|
||||
: t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.definition',
|
||||
'Archive keeps a snapshot of this workspace (its files, chats and terminal history) for 30 days, then deletes it. Unarchive it from its menu before then. Like a sleeping workspace, it doesn’t use sandbox hours.'
|
||||
)
|
||||
return t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.definition',
|
||||
'Stops the workspace and keeps it for {{count}} days, then deletes it.',
|
||||
{
|
||||
count: ttlDays ?? DEFAULT_ARCHIVE_TTL_DAYS,
|
||||
defaultValue_one: 'Stops the workspace and keeps it for {{count}} day, then deletes it.'
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
/** The archive dialog's retention sentence, after "{{owner}}'s agents will stop." */
|
||||
export function archiveDialogKeptLine(t: Translate, ttlDays?: number | null): string {
|
||||
return t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.dialogKept',
|
||||
'It’s kept for {{count}} days, then deleted. You can unarchive it until then.',
|
||||
{
|
||||
count: ttlDays ?? DEFAULT_ARCHIVE_TTL_DAYS,
|
||||
defaultValue_one:
|
||||
'It’s kept for {{count}} day, then deleted. You can unarchive it until then.'
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
/** Whole days until `keptUntil`, rounded up so "deletes in 1 day" never shows for a past date. */
|
||||
export function daysUntilDeletion(keptUntil: number, now: number): number {
|
||||
return Math.max(0, Math.ceil((keptUntil - now) / DAY_MS))
|
||||
}
|
||||
|
||||
/**
|
||||
* The same definition in the archived voice, for a workspace that is already archived (its archived
|
||||
* view and its state line everywhere): what the snapshot holds and the date it is deleted. Without a
|
||||
* kept-until date (older control plane) it names the 30-day rule instead of inventing a date.
|
||||
* An archived workspace's detail line (card, hovercard): read-only, and how long until it's deleted.
|
||||
* Without a kept-until date (older control plane) it names the rule instead of inventing a date.
|
||||
*/
|
||||
export function archivedSnapshotLine(t: Translate, keptUntil?: number | null): string {
|
||||
return keptUntil
|
||||
export function archivedSnapshotLine(
|
||||
t: Translate,
|
||||
keptUntil?: number | null,
|
||||
now: number = Date.now()
|
||||
): string {
|
||||
if (!keptUntil) {
|
||||
return t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.archived',
|
||||
'Read-only. Deletes 30 days after archiving unless you unarchive it.'
|
||||
)
|
||||
}
|
||||
const days = daysUntilDeletion(keptUntil, now)
|
||||
return days === 0
|
||||
? t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.archivedUntil',
|
||||
'A read-only snapshot of its files, chats and terminal history. Unarchive before {{date}} to open terminals and agents again; after that it’s deleted.',
|
||||
{ date: formatShortDate(keptUntil) }
|
||||
'orcaCloudWorkspace.archiveSnapshot.deletesToday',
|
||||
'Read-only. Deletes today unless you unarchive it.'
|
||||
)
|
||||
: t(
|
||||
'orcaCloudWorkspace.archiveSnapshot.archived',
|
||||
'A read-only snapshot of its files, chats and terminal history. Unarchive within 30 days of archiving to open terminals and agents again; after that it’s deleted.'
|
||||
'orcaCloudWorkspace.archiveSnapshot.deletesIn',
|
||||
'Read-only. Deletes in {{count}} days unless you unarchive it.',
|
||||
{
|
||||
count: days,
|
||||
defaultValue_one: 'Read-only. Deletes in {{count}} day unless you unarchive it.'
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
/** The archived view's header countdown, after "Archived 3 days ago · ". */
|
||||
export function archivedCountdownShort(t: Translate, keptUntil: number, now: number): string {
|
||||
const days = daysUntilDeletion(keptUntil, now)
|
||||
return days === 0
|
||||
? t('orcaCloudWorkspace.archived.deletesTodayShort', 'deletes today')
|
||||
: t('orcaCloudWorkspace.archived.deletesInShort', 'deletes in {{count}} days', {
|
||||
count: days,
|
||||
defaultValue_one: 'deletes in {{count}} day'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -99,12 +99,12 @@ export async function runCloudArchiveHook(
|
||||
options.wake
|
||||
? translate(
|
||||
'orcaCloudWorkspace.archiveHook.waking',
|
||||
'Waking {{name}} to run its archive hook…',
|
||||
'Waking {{name}} to run its archive script…',
|
||||
{ name }
|
||||
)
|
||||
: translate(
|
||||
'orcaCloudWorkspace.archiveHook.running',
|
||||
'Running {{name}}’s archive hook…',
|
||||
'Running {{name}}’s archive script…',
|
||||
{
|
||||
name
|
||||
}
|
||||
@@ -143,7 +143,7 @@ export async function runCloudArchiveHook(
|
||||
if (result.state === 'succeeded') {
|
||||
const output = archiveHookOutputTail(result.runs)
|
||||
toast.success(
|
||||
translate('orcaCloudWorkspace.archiveHook.succeeded', '{{name}}’s archive hook finished', {
|
||||
translate('orcaCloudWorkspace.archiveHook.succeeded', '{{name}}’s archive script finished', {
|
||||
name
|
||||
}),
|
||||
output ? { description: output } : undefined
|
||||
@@ -171,7 +171,7 @@ export function askArchiveAnywayAfterHookFailure(
|
||||
}
|
||||
const output = archiveHookOutputTail(result.runs)
|
||||
toast.error(
|
||||
translate('orcaCloudWorkspace.archiveHook.failedTitle', '{{name}}’s archive hook failed', {
|
||||
translate('orcaCloudWorkspace.archiveHook.failedTitle', '{{name}}’s archive script failed', {
|
||||
name: name ?? ''
|
||||
}),
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ export function cloudFetchNoticeLine(
|
||||
action: {
|
||||
label: h.installing
|
||||
? t('orcaCloud.setupNotices.waitingForGitHub', 'Waiting for GitHub…')
|
||||
: t('orcaCloud.setupNotices.grantAccess', 'Grant access'),
|
||||
: t('orcaCloud.setupNotices.grantAccess', 'Give Orca access'),
|
||||
icon: h.installing ? <Loader2 className="animate-spin" /> : <GitPullRequestArrow />,
|
||||
run: h.install,
|
||||
pending: h.installing
|
||||
@@ -116,7 +116,7 @@ export function cloudFetchNoticeLine(
|
||||
text: noAccess,
|
||||
description: t(
|
||||
'orcaCloud.setupNotices.fetchNoAccessCantInstall',
|
||||
'Only an owner of {{owner}} can grant it. Pulls and pushes won’t work until they do.',
|
||||
'Only an owner of {{owner}} can give Orca access. Pulls and pushes won’t work until they do.',
|
||||
{ owner }
|
||||
),
|
||||
action: copyRequest
|
||||
|
||||
@@ -62,17 +62,17 @@ export function cloudStateDetail(
|
||||
'Restart to recover. Files are kept and Orca resumes your agents after the restart.'
|
||||
)
|
||||
case 'archived':
|
||||
// Same words as the archived view: what the snapshot holds and when it is deleted.
|
||||
// Same words everywhere an archived workspace shows: read-only, and how long until it's deleted.
|
||||
return archivedSnapshotLine(t, keptUntil)
|
||||
case 'failed':
|
||||
return t(
|
||||
'orcaCloudWorkspace.detail.startFailed',
|
||||
'The sandbox couldn’t start. Nothing was lost.'
|
||||
'Couldn’t start the workspace. Your files are safe.'
|
||||
)
|
||||
case 'wakeFailed':
|
||||
return t(
|
||||
'orcaCloudWorkspace.detail.wakeFailed',
|
||||
'Couldn’t wake the sandbox. Your files and chats are safe.'
|
||||
'Couldn’t wake the workspace. Your files and chats are safe.'
|
||||
)
|
||||
case 'running':
|
||||
case 'unknown':
|
||||
|
||||
@@ -24,6 +24,8 @@ import {
|
||||
registerQueuedCloudArchive
|
||||
} from '@/lib/orca-cloud/pending-cloud-archive'
|
||||
import { cloudSyncRemovalPreview } from '@/lib/orca-cloud/cloud-sync-store'
|
||||
import { archiveTtlDays } from '@/lib/orca-cloud/archive-ttl'
|
||||
import { DEFAULT_ARCHIVE_TTL_DAYS } from './archive-snapshot-copy'
|
||||
import { cloudWorkspaceTarget } from '@/lib/orca-cloud/orca-cloud-workspace-store'
|
||||
import {
|
||||
askArchiveAnywayAfterHookFailure,
|
||||
@@ -175,7 +177,7 @@ export function runArchiveWithUndo(
|
||||
description: askHookWake
|
||||
? `${archivedDetail(options.localCopy)} ${translate(
|
||||
'orcaCloudWorkspace.archiveHook.wakeFirst',
|
||||
'It wakes first to run its archive hook.'
|
||||
'It wakes first to run the archive script in orca.yaml.'
|
||||
)}`
|
||||
: archivedDetail(options.localCopy),
|
||||
action: {
|
||||
@@ -185,7 +187,7 @@ export function runArchiveWithUndo(
|
||||
...(askHookWake
|
||||
? {
|
||||
cancel: {
|
||||
label: translate('orcaCloudWorkspace.archiveHook.skip', 'Skip hook'),
|
||||
label: translate('orcaCloudWorkspace.archiveHook.skip', 'Skip script'),
|
||||
onClick: () => {
|
||||
options.onSkipHookWake?.()
|
||||
// Keep Undo for the rest of the window.
|
||||
@@ -202,27 +204,35 @@ export function runArchiveWithUndo(
|
||||
}
|
||||
|
||||
function archivedDetail(localCopy?: { hasLocalCopy: boolean; editedHere: number }): string {
|
||||
// Same retention words as the Archive tooltip and dialog.
|
||||
const count = archiveTtlDays() ?? DEFAULT_ARCHIVE_TTL_DAYS
|
||||
if (localCopy?.editedHere) {
|
||||
return translate(
|
||||
'orcaCloudWorkspace.archivedDetailLocalEdits',
|
||||
'It goes to sleep and stays browsable: PRs, last changes and files. {{count}} changed files on this computer will be removed.',
|
||||
'Kept for {{days}} days, then deleted. {{count}} changed files on this computer will be removed.',
|
||||
{
|
||||
count: localCopy.editedHere,
|
||||
days: count,
|
||||
defaultValue_one:
|
||||
'It goes to sleep and stays browsable: PRs, last changes and files. {{count}} changed file on this computer will be removed.'
|
||||
'Kept for {{days}} days, then deleted. {{count}} changed file on this computer will be removed.'
|
||||
}
|
||||
)
|
||||
}
|
||||
if (localCopy?.hasLocalCopy) {
|
||||
return translate(
|
||||
'orcaCloudWorkspace.archivedDetailLocalCopy',
|
||||
'It goes to sleep and stays browsable: PRs, last changes and files. The copy on this computer is removed too.'
|
||||
'Kept for {{count}} days, then deleted. The copy on this computer will be removed.',
|
||||
{
|
||||
count,
|
||||
defaultValue_one:
|
||||
'Kept for {{count}} day, then deleted. The copy on this computer will be removed.'
|
||||
}
|
||||
)
|
||||
}
|
||||
return translate(
|
||||
'orcaCloudWorkspace.archivedDetail',
|
||||
'It goes to sleep and stays browsable: PRs, last changes and files.'
|
||||
)
|
||||
return translate('orcaCloudWorkspace.archivedDetail', 'Kept for {{count}} days, then deleted.', {
|
||||
count,
|
||||
defaultValue_one: 'Kept for {{count}} day, then deleted.'
|
||||
})
|
||||
}
|
||||
|
||||
/** Sidebar archive: the ordinary Sleep, then the control-plane archive, behind the Undo toast. */
|
||||
|
||||
@@ -245,7 +245,7 @@ function FormStep({
|
||||
<ShieldAlert className="mt-0.5 size-3.5 shrink-0" aria-hidden />
|
||||
{t(
|
||||
'auto.components.settings.cloudApi.create.restricted',
|
||||
'Only team owners and admins can grant access to: {{scopes}}. Ask one of them if a script needs it.',
|
||||
'Only team owners and admins can give access to {{scopes}}. Ask one of them if a script needs it.',
|
||||
{
|
||||
scopes: formatList(
|
||||
restricted.map((scope) => cloudApiScopeDescription(scope, t).toLowerCase())
|
||||
|
||||
@@ -52,11 +52,11 @@ export function CloudPredictiveWakeSettingView({
|
||||
<p className="text-xs text-muted-foreground">
|
||||
{t(
|
||||
'auto.components.settings.orcaCloudPredictiveWake.description',
|
||||
"Starts waking a sleeping sandbox when you point at its workspace or come back to Orca, so it's ready sooner. If you don't open it, it goes back to sleep after {{count}} minutes idle. Early wakes count toward your sandbox hours.",
|
||||
'Starts waking a workspace when you hover it or return to Orca, so it opens faster. Unopened, it sleeps again after {{count}} minutes. Early wakes add to your usage.',
|
||||
{
|
||||
count: idleMinutes,
|
||||
defaultValue_one:
|
||||
"Starts waking a sleeping sandbox when you point at its workspace or come back to Orca, so it's ready sooner. If you don't open it, it goes back to sleep after {{count}} minute idle. Early wakes count toward your sandbox hours."
|
||||
'Starts waking a workspace when you hover it or return to Orca, so it opens faster. Unopened, it sleeps again after {{count}} minute. Early wakes add to your usage.'
|
||||
}
|
||||
)}
|
||||
</p>
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ export function CloudSkillsSyncSettingsView({
|
||||
title={t('cloudSkillsSync.autoSync', 'Sync when a workspace starts or wakes')}
|
||||
description={t(
|
||||
'cloudAgentConfig.autoSyncHint',
|
||||
'Copies your Claude and Codex skills, commands, subagents, output styles and memory you’ve turned on into each cloud workspace. Anything that looks like a key stays on this computer, and nothing made in the sandbox is overwritten.'
|
||||
'Copies what you turn on here into each cloud workspace, without overwriting changes made there. Anything that looks like a key stays on this computer.'
|
||||
)}
|
||||
checked={preferences.autoSync}
|
||||
onChange={(autoSync) => onChange({ autoSync })}
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ export function DeleteCloudWorkspaceHeader({
|
||||
<DialogDescription>
|
||||
{t(
|
||||
'auto.components.sidebar.DeleteCloudWorkspace.bodyNoSnapshot',
|
||||
"Deletes the sandbox and its disk, including chats, terminals and uncommitted changes. This can't be undone."
|
||||
'Deletes the workspace and all its files, chats and uncommitted changes. This can’t be undone.'
|
||||
)}
|
||||
</DialogDescription>
|
||||
{/* The files live in the sandbox: name, repo and branch, and its state; no local path. */}
|
||||
@@ -94,7 +94,7 @@ export function DeleteCloudWorkspaceHeader({
|
||||
<div className="mt-0.5 text-muted-foreground" data-cloud-archive-hook-wake>
|
||||
{t(
|
||||
'auto.components.sidebar.DeleteCloudWorkspace.archiveHookWake',
|
||||
'It wakes first to run its archive hook (orca.yaml scripts.archive).'
|
||||
'It wakes first to run the archive script in orca.yaml.'
|
||||
)}
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
+1
-1
@@ -200,7 +200,7 @@ function VmLifecycleMenuItem({
|
||||
{cloud
|
||||
? t(
|
||||
'orcaCloudWorkspace.menu.sleepDescription',
|
||||
"Close this workspace's panels and put its sandbox to sleep. Opening the workspace wakes it."
|
||||
'Pauses the workspace until you open it again.'
|
||||
)
|
||||
: t(
|
||||
'workspace.vm.menu.suspendDescription',
|
||||
|
||||
@@ -199,7 +199,7 @@ it('says nothing was created only when no sandbox is left running', () => {
|
||||
)
|
||||
const kept = vmBuildFailureCopy(failure, { ...context, sandboxKept: true }, translate).body
|
||||
expect(kept).not.toContain('Nothing was created')
|
||||
expect(kept).toContain('delete the sandbox')
|
||||
expect(kept).toContain('delete it so it stops adding to your usage')
|
||||
})
|
||||
|
||||
it('recipe VMs keep counting failed checks in the title', () => {
|
||||
|
||||
@@ -229,7 +229,7 @@ export function vmBuildFailureCopy(
|
||||
body: sandboxKept
|
||||
? t(
|
||||
'auto.components.worktree.creation.VmBuildFailureCard.provisionBodyCloudKept',
|
||||
'Something went wrong while starting the sandbox. Try again, or delete the sandbox to stop using sandbox hours.'
|
||||
'Try again, or delete it so it stops adding to your usage.'
|
||||
)
|
||||
: t(
|
||||
'auto.components.worktree.creation.VmBuildFailureCard.provisionBodyCloud2',
|
||||
|
||||
@@ -94,7 +94,7 @@ export function buildOrcaCloudSettingsSections(
|
||||
title: t('cloudSecrets.title', 'Cloud secrets'),
|
||||
description: t(
|
||||
'cloudSecrets.descriptionEdge',
|
||||
'Orca swaps model API keys and agent sign-ins in at the network edge, so the sandbox never sees them. Other secrets reach cloud workspaces as environment variables that anything in the sandbox can read.'
|
||||
'Model keys and agent sign-ins never enter the workspace. Other secrets become environment variables any code there can read.'
|
||||
),
|
||||
icon: LockKeyhole,
|
||||
searchEntries: getOrcaCloudSecretsSearchEntries(),
|
||||
|
||||
+23
-7
@@ -874,9 +874,9 @@
|
||||
"permissionsRequired_other": "{{value0}} permissions required before agents can operate app windows."
|
||||
},
|
||||
"orcaCloudPredictiveWake": {
|
||||
"description": "A sleeping cloud workspace starts waking when you point at it or come back to Orca, so it's ready sooner. If you don't open it, it goes back to sleep after the idle time.",
|
||||
"description_one": "Starts waking a sleeping sandbox when you point at its workspace or come back to Orca, so it's ready sooner. If you don't open it, it goes back to sleep after {{count}} minute idle. Early wakes count toward your sandbox hours.",
|
||||
"description_other": "Starts waking a sleeping sandbox when you point at its workspace or come back to Orca, so it's ready sooner. If you don't open it, it goes back to sleep after {{count}} minutes idle. Early wakes count toward your sandbox hours."
|
||||
"description": "Starts waking a workspace when you hover it or return to Orca, so it opens faster. Early wakes add to your usage.",
|
||||
"description_one": "Starts waking a workspace when you hover it or return to Orca, so it opens faster. Unopened, it sleeps again after {{count}} minute. Early wakes add to your usage.",
|
||||
"description_other": "Starts waking a workspace when you hover it or return to Orca, so it opens faster. Unopened, it sleeps again after {{count}} minutes. Early wakes add to your usage."
|
||||
},
|
||||
"repository": {
|
||||
"search": {
|
||||
@@ -1441,8 +1441,8 @@
|
||||
"xcodeSimulatorToolsUnavailable": "Xcode Simulator tools are unavailable. Install full Xcode, open it once, then select it with `sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer`."
|
||||
},
|
||||
"orcaCloudSession": {
|
||||
"sandboxRestartsInMinutes_one": "Sandbox for {{name}} restarts in {{count}} minute",
|
||||
"sandboxRestartsInMinutes_other": "Sandbox for {{name}} restarts in {{count}} minutes"
|
||||
"sandboxRestartsInMinutes_one": "{{name}} restarts in {{count}} minute",
|
||||
"sandboxRestartsInMinutes_other": "{{name}} restarts in {{count}} minutes"
|
||||
},
|
||||
"rateLimits": {
|
||||
"errors": {
|
||||
@@ -2530,6 +2530,8 @@
|
||||
"stopsAgents_other": "Stops {{count}} running agents"
|
||||
},
|
||||
"done": {
|
||||
"archived_one": "Cloud workspace archived. It’s kept for {{count}} day, then deleted.",
|
||||
"archived_other": "Cloud workspace archived. It’s kept for {{count}} days, then deleted.",
|
||||
"chats_one": "{{count}} agent chat",
|
||||
"chats_other": "{{count}} agent chats",
|
||||
"untracked_one": "{{count}} untracked file",
|
||||
@@ -2545,15 +2547,29 @@
|
||||
"removalEdited_other": "{{count}} changed files on this computer will be removed."
|
||||
},
|
||||
"orcaCloudWorkspace": {
|
||||
"archiveSnapshot": {
|
||||
"definition_one": "Stops the workspace and keeps it for {{count}} day, then deletes it.",
|
||||
"definition_other": "Stops the workspace and keeps it for {{count}} days, then deletes it.",
|
||||
"deletesIn_one": "Read-only. Deletes in {{count}} day unless you unarchive it.",
|
||||
"deletesIn_other": "Read-only. Deletes in {{count}} days unless you unarchive it.",
|
||||
"dialogKept_one": "It’s kept for {{count}} day, then deleted. You can unarchive it until then.",
|
||||
"dialogKept_other": "It’s kept for {{count}} days, then deleted. You can unarchive it until then."
|
||||
},
|
||||
"archived": {
|
||||
"deletesInShort_one": "deletes in {{count}} day",
|
||||
"deletesInShort_other": "deletes in {{count}} days",
|
||||
"files": "{{count}} files",
|
||||
"files_one": "{{count}} file",
|
||||
"files_other": "{{count}} files",
|
||||
"moreFiles_one": "{{count}} more file not shown",
|
||||
"moreFiles_other": "{{count}} more files not shown"
|
||||
},
|
||||
"archivedDetailLocalEdits_one": "It goes to sleep and stays browsable: PRs, last changes and files. {{count}} changed file on this computer will be removed.",
|
||||
"archivedDetailLocalEdits_other": "It goes to sleep and stays browsable: PRs, last changes and files. {{count}} changed files on this computer will be removed.",
|
||||
"archivedDetailLocalCopy_one": "Kept for {{count}} day, then deleted. The copy on this computer will be removed.",
|
||||
"archivedDetailLocalCopy_other": "Kept for {{count}} days, then deleted. The copy on this computer will be removed.",
|
||||
"archivedDetailLocalEdits_one": "Kept for {{days}} days, then deleted. {{count}} changed file on this computer will be removed.",
|
||||
"archivedDetailLocalEdits_other": "Kept for {{days}} days, then deleted. {{count}} changed files on this computer will be removed.",
|
||||
"archivedDetail_one": "Kept for {{count}} day, then deleted.",
|
||||
"archivedDetail_other": "Kept for {{count}} days, then deleted.",
|
||||
"card": {
|
||||
"sleepsIn_one": "Sleeps in {{count}} min if idle",
|
||||
"sleepsIn_other": "Sleeps in {{count}} min if idle"
|
||||
|
||||
@@ -2491,24 +2491,24 @@
|
||||
"orcaCloudSession": {
|
||||
"workspaceGone": "That workspace is no longer in Orca.",
|
||||
"thisWorkspaceLower": "this workspace",
|
||||
"sandboxRestartSoonDetail": "Cloud sandboxes restart after 24 hours. Files are kept and Orca resumes your agents after the restart.",
|
||||
"sandboxRestartSoonDetail": "Cloud workspaces restart after 24 hours. Your files are kept and agents resume.",
|
||||
"restartNow": "Restart now",
|
||||
"open": "Open",
|
||||
"sandboxRestartFailed": "Couldn't restart the sandbox for {{name}}",
|
||||
"restartNotRunning": "The sandbox isn't running. Open the workspace to wake it.",
|
||||
"sandboxRestartFailed": "Couldn’t restart {{name}}",
|
||||
"restartNotRunning": "The workspace isn’t running. Open it to wake it.",
|
||||
"restartFailedDetail": "It still restarts on its own after 24 hours.",
|
||||
"sandboxRestarted": "Sandbox for {{name}} restarted",
|
||||
"sandboxRestarted": "{{name}} restarted",
|
||||
"restartedResumingDetail": "Files are kept and Orca is resuming your agents. The next restart is in 24 hours.",
|
||||
"sandboxRestarting": "Restarting the sandbox for {{name}}…",
|
||||
"sandboxRestarting": "Restarting {{name}}…",
|
||||
"restartingDetail": "Usually under a minute. Orca resumes your agents once it is back.",
|
||||
"sandboxRestartsInMinutes_one": "Sandbox for {{name}} restarts in {{count}} minute",
|
||||
"sandboxRestartsInMinutes_other": "Sandbox for {{name}} restarts in {{count}} minutes",
|
||||
"sandboxRestartsInMinutes_one": "{{name}} restarts in {{count}} minute",
|
||||
"sandboxRestartsInMinutes_other": "{{name}} restarts in {{count}} minutes",
|
||||
"deletingSandbox": "Deleting the sandbox…",
|
||||
"deletingSandboxDetail": "Creating the workspace was canceled, so its sandbox is deleted and stops using sandbox hours.",
|
||||
"deletingSandboxDetail": "Creating the workspace was canceled, so nothing is left running.",
|
||||
"sandboxDeleted": "Sandbox deleted",
|
||||
"sandboxDeletedDetail": "Nothing from the canceled workspace is left running.",
|
||||
"sandboxDeleteFailed": "Couldn't delete the sandbox",
|
||||
"sandboxDeleteFailedDetail": "It may still be running and using sandbox hours.",
|
||||
"sandboxDeleteFailedDetail": "It may still be running and adding to your usage.",
|
||||
"tryAgain": "Try again"
|
||||
},
|
||||
"runtimePortForwards": {
|
||||
@@ -2523,8 +2523,8 @@
|
||||
"orcaCloud": {
|
||||
"workspaceActions": {
|
||||
"unavailable": "Orca Cloud is unavailable.",
|
||||
"archiveSleepFailed": "It’s still running. Your files are safe.",
|
||||
"archiveHookKept": "Not archived: its archive hook failed. Fix it and archive again."
|
||||
"archiveSleepFailed": "It’s still running and adding to your usage. Your files are safe.",
|
||||
"archiveHookKept": "Not archived: its archive script failed. Fix it and archive again."
|
||||
},
|
||||
"pairedWake": {
|
||||
"notPaired2": "This workspace is no longer linked to this computer. Use Open cloud workspace… to link it again."
|
||||
@@ -4608,7 +4608,7 @@
|
||||
"checksAttentionTitleVm": "The VM is up, but some environment checks need attention",
|
||||
"checksCountTitleVm_one": "The VM is up, but {{count}} environment check failed",
|
||||
"checksCountTitleVm_other": "The VM is up, but {{count}} environment checks failed",
|
||||
"provisionBodyCloudKept": "Something went wrong while starting the sandbox. Try again, or delete the sandbox to stop using sandbox hours.",
|
||||
"provisionBodyCloudKept": "Try again, or delete it so it stops adding to your usage.",
|
||||
"provisionBodyCloud2": "Something went wrong while starting the sandbox. Nothing was created, and you weren’t charged.",
|
||||
"provisionBodyVm": "Your VM recipe stopped with an error before the VM was ready.",
|
||||
"createBodyVm": "The VM started, but creating the workspace on it stopped with an error.",
|
||||
@@ -8465,8 +8465,8 @@
|
||||
"delete": "Delete",
|
||||
"uncommitted_one": "{{count}} uncommitted change",
|
||||
"uncommitted_other": "{{count}} uncommitted changes",
|
||||
"bodyNoSnapshot": "Deletes the sandbox and its disk, including chats, terminals and uncommitted changes. This can't be undone.",
|
||||
"archiveHookWake": "It wakes first to run its archive hook (orca.yaml scripts.archive)."
|
||||
"bodyNoSnapshot": "Deletes the workspace and all its files, chats and uncommitted changes. This can’t be undone.",
|
||||
"archiveHookWake": "It wakes first to run the archive script in orca.yaml."
|
||||
},
|
||||
"orcaCloudHost": {
|
||||
"running": "{{count}} running",
|
||||
@@ -8987,10 +8987,10 @@
|
||||
},
|
||||
"orcaCloudPredictiveWake": {
|
||||
"title": "Wake sleeping workspaces early",
|
||||
"description": "A sleeping cloud workspace starts waking when you point at it or come back to Orca, so it's ready sooner. If you don't open it, it goes back to sleep after the idle time.",
|
||||
"description": "Starts waking a workspace when you hover it or return to Orca, so it opens faster. Early wakes add to your usage.",
|
||||
"group": "Orca Cloud",
|
||||
"description_one": "Starts waking a sleeping sandbox when you point at its workspace or come back to Orca, so it's ready sooner. If you don't open it, it goes back to sleep after {{count}} minute idle. Early wakes count toward your sandbox hours.",
|
||||
"description_other": "Starts waking a sleeping sandbox when you point at its workspace or come back to Orca, so it's ready sooner. If you don't open it, it goes back to sleep after {{count}} minutes idle. Early wakes count toward your sandbox hours."
|
||||
"description_one": "Starts waking a workspace when you hover it or return to Orca, so it opens faster. Unopened, it sleeps again after {{count}} minute. Early wakes add to your usage.",
|
||||
"description_other": "Starts waking a workspace when you hover it or return to Orca, so it opens faster. Unopened, it sleeps again after {{count}} minutes. Early wakes add to your usage."
|
||||
},
|
||||
"cloudApi": {
|
||||
"formerMember": "Former member",
|
||||
@@ -9049,7 +9049,7 @@
|
||||
"permissions": "Permissions",
|
||||
"custom": "Custom",
|
||||
"includes": "Includes",
|
||||
"restricted": "Only team owners and admins can grant access to: {{scopes}}. Ask one of them if a script needs it.",
|
||||
"restricted": "Only team owners and admins can give access to {{scopes}}. Ask one of them if a script needs it.",
|
||||
"scopeRequired": "Pick at least one scope.",
|
||||
"expiry": "Expires",
|
||||
"expiryNever": "Never",
|
||||
@@ -27458,7 +27458,7 @@
|
||||
},
|
||||
"menu": {
|
||||
"sleep": "Sleep",
|
||||
"sleepDescription": "Close this workspace's panels and put its sandbox to sleep. Opening the workspace wakes it.",
|
||||
"sleepDescription": "Pauses the workspace until you open it again.",
|
||||
"wake": "Wake",
|
||||
"retryWake": "Try waking again",
|
||||
"waking": "Waking…"
|
||||
@@ -27469,7 +27469,6 @@
|
||||
"prMerged": "Merged",
|
||||
"prClosed": "Closed",
|
||||
"since": "Archived {{when}}",
|
||||
"keptUntilShort": "kept until {{date}}",
|
||||
"title": "Archived workspace",
|
||||
"unarchiving": "Unarchiving…",
|
||||
"loadFailed": "Couldn’t load the archive details.",
|
||||
@@ -27488,7 +27487,10 @@
|
||||
"files_other": "{{count}} files",
|
||||
"loadFailedDetail": "Your files are safe in the archive.",
|
||||
"moreFiles_one": "{{count}} more file not shown",
|
||||
"moreFiles_other": "{{count}} more files not shown"
|
||||
"moreFiles_other": "{{count}} more files not shown",
|
||||
"deletesInShort_one": "deletes in {{count}} day",
|
||||
"deletesInShort_other": "deletes in {{count}} days",
|
||||
"deletesTodayShort": "deletes today"
|
||||
},
|
||||
"state": {
|
||||
"archived": "Archived",
|
||||
@@ -27545,19 +27547,19 @@
|
||||
"asleepUnnamed": "This workspace is asleep."
|
||||
},
|
||||
"dismiss": "Dismiss",
|
||||
"restartSandbox": "Restart sandbox",
|
||||
"restartSandbox": "Restart",
|
||||
"archive": "Archive",
|
||||
"oom": {
|
||||
"titleRan": "{{name}} ran out of memory",
|
||||
"titleProcess": "A process ran out of memory",
|
||||
"stopped": "It was stopped so the sandbox stays up. Restart to recover.",
|
||||
"stopped": "Orca stopped it to keep the workspace running. Restart to recover.",
|
||||
"guardTitle": "Orca stopped {{name}} to keep the workspace responsive",
|
||||
"guardTitleProcess": "Orca stopped a process to keep the workspace responsive",
|
||||
"guardDetail": "The workspace was out of memory. Consider a larger machine.",
|
||||
"machineSize": "Machine size"
|
||||
},
|
||||
"unresponsive": {
|
||||
"sandboxTitle": "This sandbox isn’t responding"
|
||||
"sandboxTitle": "This workspace isn’t responding"
|
||||
},
|
||||
"detail": {
|
||||
"restartKeeps": "Restart keeps your files; agents resume.",
|
||||
@@ -27565,8 +27567,8 @@
|
||||
"waking": "Waking…",
|
||||
"asleepSafe": "Your files and chats are safe. Opening it wakes it.",
|
||||
"restartToRecover": "Restart to recover. Files are kept and Orca resumes your agents after the restart.",
|
||||
"startFailed": "The sandbox couldn’t start. Nothing was lost.",
|
||||
"wakeFailed": "Couldn’t wake the sandbox. Your files and chats are safe."
|
||||
"startFailed": "Couldn’t start the workspace. Your files are safe.",
|
||||
"wakeFailed": "Couldn’t wake the workspace. Your files and chats are safe."
|
||||
},
|
||||
"restarting": "Restarting…",
|
||||
"restart": "Restart",
|
||||
@@ -27595,7 +27597,7 @@
|
||||
"usedOfTotal": "{{used}} / {{total}}",
|
||||
"disk": "Disk",
|
||||
"uptime": "Up for",
|
||||
"keptUntil": "Kept until",
|
||||
"keptUntil": "Deletes",
|
||||
"region": "Region",
|
||||
"ago": "{{ago}} ago",
|
||||
"wake": "Wake",
|
||||
@@ -27627,7 +27629,7 @@
|
||||
},
|
||||
"sandboxHoursValue": "{{value}} sandbox hours",
|
||||
"idleSleptNoTime": "{{name}} went to sleep while idle",
|
||||
"idleSleptDetail": "Files and chats are saved. It uses no sandbox hours until you open it.",
|
||||
"idleSleptDetail": "Your files and chats are saved. Open it to wake it.",
|
||||
"typingNotSent": "Your typing wasn’t sent.",
|
||||
"idleSleptMinutes_one": "{{name}} slept after {{count}} minute idle",
|
||||
"idleSleptMinutes_other": "{{name}} slept after {{count}} minutes idle",
|
||||
@@ -27644,12 +27646,13 @@
|
||||
"archiveFailedNamed": "Couldn’t archive {{name}}",
|
||||
"archivedNamed": "Archived {{name}}",
|
||||
"archivedWorkspace": "Archived the workspace",
|
||||
"archivedDetail": "It goes to sleep and stays browsable: PRs, last changes and files.",
|
||||
"archivedDetail_one": "Kept for {{count}} day, then deleted.",
|
||||
"archivedDetail_other": "Kept for {{count}} days, then deleted.",
|
||||
"tryAgain": "Try again",
|
||||
"sleep": "Sleep",
|
||||
"sleepFailedNamed": "Couldn’t put {{name}} to sleep",
|
||||
"sleepFailedCount": "Couldn’t put {{count}} workspaces to sleep",
|
||||
"sleepFailedDetail": "Its sandbox is still running and using sandbox hours. Your files are safe.",
|
||||
"sleepFailedDetail": "It’s still running and adding to your usage. Your files are safe.",
|
||||
"versionSkew": {
|
||||
"newerTitle": "This cloud workspace uses a newer version of Orca",
|
||||
"olderTitle": "This cloud workspace uses an older version of Orca",
|
||||
@@ -27662,7 +27665,7 @@
|
||||
"deleteFailedNamed": "Couldn’t delete {{name}}",
|
||||
"productName": "Orca Cloud",
|
||||
"cloudMarkLabel": "Cloud workspace · {{state}}",
|
||||
"statusUnavailableTitle": "Couldn’t get the sandbox status.",
|
||||
"statusUnavailableTitle": "Couldn’t get the workspace status.",
|
||||
"files": {
|
||||
"wakeForAll": "Wake the workspace to browse all its files.",
|
||||
"asleep": "Files aren’t available while the workspace is asleep.",
|
||||
@@ -27694,14 +27697,20 @@
|
||||
"sleptRangeShortDivider": "Slept {{range}}",
|
||||
"sleptBareDivider": "Slept"
|
||||
},
|
||||
"archivedDetailLocalEdits_one": "It goes to sleep and stays browsable: PRs, last changes and files. {{count}} changed file on this computer will be removed.",
|
||||
"archivedDetailLocalEdits_other": "It goes to sleep and stays browsable: PRs, last changes and files. {{count}} changed files on this computer will be removed.",
|
||||
"archivedDetailLocalCopy": "It goes to sleep and stays browsable: PRs, last changes and files. The copy on this computer is removed too.",
|
||||
"archivedDetailLocalEdits_one": "Kept for {{days}} days, then deleted. {{count}} changed file on this computer will be removed.",
|
||||
"archivedDetailLocalEdits_other": "Kept for {{days}} days, then deleted. {{count}} changed files on this computer will be removed.",
|
||||
"archivedDetailLocalCopy_one": "Kept for {{count}} day, then deleted. The copy on this computer will be removed.",
|
||||
"archivedDetailLocalCopy_other": "Kept for {{count}} days, then deleted. The copy on this computer will be removed.",
|
||||
"archiveSnapshot": {
|
||||
"definitionUntil": "Archive keeps a snapshot of this workspace (its files, chats and terminal history) until {{date}}, then deletes it. Unarchive it from its menu before then. Like a sleeping workspace, it doesn’t use sandbox hours.",
|
||||
"definition": "Archive keeps a snapshot of this workspace (its files, chats and terminal history) for 30 days, then deletes it. Unarchive it from its menu before then. Like a sleeping workspace, it doesn’t use sandbox hours.",
|
||||
"archivedUntil": "A read-only snapshot of its files, chats and terminal history. Unarchive before {{date}} to open terminals and agents again; after that it’s deleted.",
|
||||
"archived": "A read-only snapshot of its files, chats and terminal history. Unarchive within 30 days of archiving to open terminals and agents again; after that it’s deleted."
|
||||
"definition_one": "Stops the workspace and keeps it for {{count}} day, then deletes it.",
|
||||
"definition_other": "Stops the workspace and keeps it for {{count}} days, then deletes it.",
|
||||
"dialogKept_one": "It’s kept for {{count}} day, then deleted. You can unarchive it until then.",
|
||||
"dialogKept_other": "It’s kept for {{count}} days, then deleted. You can unarchive it until then.",
|
||||
"deletesIn_one": "Read-only. Deletes in {{count}} day unless you unarchive it.",
|
||||
"deletesIn_other": "Read-only. Deletes in {{count}} days unless you unarchive it.",
|
||||
"deletesToday": "Read-only. Deletes today unless you unarchive it.",
|
||||
"archived": "Read-only. Deletes 30 days after archiving unless you unarchive it.",
|
||||
"archivedNote": "Read-only. Unarchive it to keep working."
|
||||
},
|
||||
"primaryDelete": {
|
||||
"noSandbox2": "Orca couldn't find this workspace's sandbox. Find it in Open cloud workspace… to delete it."
|
||||
@@ -27723,14 +27732,14 @@
|
||||
"busy": "It’s already running for this workspace.",
|
||||
"timedOut": "It didn’t finish within 2 minutes.",
|
||||
"exited": "It exited with code {{code}}.",
|
||||
"waking": "Waking {{name}} to run its archive hook…",
|
||||
"running": "Running {{name}}’s archive hook…",
|
||||
"succeeded": "{{name}}’s archive hook finished",
|
||||
"failedTitle": "{{name}}’s archive hook failed",
|
||||
"waking": "Waking {{name}} to run its archive script…",
|
||||
"running": "Running {{name}}’s archive script…",
|
||||
"succeeded": "{{name}}’s archive script finished",
|
||||
"failedTitle": "{{name}}’s archive script failed",
|
||||
"archiveAnyway": "Archive anyway",
|
||||
"keep": "Keep it",
|
||||
"wakeFirst": "It wakes first to run its archive hook.",
|
||||
"skip": "Skip hook"
|
||||
"wakeFirst": "It wakes first to run the archive script in orca.yaml.",
|
||||
"skip": "Skip script"
|
||||
}
|
||||
},
|
||||
"cloudAgentSetup": {
|
||||
@@ -27968,7 +27977,7 @@
|
||||
},
|
||||
"loading": "Loading cloud secrets…",
|
||||
"unavailable": "Cloud secrets aren’t available for this account yet.",
|
||||
"descriptionEdge": "Orca swaps model API keys and agent sign-ins in at the network edge, so the sandbox never sees them. Other secrets reach cloud workspaces as environment variables that anything in the sandbox can read."
|
||||
"descriptionEdge": "Model keys and agent sign-ins never enter the workspace. Other secrets become environment variables any code there can read."
|
||||
},
|
||||
"cloudMcpSync": {
|
||||
"appliesEverywhere": "Applies to every cloud workspace",
|
||||
@@ -28066,9 +28075,10 @@
|
||||
"chats_other": "{{count}} agent chats",
|
||||
"archive": "Archive cloud workspace",
|
||||
"changesPartial": "Uncommitted changes, partly",
|
||||
"archived": "The cloud workspace is archived. Unarchive it any time.",
|
||||
"stillRunning": "The cloud workspace is still running and using sandbox hours. Archive it to stop that; you can unarchive later.",
|
||||
"open": "Open workspace"
|
||||
"stillRunning": "The cloud workspace is still running and adding to your usage. Archive it if you’re done.",
|
||||
"open": "Open workspace",
|
||||
"archived_one": "Cloud workspace archived. It’s kept for {{count}} day, then deleted.",
|
||||
"archived_other": "Cloud workspace archived. It’s kept for {{count}} days, then deleted."
|
||||
},
|
||||
"partialDetail": "Some changes didn’t apply cleanly. They were saved here, so nothing is lost:",
|
||||
"title": {
|
||||
@@ -28199,9 +28209,9 @@
|
||||
"fetchReady": "This workspace can reach {{repo}} now.",
|
||||
"fetchNoAccess": "Orca’s GitHub app doesn’t have access to {{repo}}.",
|
||||
"fetchNoAccessMeaning": "Pulls and pushes won’t work until it does.",
|
||||
"grantAccess": "Grant access",
|
||||
"grantAccess": "Give Orca access",
|
||||
"fetchNoAccessRequested": "An owner of {{owner}} has been asked to approve it. Pulls and pushes won’t work until they do.",
|
||||
"fetchNoAccessCantInstall": "Only an owner of {{owner}} can grant it. Pulls and pushes won’t work until they do.",
|
||||
"fetchNoAccessCantInstall": "Only an owner of {{owner}} can give Orca access. Pulls and pushes won’t work until they do.",
|
||||
"fetchNeedsRestart": "This workspace can’t use Orca’s access to {{repo}} yet.",
|
||||
"pushNeedsRestart": "Orca Cloud can push to {{repo}} now, but this workspace can’t use the new access yet.",
|
||||
"newAccessNeedsRestart": "Restart the workspace to use the new access. Your files are kept."
|
||||
@@ -29303,7 +29313,7 @@
|
||||
},
|
||||
"cloudAgentConfig": {
|
||||
"title": "Skills, agents & memory",
|
||||
"autoSyncHint": "Copies your Claude and Codex skills, commands, subagents, output styles and memory you’ve turned on into each cloud workspace. Anything that looks like a key stays on this computer, and nothing made in the sandbox is overwritten."
|
||||
"autoSyncHint": "Copies what you turn on here into each cloud workspace, without overwriting changes made there. Anything that looks like a key stays on this computer."
|
||||
},
|
||||
"openExternal": {
|
||||
"copyLink": "Copy link",
|
||||
|
||||
@@ -171,7 +171,7 @@ export function showIdleSleepNotice(
|
||||
duration: 8_000,
|
||||
description: translate(
|
||||
'orcaCloudWorkspace.idleSleptDetail',
|
||||
'Files and chats are saved. It uses no sandbox hours until you open it.'
|
||||
'Your files and chats are saved. Open it to wake it.'
|
||||
),
|
||||
action: {
|
||||
label: translate('orcaCloudWorkspace.wake', 'Wake'),
|
||||
|
||||
@@ -64,11 +64,11 @@ export function showOrcaCloudRestartWarningToast(
|
||||
toast.warning(
|
||||
translate(
|
||||
'auto.lib.orcaCloudSession.sandboxRestartsInMinutes',
|
||||
'Sandbox for {{name}} restarts in {{count}} minutes',
|
||||
'{{name}} restarts in {{count}} minutes',
|
||||
{
|
||||
name: workspaceLabel(workspaceName),
|
||||
count: minutesLeft,
|
||||
defaultValue_one: 'Sandbox for {{name}} restarts in {{count}} minute'
|
||||
defaultValue_one: '{{name}} restarts in {{count}} minute'
|
||||
}
|
||||
),
|
||||
{
|
||||
@@ -78,7 +78,7 @@ export function showOrcaCloudRestartWarningToast(
|
||||
description: toastBody(
|
||||
translate(
|
||||
'auto.lib.orcaCloudSession.sandboxRestartSoonDetail',
|
||||
'Cloud sandboxes restart after 24 hours. Files are kept and Orca resumes your agents after the restart.'
|
||||
'Cloud workspaces restart after 24 hours. Your files are kept and agents resume.'
|
||||
),
|
||||
buttons
|
||||
)
|
||||
@@ -119,11 +119,9 @@ function showOrcaCloudRestartFailedToast(
|
||||
const id = restartToastId(workspaceId)
|
||||
const name = workspaceLabel(workspaceName)
|
||||
toast.error(
|
||||
translate(
|
||||
'auto.lib.orcaCloudSession.sandboxRestartFailed',
|
||||
"Couldn't restart the sandbox for {{name}}",
|
||||
{ name }
|
||||
),
|
||||
translate('auto.lib.orcaCloudSession.sandboxRestartFailed', 'Couldn’t restart {{name}}', {
|
||||
name
|
||||
}),
|
||||
{
|
||||
id,
|
||||
duration: RESULT_DURATION_MS,
|
||||
@@ -131,7 +129,7 @@ function showOrcaCloudRestartFailedToast(
|
||||
status === 'not-running'
|
||||
? translate(
|
||||
'auto.lib.orcaCloudSession.restartNotRunning',
|
||||
"The sandbox isn't running. Open the workspace to wake it."
|
||||
'The workspace isn’t running. Open it to wake it.'
|
||||
)
|
||||
: translate(
|
||||
'auto.lib.orcaCloudSession.restartFailedDetail',
|
||||
@@ -143,7 +141,7 @@ function showOrcaCloudRestartFailedToast(
|
||||
|
||||
function showOrcaCloudRestartedToast(workspaceId: string, workspaceName: string | null): void {
|
||||
toast.success(
|
||||
translate('auto.lib.orcaCloudSession.sandboxRestarted', 'Sandbox for {{name}} restarted', {
|
||||
translate('auto.lib.orcaCloudSession.sandboxRestarted', '{{name}} restarted', {
|
||||
name: workspaceLabel(workspaceName)
|
||||
}),
|
||||
{
|
||||
@@ -191,13 +189,9 @@ export function showOrcaCloudRestartingToast(
|
||||
workspaceName: string | null
|
||||
): void {
|
||||
toast.loading(
|
||||
translate(
|
||||
'auto.lib.orcaCloudSession.sandboxRestarting',
|
||||
'Restarting the sandbox for {{name}}…',
|
||||
{
|
||||
name: workspaceLabel(workspaceName)
|
||||
}
|
||||
),
|
||||
translate('auto.lib.orcaCloudSession.sandboxRestarting', 'Restarting {{name}}…', {
|
||||
name: workspaceLabel(workspaceName)
|
||||
}),
|
||||
{
|
||||
id: restartToastId(workspaceId),
|
||||
duration: Number.POSITIVE_INFINITY,
|
||||
@@ -219,7 +213,7 @@ export function showOrcaCloudCleanupStartedToast(creationId: string): void {
|
||||
duration: Number.POSITIVE_INFINITY,
|
||||
description: translate(
|
||||
'auto.lib.orcaCloudSession.deletingSandboxDetail',
|
||||
'Creating the workspace was canceled, so its sandbox is deleted and stops using sandbox hours.'
|
||||
'Creating the workspace was canceled, so nothing is left running.'
|
||||
)
|
||||
})
|
||||
}
|
||||
@@ -244,7 +238,7 @@ export function showOrcaCloudCleanupFailedToast(creationId: string, tryAgain: ()
|
||||
description: toastBody(
|
||||
translate(
|
||||
'auto.lib.orcaCloudSession.sandboxDeleteFailedDetail',
|
||||
'It may still be running and using sandbox hours.'
|
||||
'It may still be running and adding to your usage.'
|
||||
),
|
||||
[
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// How many days an archived workspace's snapshot is kept, from the control plane's GET /v1/config
|
||||
// (ARCHIVE_TTL_DAYS or its 30-day default), so the "until <date>" copy matches what reconcile deletes.
|
||||
// (ARCHIVE_TTL_DAYS or its 30-day default), so the "kept for N days" copy matches what reconcile deletes.
|
||||
import { useSyncExternalStore } from 'react'
|
||||
import { cloudWorkspaceApi } from './orca-cloud-workspace-store'
|
||||
|
||||
@@ -39,6 +39,12 @@ export function useArchiveTtlDays(): number | null {
|
||||
return useSyncExternalStore(subscribe, () => ttlDays)
|
||||
}
|
||||
|
||||
/** The retention for non-React copy (toasts): the loaded TTL, or null before it loads. */
|
||||
export function archiveTtlDays(): number | null {
|
||||
load()
|
||||
return ttlDays
|
||||
}
|
||||
|
||||
/** Tests and fixtures: seed or clear the cached TTL. */
|
||||
export function setArchiveTtlDaysForTest(days: number | null): void {
|
||||
ttlDays = days
|
||||
|
||||
@@ -42,7 +42,7 @@ export function toastCloudSleepFailure(
|
||||
toast.error(sleepFailedTitle(worktreeIds), {
|
||||
description: translate(
|
||||
'orcaCloudWorkspace.sleepFailedDetail',
|
||||
'Its sandbox is still running and using sandbox hours. Your files are safe.'
|
||||
'It’s still running and adding to your usage. Your files are safe.'
|
||||
),
|
||||
action: {
|
||||
label: translate('orcaCloudWorkspace.tryAgain', 'Try again'),
|
||||
|
||||
@@ -99,7 +99,7 @@ export function archiveCloudWorkspace(
|
||||
if (deps.beforeSleep && !(await deps.beforeSleep())) {
|
||||
const message = translate(
|
||||
'auto.lib.orcaCloud.workspaceActions.archiveHookKept',
|
||||
'Not archived: its archive hook failed. Fix it and archive again.'
|
||||
'Not archived: its archive script failed. Fix it and archive again.'
|
||||
)
|
||||
return { ok: false, code: 'failed', message, userMessage: message }
|
||||
}
|
||||
@@ -108,7 +108,7 @@ export function archiveCloudWorkspace(
|
||||
// Never archive a sandbox that is still running: it would keep using hours behind an "Archived" label.
|
||||
const message = translate(
|
||||
'auto.lib.orcaCloud.workspaceActions.archiveSleepFailed',
|
||||
'It’s still running. Your files are safe.'
|
||||
'It’s still running and adding to your usage. Your files are safe.'
|
||||
)
|
||||
return { ok: false, code: 'failed', message, userMessage: message }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user