blob: ac3734fb0c60517cb7d9e595ae8ee5d7bb34ffed [file]
{
"policy": [
"A test belongs in this tier only when it needs a real Electron window: an OS dialog, a main-process round trip, input released outside the window, persistence across a renderer reload, or a cross-process lifecycle.",
"Layout geometry, renderer state machines and pure CSS go to a Storybook play function; main-process logic goes to node --test. See #4761.",
"Every spec below records the Electron-owned mechanism it needs. If you cannot name one, the test does not belong here."
],
"specs": {
"composer-directory-reference.spec.ts": {
"tests": 1,
"electron": "the folder reference has to survive a renderer reload and still agree with the Host's session record"
},
"composer-session-reference.spec.ts": {
"tests": 1,
"electron": "the referenced transcript snapshot crosses renderer, preload, main process, and Runtime Host boundaries before the staged quote can be sent"
},
"expected-failure-feedback.spec.ts": {
"tests": 2,
"electron": "WorkHub attachment rejection crosses a native file dialog, preload and main; Session settings and Plan failures must preserve their codes through a real contextBridge IPC round trip"
},
"new-task-reload.spec.ts": {
"tests": 2,
"electron": "renderer reload must preserve an explicit new task and rebuild archived-only Host history as an empty, usable new-task surface"
},
"partial-history-notice.spec.ts": {
"tests": 1,
"electron": "bounded paging crosses renderer, preload and Host transcript storage: each page comes from the Host only when the reader asks, and the Host Turn index lists the whole Session before it is loaded; the return-to-tail assertion also uses a real pointer hit-test. Where the arriving rows leave the reader is renderer-owned and lives in the PrependedHistoryKeepsMeasuredHeights story."
},
"proxy-password-editing.spec.ts": {
"tests": 1,
"electron": "the password never reaches the renderer; only the Host can report passwordConfigured and authenticate offline"
},
"quote-window-boundary.spec.ts": {
"tests": 1,
"electron": "a pointer capture released outside the window -- there is no window edge to leave in a browser tab"
},
"rename-focus.spec.ts": {
"tests": 1,
"electron": "native Electron keyboard events must reach the rename field immediately after menu dismissal or a row double-click"
},
"session-draft-focus.spec.ts": {
"tests": 1,
"electron": "needs a second real Session (Host round trip) to switch to; the focus and draft-restore halves alone would not earn a window"
},
"session-local-recovery.spec.ts": {
"tests": 6,
"electron": "SQLite admission crosses preload and main, survives renderer reload and complete Electron restart, and cached history renders without live IPC. Failed-message recovery reads original bytes, fences drafts, and preserves one-shot slash intent through the real composer/Main path. Stop retractions remain retired across offline navigation and application restart. Failed-message alignment with transcript turns is covered by the FailedLocalMessage Storybook play function."
},
"session-workbar.spec.ts": {
"tests": 5,
"electron": "Git changes re-read on native window focus; native PTY ownership survives Session navigation and renderer replacement, while Stop/exit cross preload/main into the terminal view; Side Chat owns a Host fork lifecycle; first send reaches the Host; the Trace launcher opens a workbar whose per-Session visibility survives renderer reload."
},
"settings.spec.ts": {
"tests": 2,
"electron": "Code Mode reads back Host settings through IPC; opening Settings commits a pending title rename to the Host, with workbar hide/restore asserted in that same Session."
},
"sidebar-project-reload.spec.ts": {
"tests": 1,
"electron": "rail grouping has to be rebuilt from persisted project state after a renderer reload"
},
"side-chat-followups.spec.ts": {
"tests": 1,
"electron": "native queue dragging must pass the main-window drop guard, queued follow-ups drain in order across real Host turn handoffs, and closing the Desktop transport while an external client drives the fork exercises observation reseed without remount"
},
"slash-command-compact.spec.ts": {
"tests": 1,
"electron": "/compact is a Host round trip that ends in a real terminal Turn state"
},
"streaming-remount.spec.ts": {
"tests": 4,
"electron": "observation seeding, reconnect and settle are Host subscriptions surviving a renderer remount"
},
"workhub-layout.spec.ts": {
"tests": 3,
"electron": "WorkHub model configuration and attachment sending cross the Host boundary; the Project New task action must dismiss the native dock owned by a separate WebContentsView; the default titlebar toggle controls the sibling WorkHub WebContentsView through Main IPC, and switching to edge mode restores the native-renderer toggle; the native Workbar menu must coexist with the live sibling WebContentsView without hiding its compositor; a delayed sidebar-preview capture keeps the sibling view live until its decoded backdrop can take over; model selection in the compact sheet must reach the Host without changing the native floating window bounds or bottom anchor; opening context details routes to Main’s Workbar without resizing or docking the floating conversation, while the thinking sheet stays within the compact bounds; native floating preserves macOS Dock visibility; a held-open Host Turn verifies immediate prompt visibility, durable transcript handoff and persistence after renderer reload"
},
"workhub-reconstruction.spec.ts": {
"tests": 1,
"electron": "the same WebContentsView and unsent draft survive reparenting between native main and floating windows, shared appearance changes and the explicit return-from-picture-in-picture button"
},
"workhub-pending-question.spec.ts": {
"tests": 1,
"electron": "a Host-backed pending question survives renderer reload and native detach/dock with its selection and focus"
},
"zh-tw-locale.spec.ts": {
"tests": 1,
"electron": "the locale is a persisted Host setting and only takes effect through a renderer reload"
}
}
}