|
1 | 1 | import { useEffect, useMemo, useRef, useState } from 'react' |
2 | | -import { ExternalLink, RadioTower, Target } from 'lucide-react' |
| 2 | +import { Target } from 'lucide-react' |
3 | 3 | import { |
4 | 4 | SCHEDULED_TAB_ID, |
5 | 5 | SETTINGS_TAB_ID, |
@@ -32,8 +32,6 @@ import type { ActiveGoalState } from '../types/chat' |
32 | 32 | import { useMobileViewport } from '../hooks/useMobileViewport' |
33 | 33 | import { isDesktopRuntime } from '../lib/desktopRuntime' |
34 | 34 | import { publicAssetPath } from '../lib/publicAsset' |
35 | | -import { getDesktopHost } from '../lib/desktopHost' |
36 | | -import { buildTraceWindowUrl } from '../lib/traceLaunch' |
37 | 35 |
|
38 | 36 | const TASK_POLL_INTERVAL_MS = 1000 |
39 | 37 | const WORKSPACE_RESIZE_STEP = 32 |
@@ -364,22 +362,6 @@ export function ActiveSession() { |
364 | 362 | return t('session.timeDays', { n: Math.floor(diff / 86400000) }) |
365 | 363 | }, [session?.modifiedAt, t]) |
366 | 364 |
|
367 | | - const openTrace = () => { |
368 | | - if (!activeTabId) return |
369 | | - const title = session?.title || t('session.untitled') |
370 | | - useTabStore.getState().openTraceTab(activeTabId, `${t('trace.title')}: ${title}`) |
371 | | - } |
372 | | - |
373 | | - const openTraceWindow = () => { |
374 | | - if (!activeTabId) return |
375 | | - const host = getDesktopHost() |
376 | | - if (host.trace) { |
377 | | - void host.trace.openWindow(activeTabId) |
378 | | - return |
379 | | - } |
380 | | - window.open(buildTraceWindowUrl(activeTabId), '_blank', 'noopener,noreferrer') |
381 | | - } |
382 | | - |
383 | 365 | if (!activeTabId) return null |
384 | 366 |
|
385 | 367 | return ( |
@@ -480,25 +462,6 @@ export function ActiveSession() { |
480 | 462 | > |
481 | 463 | {session?.title || t('session.untitled')} |
482 | 464 | </h1> |
483 | | - <button |
484 | | - type="button" |
485 | | - aria-label={t('trace.open')} |
486 | | - title={t('trace.open')} |
487 | | - onClick={openTrace} |
488 | | - className="inline-flex h-8 shrink-0 items-center gap-1.5 rounded-[8px] border border-[var(--color-border)] px-2.5 text-xs font-semibold text-[var(--color-text-secondary)] transition-colors hover:border-[var(--color-border-focus)] hover:text-[var(--color-text-primary)] active:scale-[0.98]" |
489 | | - > |
490 | | - <RadioTower size={14} strokeWidth={2} aria-hidden="true" /> |
491 | | - <span className={showRightPanel ? 'sr-only' : 'hidden sm:inline'}>{t('trace.open')}</span> |
492 | | - </button> |
493 | | - <button |
494 | | - type="button" |
495 | | - aria-label={t('trace.openWindow')} |
496 | | - title={t('trace.openWindow')} |
497 | | - onClick={openTraceWindow} |
498 | | - className="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-[8px] border border-[var(--color-border)] text-[var(--color-text-secondary)] transition-colors hover:border-[var(--color-border-focus)] hover:text-[var(--color-text-primary)] active:scale-[0.98]" |
499 | | - > |
500 | | - <ExternalLink size={14} strokeWidth={2} aria-hidden="true" /> |
501 | | - </button> |
502 | 465 | </div> |
503 | 466 | <div |
504 | 467 | className={ |
|
0 commit comments