Skip to content

Fix Turbopack build errors for Cloudflare deployment#103

Merged
Abdulmuiz44 merged 2 commits into
mainfrom
codex/cloudflare-deploy
May 24, 2026
Merged

Fix Turbopack build errors for Cloudflare deployment#103
Abdulmuiz44 merged 2 commits into
mainfrom
codex/cloudflare-deploy

Conversation

@Abdulmuiz44
Copy link
Copy Markdown
Collaborator

Fixes

Copy link
Copy Markdown

@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.

Reviewed commit: 09ed97ca00

ℹ️ 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".

chatId: editingMessageId ?? undefined,
researchMode,
chatMode: inferChatMode(tool, researchMode)
chatMode: outgoingChatMode,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Send backend chatMode enum instead of UI mode values

processMessage now always sends chatMode: outgoingChatMode, which is a UI mode (ask/study/image) rather than the API enum expected by POST /api/generate. In app/api/generate/route.ts, isGenerateProps only accepts general|learn|research|build for body.chatMode, so requests from this component are rejected as 400 Invalid message request whenever chatMode is present. This regression was introduced when the inferChatMode(...) field was removed from the payload, so normal chat submissions can fail before generation runs.

Useful? React with 👍 / 👎.

@Abdulmuiz44 Abdulmuiz44 merged commit 5f35c08 into main May 24, 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