Skip to content

Fix user input continue - #1067

Open
MakinoharaShoko wants to merge 1 commit into
devfrom
fix-user-input-continue
Open

MakinoharaShoko wants to merge 1 commit into
devfrom
fix-user-input-continue

Conversation

@MakinoharaShoko

Copy link
Copy Markdown
Member

fix #1065

确认输入后先 unmountPerform,带 -continue 时会触发一次 goNextWhenOver,
随后又手动 continueSentence,导致推进两次。改为演出始终声明
goNextWhenOver,由卸载统一触发继续。
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T15:44:10.154718Z 1f3c1e9 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@MakinoharaShoko
MakinoharaShoko changed the base branch from main to dev October 17, 2026 15:41
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying webgal-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1f3c1e9
Status: ✅  Deploy successful!
Preview URL: https://5f382ec2.webgal-dev.pages.dev
Branch Preview URL: https://fix-user-input-continue.webgal-dev.pages.dev

View logs

@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: 1f3c1e90f8

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

blockingAuto: () => true,
blockingStateCalculation: () => true,
// 确认输入后总是继续,无论是否带 -continue
goNextWhenOver: true,

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 Defer continuation until the unmount loop has finished

When a normal getUserInput is immediately followed by another getUserInput, confirming the first now skips the second prompt. unmountPerform('userInput') synchronously invokes goNextWhenOver, so the next prompt is started and appended with the same perform name while the original unmountPerform loop is still running; that loop then encounters the newly added perform, unmounts it, and advances again without collecting its value. Continue only after unmountPerform has returned, or ensure the controller processes only the performs present when unmounting began.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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.

getUserInput 带 -continue 会错误的继续跳过下一行

1 participant