Skip to content

Preserve yield state across caught callback errors - #107

Open
wolfosbournesl wants to merge 1 commit into
secondlife:mainfrom
wolfosbournesl:fix/yieldable-callback-pcall-104
Open

wolfosbournesl wants to merge 1 commit into
secondlife:mainfrom
wolfosbournesl:fix/yieldable-callback-pcall-104

Conversation

@wolfosbournesl

Copy link
Copy Markdown
Contributor

Summary

Preserve resumable state when a yieldable callback invokes script code that catches an error with pcall, so the caller can resume correctly.

Closes #104.

This change is based on the patch proposed by @JohnLegionH in the issue, with credit to the original author.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T16:53:53.665527Z 5a7fca7 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.

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.

A yieldable function that calls script code loses its state when the callee catches an error with pcall

1 participant