Skip to content

Conversation

@kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented Oct 20, 2025

This allows cmux to run as a web server.

Run node dist/main.js server to start on port 3000.

image

This directory select modal appears only when in browser mode for opening a new project. Everything else is the same.

@kylecarbs kylecarbs requested a review from ammario October 20, 2025 19:30
@kylecarbs kylecarbs self-assigned this Oct 20, 2025
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

import { Config } from "./config";
import { IPC_CHANNELS } from "@/constants/ipc-constants";
import { IpcMain } from "./services/ipcMain";
import cors from "cors";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Declare cors and ws dependencies for server entrypoint

The new server entrypoint imports cors and ws to expose HTTP and WebSocket APIs, but package.json only adds express. Because those modules are never declared as dependencies, executing node dist/main.js server will immediately fail with MODULE_NOT_FOUND for the missing packages. They need to be added to dependencies (and type packages if required) so the server command can start.

Useful? React with 👍 / 👎.

This allows cmux to run as a web server.

Run `node dist/main.js server` to start on port 3000.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to add a visual storybook test for this component?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably i'll add later

@kylecarbs kylecarbs merged commit 91d4804 into main Oct 20, 2025
8 of 9 checks passed
@kylecarbs kylecarbs deleted the browser branch October 20, 2025 22:18
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.

2 participants