Workspace & Inspection

Key facts

  • StagesControlled Execution + Validation.
  • InspectionCDP DOM + network + console + Playwright smoke and step builder.
  • Secret masking.env values are regex-masked on read; raw values never leave main.

Pipeline stages this surface serves

  • controlled-execution
  • validation

What it does

  • Preview webview

    A webview on the persist:uct-preview partition keeps cookies, localStorage, and IndexedDB across runs; default-deny permissions on the main session, browser-grade only for the preview.

    evidence · src/components/PreviewPanel.tsx · electron/main.ts

  • CDP DOM agent

    Attaches the Chrome DevTools Protocol to the live preview for DOM evaluation and screenshots.

    evidence · electron/ipc/domAgent.ts

  • CDP network capture

    Captures request/response events from the preview partition for inspection.

    evidence · electron/ipc/network.ts

  • Playwright smoke + steps

    Boots the dev server, navigates, screenshots, captures console errors, runs a DOM probe; step-driven navigation rides on the same harness.

    evidence · electron/ipc/playwright.ts · playwrightBoot.ts

  • Monaco viewer + secret masking

    .env values matching KEY|SECRET|TOKEN|PASSWORD|CREDENTIAL|PRIVATE|SERVICE_ROLE|API|DSN are masked before they reach the renderer.

    evidence · src/components/FilePreview.tsx · electron/ipc/fs/secrets.ts

  • Project tree + symbol palette

    Tree with ignored-dir pruning (capped ~5000 entries), ⌘P symbol palette, ⌘K command palette, regex code-symbol index across 17 languages.

    evidence · ProjectTreePanel.tsx · IndexBrowser.tsx · electron/ipc/codeIndex.ts

Surfaces

Screenshots captured in a later phase. Frame names + intended dimensions shown today.

Preview webview with overlay console; isolated partition; default-deny permissions on the main session.evidence · src/components/PreviewPanel.tsx · electron/main.ts:537-564
CDP network inspector listing requests, response codes, and timings observed from the preview partition.evidence · electron/ipc/network.ts
Monaco file viewer with .env values masked before they reach the renderer.evidence · electron/ipc/fs/secrets.ts:11-33

Evidence

Every claim on this page traces to a file in the desktop app repository.

  • src/components/PreviewPanel.tsx
  • electron/ipc/domAgent.ts
  • electron/ipc/network.ts
  • src/components/preview/probes.ts
  • src/hooks/usePreviewConsole.ts
  • electron/ipc/playwright.ts
  • electron/ipc/fs/secrets.ts