GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore(desktop): preserve appearance during CDP diagnostics (#59681) · abn/opencode@b431db8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • AGENTS.md
  • packages/app/e2e/performance/devex
    • desktop-startup.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎AGENTS.md‎

Copy file name to clipboardExpand all lines: AGENTS.md
+6Lines changed: 6 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
- The script discovers the server with `opencode service status`, injects its private local credential from `opencode service get password`, and uses the `dev` TUI storage channel so tabs and other client-local state match the installed client.
1111
- Prefer `dev:live` over plain `bun run dev` for this workflow. An implicit managed-service connection may replace the live server when the worktree client version differs; explicit `--server` warns and continues without replacing it.
1212

13+
## Live Desktop Diagnostics
14+
15+
- When attaching Playwright to a running desktop app, use `chromium.connectOverCDP(endpoint, { noDefaults: true })`.
16+
- Without `noDefaults`, Playwright applies light-mode media emulation during attachment. An app following the system theme then flashes light until the connection closes. The option also preserves the existing focus and other media preferences.
17+
- Do not emulate a color scheme or reduced-motion preference on the user's live window unless explicitly requested; use an isolated test context for those scenarios.
18+
1319
## TUI Stories
1420

1521
- When a user asks for a TUI story, add a fixture-driven story under `packages/tui/src/feature-plugins/system/storybook` and register it in `index.tsx`.
Collapse file

‎packages/app/e2e/performance/devex/desktop-startup.ts‎

Copy file name to clipboardExpand all lines: packages/app/e2e/performance/devex/desktop-startup.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ function startDesktop(profile: Awaited<ReturnType<typeof createColdProfile>>) {
239239
}),
240240
])
241241

242-
browser = await chromium.connectOverCDP(url, { timeout: 120_000 })
242+
// Observe the native appearance and focus instead of applying Playwright's media defaults.
243+
browser = await chromium.connectOverCDP(url, { timeout: 120_000, noDefaults: true })
243244
const context = browser.contexts()[0]
244245

245246
if (!context) throw new Error("Electron did not expose a browser context")

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.