Skip to content

Improve Windows automation reliability#9

Open
112-stack wants to merge 2 commits into
mainfrom
codex/create-local-python-web-application-with-chatgpt-vnzd04
Open

Improve Windows automation reliability#9
112-stack wants to merge 2 commits into
mainfrom
codex/create-local-python-web-application-with-chatgpt-vnzd04

Conversation

@112-stack

Copy link
Copy Markdown
Owner

Summary

  • replace the batch-only installer and runner with PowerShell-backed wrappers that validate prerequisites, handle spaces, and surface actionable errors
  • add shared PowerShell utilities for dependency checks, npm installation, and process launching to keep the scripts maintainable
  • expand the Windows quick-start docs with cleanup guidance for the old Flask stack and execution policy tips

Testing

  • not run (not requested)

Codex Task

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

Copy link
Copy Markdown

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

Comment thread client/src/lib/api.ts
Comment on lines +57 to +66
export const submitInsightRequest = async (payload: FormData) => {
const response = await axios.post('/api/insights', payload, {
headers: { 'Content-Type': 'multipart/form-data' },
});
return { data: insightsSchema.parse(response.data.insights), raw: response.data };
};

export const submitComparisonRequest = async (payload: FormData) => {
const response = await axios.post('/api/compare', payload, {
headers: { 'Content-Type': 'multipart/form-data' },

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 Avoid hard‑coding multipart Content-Type header

Both form helpers send FormData while explicitly setting headers: { 'Content-Type': 'multipart/form-data' }. When the browser sees this override it does not add the required boundary parameter, so Multer on the server will reject the upload with “multipart boundary not found” and the insight/comparison flows never succeed. Dropping the header lets Axios/XHR generate the correct boundary automatically.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant