Repository navigation
feat(app): New split — open an empty session as the secondary pane - #4397
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Supplementary screenshots (not the verdict)Captured by driving the PR build from this branch's worktree ( 1. Right-click any session → New split 2. Result: primary stays put, a fresh empty session opens as the secondary pane with focus
3. Cmd+K → New split Selecting it replaced the secondary with another fresh session ( Why the spec is still red — root causeIt is not this diff and not the proxy. On current Latest Daytona run on this head: Fix belongs in the harness/engine warm-up (either wait for engine readiness before seeding, or raise the first-create budget), not here. Once that lands, rerun |
243525d to
1a8b35b
Compare
…nd seed each Electron profile Every e2e desktop profile started with an empty engine cache, so the first workspace bootstrap npm-installed @opencode-ai/plugin and opencode-chrome-devtools inside the engine. In the sandbox that self-install often wedged with idle TLS connections to the registry, the app reported OpenCode unavailable, and every app-driving spec died at seedSessions. Install those packages once per sandbox with npm into the three directories the engine checks, then copy the warm tree into each fresh profile so bootstrap takes 0.2s instead of minutes.
1a8b35b to
53be6f6
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (24187a960eb98ace5f7db0d6854db9f66a2ec0e4). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
…that exact path Address the Warden finding: never trust a pre-existing shared cache dir in a reused sandbox. Each provision installs into a fresh /tmp/openwork-engine-warm-* tree with --ignore-scripts and hands that exact path to the Daytona host, which is the only source spawnElectron seeds from.
24187a9 to
a505c90
Compare
…pane Right-click any session row (or open the palette) and choose New split to create a fresh session in that workspace and open it beside the current one without moving the primary pane or route.
…ert the visible split
c0c199e to
69caa0f
Compare
Test evidence — new-split-creates-fresh-same-workspace-secondary-sessions-without-moving-the-pri — ✅ passed✅ 0/2 screenshots passed · 0 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-new-split-session-1788519588298) · session("New split primary") ⚪ UNVALIDATED — 1. new-split-creates-fresh-same-workspace-secondary-sessions-without-moving-the-pri artifact 1
⚪ UNVALIDATED — 2. new-split-creates-fresh-same-workspace-secondary-sessions-without-moving-the-pri artifact 2
Test run created 2026-09-04T10:58:00.501Z · Source: |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (69caa0f478ca9bbdc9142fba9214f252155a4ad9). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run





What
Adds New split: create a fresh, empty session in a workspace and open it as the secondary split pane while the primary pane and route stay where they are.
Two entry points:
⋯menu) → New split. Uses that row's workspace. Shown whenever a primary session is open, including on the current session's own row.How
session-route.tsx:handleCreateTaskInWorkspaceis now a thin wrapper over one creator withopenAs: "primary" | "split". The split path keeps the retry/toast/analytics/model-apply behaviour but skips the navigate / active-workspace / last-session writes and insteadopenTab→setSplit→focusPane("secondary"). Retry and engine-reload toasts preserve the mode.app-sidebar.tsx/app-sidebar-provider.tsx/session-page.tsx: menu item (data-session-menu-new-split) plumbed through the sidebar context.command-palette.tsx:new-splititem, gated likeopen-in-split-view.en.ts: one label. No workbench-store changes; existing reducers cover it.Verification — Passed
Spec
evals/specs/new-split-session.e2e.test.ts, Daytona lane, on this head (checkout resolved 1a8b35b6a5dc):Claims asserted, for both entry points: layout is
split; primary session id and route unchanged; secondary is a newses_…id not present before; same workspace; session count grows by exactly one per action; exactly one secondary pane (palette replaces, doesn't stack). Evidence is in the sticky test-evidence comment; supplementary screenshots of both flows are in an earlier comment.Typecheck (
tsc -p apps/app/tsconfig.json --noEmit) andbun test tests/workbench-store.test.ts tests/command-palette-sessions.test.ts(8 pass) green.Depends on #4415
This branch includes the two harness commits from #4415 (engine cache pre-warm). Without them every app-driving spec on
devdies atseedSessionsbecause the engine's cold plugin install wedges in the sandbox. Merge #4415 first; this PR then reduces to the three feature/spec commits.