test-desktop-app
Use when testing the Hubble Electron desktop app, especially when inspecting, clicking, screenshotting, or verifying a real note edit in the running app.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 1.5k
- Forks
- 99
01 前言 Front Matter
- name
- test-desktop-app
- metadata
- { "internal": true }
- description
- Use when testing the Hubble Electron desktop app, especially when inspecting, clicking, screenshotting, or verifying a real note edit in the running app.
03 SKILL.md 正文
Test Desktop App
- Run
HUBBLE_DESKTOP_BACKGROUND=1 HUBBLE_DESKTOP_ENABLE_CDP=1 pnpm dev:desktop.HUBBLE_DESKTOP_BACKGROUND=1keeps the window hidden so it never covers or takes focus from the user's screen; drive it over CDP. - Read the terminal output for:
Playground: <path>DevTools listening on ws://127.0.0.1:9222/...
- Use the auto-opened editable playground at
apps/desktop/.dev-electron/playgroundinstead of file pickers or checked-in fixtures. - Prefer the Chrome DevTools Protocol endpoint for interaction-heavy verification. It can inspect DOM state, evaluate JavaScript, click controls, inspect iframe contents, and capture screenshots from the real Electron renderer. This is useful when Computer Use has limitations interacting with the dev app window.
- For CDP setup, fetch
http://127.0.0.1:9222/json/list, connect to the pagewebSocketDebuggerUrl, and drive the renderer with DevTools Protocol commands. - When you're done, stop the dev server and confirm no
Hubble Devprocess remains.
Gotchas:
- Build
packages/uiandpackages/editorfirst; the desktop app imports their dist output. - Screenshots are DPR 2: CSS px times 2.
- Right clicks need real
Input.dispatchMouseEventevents; syntheticcontextmenuevents don't open base-ui context menus. - Popup open in the DOM but missing from a screenshot? Check stacking with
document.elementFromPoint. - xterm refits through a debounced ResizeObserver and can lag layout changes by a few seconds; re-measure before calling it a bug.
04 同仓库更多 Skills
review-markdown-comments
Reply to, resolve, or reopen Hubble review comments stored as CriticMarkup in Markdown files. Use when asked to address a Hubble review comment.
merge-risk
Use when assessing the risk of merging a PR
embed-html-app
Embed a Hubble HTML App inline inside a Markdown File using an iframe block. Use when an app should be viewed in the context of a document.
edit-diagram
Create or edit a Hubble diagram: a .tldr file Hubble opens in its built-in tldraw canvas. With this skill installed, any diagram, canvas, whiteboard, or .tldr file is a Hubble diagram: use this skill instead of tldraw-offline, unless the user names the tldraw offline app or the file is a .tldraw archive.
create-html-app
Create or update a Hubble HTML App: a folder-local .html file Hubble runs as a self-contained interactive UI, with Alpine, Tailwind, Hubble theme tokens, and the injected hubble runtime API.
convex
Routes general Convex requests to the right project skill. Use when the user asks which Convex skill to use or gives an underspecified Convex app task.