Skip to content

Add exit helper to code mode scripts#14851

Merged
pakrym-oai merged 2 commits intomainfrom
pakrym/add-exit-function-to-code
Mar 16, 2026
Merged

Add exit helper to code mode scripts#14851
pakrym-oai merged 2 commits intomainfrom
pakrym/add-exit-function-to-code

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

  • Summary
    • expose exit through the code mode bridge and module so scripts can stop mid-flight
    • surface the helper in the description documentation
    • add a regression test ensuring exit() terminates execution cleanly
  • Testing
    • Not run (not requested)

Copy link
Copy Markdown
Contributor

@cconger cconger left a comment

Choose a reason for hiding this comment

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

Unsure if it already has access to close() as its running in a worker context. But fine if we want to have a consistent and named interface to manage this.

@pakrym-oai pakrym-oai enabled auto-merge (squash) March 16, 2026 21:56
@pakrym-oai pakrym-oai merged commit a3ba10b into main Mar 16, 2026
32 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/add-exit-function-to-code branch March 16, 2026 22:08
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants