Skip to content

feat(core): update special case for planning prompt#1904

Open
yuyutaotao wants to merge 2 commits intomainfrom
feat/special-case-for-planning
Open

feat(core): update special case for planning prompt#1904
yuyutaotao wants to merge 2 commits intomainfrom
feat/special-case-for-planning

Conversation

@yuyutaotao
Copy link
Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for midscene ready!

Name Link
🔨 Latest commit 2db4028
🔍 Latest deploy log https://app.netlify.com/projects/midscene/deploys/6980052811d4f30008a958db
😎 Deploy Preview https://deploy-preview-1904--midscene.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Reviewed commit: 2db4028e6b

ℹ️ 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 on lines +348 to +350
**Special case - Conditional instructions:**
- If the user's instruction is conditional (e.g., "if ... then ...", "if there is a ... click ...", "when ... do ..."), and the condition is NOT satisfied (e.g., the element doesn't exist), this is NOT an error. Mark the goal as accomplished (success="true") and explain that the condition was not met so no action was taken.
- Example: "If there is a cookie consent prompt, click Accept" - if no cookie prompt exists, return <complete-goal success="true">No cookie consent prompt found on the page, no action needed</complete-goal>

Choose a reason for hiding this comment

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

P2 Badge Avoid early success on mixed conditional instructions

This rule unconditionally treats any conditional instruction as a full-goal completion when the condition is unmet. That breaks cases where the user mixes a conditional with additional required steps (e.g., “If there is a cookie prompt, click Accept, then sign in”). If the cookie prompt is absent, this guidance tells the model to emit <complete-goal success="true"> and stop, so the sign-in never happens even though it’s still required. This can lead to false successes whenever the instruction contains a conditional clause but isn’t solely conditional.

Useful? React with 👍 / 👎.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 2, 2026

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2db4028
Status: ✅  Deploy successful!
Preview URL: https://34f11d2e.midscene.pages.dev
Branch Preview URL: https://feat-special-case-for-planni.midscene.pages.dev

View logs

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant