Skip to content

In code mode, rename tools global to functions#16122

Open
andmis wants to merge 4 commits intomainfrom
andrey/rename-tools-global-to-functions
Open

In code mode, rename tools global to functions#16122
andmis wants to merge 4 commits intomainfrom
andrey/rename-tools-global-to-functions

Conversation

@andmis
Copy link
Copy Markdown
Collaborator

@andmis andmis commented Mar 28, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@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: 8df0e45f9b

ℹ️ 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 +32 to +33
set_global(scope, global, "functions", tools.into())?;
set_global(scope, global, "ALL_FUNCTIONS", all_tools)?;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Keep legacy tools globals available

Expose tools/ALL_TOOLS (or update all producers/consumers atomically) before renaming these globals. install_globals now only sets functions and ALL_FUNCTIONS, but code-mode descriptions and callsites still reference tools and ALL_TOOLS (e.g. code-mode/src/description.rs and core code-mode tests). This will cause ReferenceError in existing scripts generated from the current description.

Useful? React with 👍 / 👎.

}

fn tool_names(body: &Value) -> Vec<String> {
body.get("tools")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this refers to response api field and should stay tools

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.

2 participants