Skip to content

fix(desktop): unify shell dialogs and recovery screens with emcn - #7828

Merged
waleedlatif1 merged 3 commits into
stagingfrom
codex/desktop-server-emcn-modal
Sep 14, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
codex/desktop-server-emcn-modal

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Bundle shared EMCN components for desktop server settings, offline pages, and application dialogs. Use title-only headers and size compact dialogs to their content so the server picker does not scroll.
  • Replace native terminal confirmations and align browser, workspace, and OAuth error screens with the shared components.
  • Keep isolated preload permissions, safe keyboard defaults, and recovery when a bundled renderer fails. Preserve the synchronous OS unload decision required by Electron.

Type of Change

  • Bug fix

Testing

  • All eight cleanup passes; repository lint, 46 audits (including API validation), docs manifest, and all 26 workspace type-checks passed.
  • 1,614 desktop tests, 234 shared EMCN tests, 4 terminal confirmation tests, and 8 Electron smoke tests passed.
  • All 3 packaged smoke tests passed on arm64 with production fuses. Local packaging uses the PNG icon because Icon Composer requires Xcode 26; CI validates the standard universal package.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@waleedlatif1
waleedlatif1 requested a review from a team as a code owner September 14, 2026 23:09
@vercel

vercel Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 14, 2026 11:22pm UTC

Request Review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@greptile-apps

greptile-apps Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no outstanding correctness, security, or repository-rule violations were identified.

Summary

This PR unifies desktop dialogs, server settings, offline recovery surfaces, and related web error states around shared EMCN components.

  • Bundles isolated React renderers and shared styling for desktop shell pages.
  • Replaces native asynchronous confirmations with secured app-owned dialog windows while retaining an OS fallback.
  • Adds content-based sizing, renderer-failure recovery, permission restrictions, and sender validation.
  • Makes terminal-close confirmation asynchronous and revalidates the captured terminal before closing it.
  • Expands unit, smoke, and packaged-build coverage for the new flows.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Desktop main process] --> B[showShellDialog]
    B --> C[Isolated BrowserWindow]
    C --> D[sim-shell dialog page]
    D --> E[Bundled EMCN renderer]
    E -->|validated IPC response| B
    E -->|content height| F[Clamped window sizing]
    C -->|renderer or load failure| G[Native OS dialog fallback]
    B --> H[Calling workflow]
Loading

Reviews (3) · Last reviewed commit: "fix(desktop): track terminal confirmatio..."

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@waleedlatif1
waleedlatif1 merged commit 7730fd3 into staging Sep 14, 2026
28 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/desktop-server-emcn-modal branch September 14, 2026 23:25

This branch was previously deployed

1 inactive deployment
Preview — 2ce64abb Deployed Sep 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Assignees

Couldn't load assignees.