Skip to content

feat: add preview container environment controls - #808

Closed
numnx wants to merge 395 commits into
devfrom
fix/preview-public-bind-env
Closed

feat: add preview container environment controls#808
numnx wants to merge 395 commits into
devfrom
fix/preview-public-bind-env

Conversation

@numnx

@numnx numnx commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add preview container environment variable controls in the Browser right sidebar and Settings defaults.
  • Persist per-container preview env overrides and merge them with project defaults when starting preview containers.
  • Validate preview env names and reserved runtime variables before writing Docker env files.
  • Rename the built-in styleguide template display name to Code UX.
  • Update canonical and public docs for browser preview environment behavior.

Why

Preview containers sometimes need explicit app-level environment variables for bind/security flags or framework-specific preview behavior. This lets users configure those values from the dashboard instead of editing preview scripts.

Validation

pnpm run lint
pnpm run test:backend -- tests/backend/repositories/settings-sanitizer.test.ts tests/backend/repositories/sprint-preview-repository.test.ts tests/backend/server/preview-routes.test.ts tests/backend/services/sprint-preview-service-unit.test.ts
pnpm run test:dashboard -- tests/dashboard/v2/browser-page.test.tsx
pnpm run test:backend -- tests/backend/domain/settings/design-guidance-catalog.test.ts tests/backend/domain/projects/project-initializer.test.ts
pnpm run test:dashboard -- tests/dashboard/lib/settings-view-models.test.ts tests/dashboard/v2/top-nav-selectors.test.tsx
pnpm run build

Additional local check: /health returned UP at http://127.0.0.1:4444/health.

Risk / Rollback

Low-to-moderate risk: this adds an optional nullable DB column and additive preview env handling. Roll back by reverting the commit; existing preview sessions remain usable because missing overrides default to an empty set.

numnx and others added 30 commits July 7, 2026 12:44
…64-optimize-and-harden-docker-con-t07-codex-mrai0e1q

(CODUX-35) Document container runtime hardening
…boarding-light-mode

Sprint 171: Onboarding light mode — merge feature/CODUX-171-onboarding-light-mode into dev
…73-repeatable-node-flows-t01-codex-mraiezqz

(CODUX-105) Add node-flow persistence foundation
…69-testsuite-e2e-t04-codex-mrahcg1l

(CODUX-169) Assert invocation runtime telemetry
…64-optimize-and-harden-docker-con-t08-codex-mraj38ec

(CODUX-35) QA follow-up for T05
…69-testsuite-e2e-t02-codex-mrahce1r

Cover dashboard sprint workflows (codex)
…67-rich-chat-widgets-agent-sync-a-t04-codex-mraelk1s

Expose agent sync controls (codex)
…73-repeatable-node-flows-t02-codex-mraj9nxe

(CODUX-105) Implement node-flow invocation runtime
…73-repeatable-node-flows-t05-codex-mraj9pju

(CODUX-105) Build editable node canvas
…timize-and-harden-docker-containers

Sprint 164: Optimize and Harden Docker Containers — merge feature/CODUX-164-optimize-and-harden-docker-containers into dev
…ch-chat-widgets-agent-sync-attention-queue

Sprint 167: Rich Chat Widgets, Agent Sync, Attention Queue — merge feature/CODUX-167-rich-chat-widgets-agent-sync-attention-queue into dev
…sk/feature-codux-172-quickactions-create-app-t03-codex-mrahup7k
…72-quickactions-create-app-t03-codex-mrahup7k

(CODUX-104) Queue follow-up direction for app sprints
…sk/feature-codux-172-quickactions-create-app-t04-codex-mrahus1i
…73-repeatable-node-flows-t04-codex-mrajvqua

(CODUX-105) Schedule node-flow runs
numnx and others added 28 commits July 7, 2026 19:43
…ation; improve mockup sprint pentest scenarios and CLI workflow service.

- Updated documentation for rapid orchestration debugging to clarify task-run counts and provider concurrency.
- Enhanced atomic sprint loop documentation to specify provider concurrency admission and task dispatch behavior.
- Added a new mockup pentest project scenario for stress testing with wide Docker configurations.
- Improved CLI workflow service to update execution state upon completion and finalize PR metadata.
- Refactored workspace artifact service to streamline untracked path exports and reduce Docker command overhead.
- Enhanced workspace manager to support concurrent Docker workspace preparations and optimize remote branch fetching.
- Updated tests to reflect changes in logging behavior and ensure proper handling of workspace commands.
…86-n8n-nodes-nodes-canvas-refacto-t05-codex-mratshrh

(CODUX-186) Integrate the `/nodes` page
…n-nodes-nodes-canvas-refactor

Sprint 186: n8n Nodes /nodes Canvas Refactor — merge feature/CODUX-186-n8n-nodes-nodes-canvas-refactor into dev
…me recovery services

- Implement tests for finalizing execution invocation before throwing terminal classified provider errors in ProviderExecutionService.
- Enhance RuntimeStartupRecoveryService tests to cover scenarios for dismissing exhausted merge-conflict escalations and reconciling active task runs linked to terminal dispatches.
- Add tests for handling interrupted local dispatches and ensuring proper cancellation of surviving Docker session containers.
- Extend VirtualWorkerService tests to verify merge conflict resolution and task management under various conditions.
- Introduce session sync step tests to prevent reactivation of stale or cancelled local CLI task runs.
- Refactor sprint orchestrator CI tests for better cleanup and organization.
- Add .dockerignore and Dockerfile for ComfyUI setup, including necessary dependencies and configurations.
- Implement code to ensure .gitignore entry for Code UX runtime artifacts during local repository initialization.
- Create tests for local repository initialization to validate .gitignore seeding and initial commit.
- Added project management repository dependency to ProviderConcurrencyService.
- Improved execution repository queries to include task dispatch statuses for running task counts.
- Updated ProviderConcurrencyService to handle stale Docker provider invocations more effectively, including completion and failure scenarios.
- Implemented logic to reconcile task statuses when task runs are completed or when dispatches are completed.
- Enhanced tests for ProviderConcurrencyService to cover new scenarios for stale invocations and task run completions.
- Added new tests in RuntimeStartupRecoveryService to ensure task status synchronization after recovery.
- Updated SprintTaskDispatchService to manage queued task dispatches and resume them when capacity is available.
…87-fix-system-bar-t01-codex-mrc2soc1

(CODUX-119) Add desktop update and window-control bridge
…87-fix-system-bar-t02-codex-mrc37cmo

(CODUX-119) Restore the Electron title bar UI
…87-fix-system-bar-t03-codex-mrc3mzx3

(CODUX-119) Document desktop system bar behavior
…x-system-bar

Sprint 187: Fix System Bar — merge feature/CODUX-187-fix-system-bar into dev
…der invocations; enhance dashboard sync logic
…sms; add new indexes and update documentation
…y logging

- Introduced `isLocalCliTaskAwaitingBranchEvidence` function to identify local CLI tasks that are completed but awaiting branch evidence.
- Updated `evaluateSprintTransitionState` to account for local CLI tasks in the merge required tasks filtering.
- Added `restorePreservedDirtyCheckout` function to handle restoring dirty checkouts without committing.
- Implemented logging for provider concurrency cap waits to improve visibility into task blocking scenarios.
- Enhanced `runStartReadyTasksStep` to track and log provider concurrency cap blocks for better debugging.
- Updated tests to cover new functionality and ensure correct behavior of local CLI task handling and provider concurrency.
- Adjusted existing tests to reflect changes in task status handling and logging behavior.
…ress-stability

# Conflicts:
#	docs-web/content/docs/registry.ts
#	docs-web/content/docs/user-dashboard-chat.mdx
#	docs-web/content/docs/user-dashboard-nodes.mdx
…stress-stability

[codex] Stabilize local CLI final merge and stress orchestration
…er-inheritance

[codex] fail closed provider routing
…g-budget-save

fix: inherit provider thinking and use rapid orchestration ci
…re-flags

feat: gate unfinished dashboard features
@numnx

numnx commented Jul 8, 2026

Copy link
Copy Markdown
Owner Author

Closing this fork-local duplicate because its base branch is stale and shows unrelated inherited commits. The clean PR into dev is codeux-ai#2722.

@numnx numnx closed this Jul 8, 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