Skip to content

Reuse saved container profiles when creating cases - #856

Closed
bearyjd wants to merge 1 commit into
Ark0N:masterfrom
bearyjd:feat/reuse-case-container-profile
Closed

bearyjd wants to merge 1 commit into
Ark0N:masterfrom
bearyjd:feat/reuse-case-container-profile

Conversation

@bearyjd

@bearyjd bearyjd commented Nov 25, 2026

Copy link
Copy Markdown

Draft, pending the scope question in #855 (does a profile selector belong in New Case → Container settings?). Happy to move or reshape it before it is marked ready.

What

New Case → Container settings gets a saved-profile selector. Picking a saved container profile creates the case with its own workspace and its own container from that unchanged profile, instead of re-entering the container settings by hand.

  • A case created without selecting a profile behaves exactly as it does today.
  • Existing cases are not touched.
  • The profile is reused as stored: preflight rejects a profile that changed or was overwritten between selection and creation, rather than creating a case from a stale or generated one.

Verification

  • Regression tests added to test/routes/case-routes.test.ts, covering the saved-profile creation paths and the unchanged legacy path (they failed in four expected ways before the change).
  • 117 targeted tests, 11 Chromium tests (test/case-custom-path.browser.test.ts) and the 282 xterm-zerolag-input package tests pass on Node 22; typecheck, lint, format, lockfile, frontend-syntax and browser-exclusion checks pass.
  • Real smoke test on Docker and on rootless Podman: two separate workspaces and two live shell containers from one unchanged profile, then removed through the normal API.
  • Full npm test on my host: 17,315 passed, 1 failed. The failure is the /mnt/d assertion in test/routes/html-view-routes.test.ts:388; it fails the same way on a clean master here (this host symlinks /mnt to /var/mnt) and passes in a Debian Node 22 container at this commit.

Not in this PR

Pinning the image to the case, Clone Repo, Git status and anything that pushes. Those would be separate PRs, only if the maintainer wants them (see the discussion).

@bearyjd bearyjd closed this by deleting the head repository Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant