Skip to content

chore(core): merge PR 2520 with review follow-ups#2554

Open
ottomao wants to merge 14 commits into
mainfrom
codex/pr-2520-main-followup
Open

chore(core): merge PR 2520 with review follow-ups#2554
ottomao wants to merge 14 commits into
mainfrom
codex/pr-2520-main-followup

Conversation

@ottomao

@ottomao ottomao commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Validation

  • pnpm run lint
  • pnpm run check-dependency-version
  • pnpm exec nx test @midscene/core -- tests/unit-test/llm-planning.test.ts
  • pnpm exec nx test @midscene/playground -- tests/unit/launcher.test.ts

FinnJov and others added 7 commits May 22, 2026 13:57
Add assertPlannedActionInActionSpace and use it in llm-planning and
buildYamlFlowFromPlans so invalid action types throw during planning
instead of after extra LLM rounds or at TaskBuilder execution.
…s placeholder

Keep warn-and-skip when apps/report/dist is missing (core builds before
report in the monorepo graph). Throw only if index.html is present yet
dist still contains REPLACE_ME_WITH_REPORT_HTML after injection.
Listen on localhost unless MIDSCENE_PLAYGROUND_ALLOW_REMOTE=1 or
MIDSCENE_PLAYGROUND_HOST is set, reducing accidental LAN exposure of
unauthenticated /execute APIs.
Replace rm -rf clean with scripts/clean.mjs for Windows. Add .env.example
(unignored via !.env.example) with MIDSCENE_MODEL_* and playground env hints.
…HOST override

Per review: keep default listen behavior unchanged. Users can set MIDSCENE_PLAYGROUND_HOST=127.0.0.1 for local-only access.

Co-authored-by: Cursor <cursoragent@cursor.com>
Per review: replace scripts/clean.mjs with rimraf, aligned with other packages in the monorepo.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 27, 2026

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9902586
Status: ✅  Deploy successful!
Preview URL: https://9626d509.midscene.pages.dev
Branch Preview URL: https://codex-pr-2520-main-followup.midscene.pages.dev

View logs

@yuyutaotao yuyutaotao marked this pull request as ready for review May 27, 2026 08:37
@yuyutaotao yuyutaotao enabled auto-merge (squash) May 27, 2026 08:37
@yuyutaotao yuyutaotao changed the title [codex] Merge PR 2520 with review follow-ups chore(core): merge PR 2520 with review follow-ups May 27, 2026

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

Reviewed commit: 9ba2bae4f7

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


const url = `http://127.0.0.1:${port}`;
const host = resolvePlaygroundBrowserHost();
const url = `http://${host}:${port}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Bracket IPv6 playground hosts before building URLs

When MIDSCENE_PLAYGROUND_HOST is set to an IPv6 literal such as ::1, the server can listen on that host, but this interpolation produces http://::1:<port>, which is not a valid HTTP URL. Since the new env var accepts listen hosts and this helper already handles the IPv6 wildcard ::, format IPv6 browser hosts with brackets (for example http://[::1]:5800) before passing the URL to openInBrowser.

Useful? React with 👍 / 👎.

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.

3 participants