Skip to content

feat: load interface metadata from SKILL.json#9953

Merged
alexsong-oai merged 3 commits intomainfrom
alexsong/toml-2-json
Jan 27, 2026
Merged

feat: load interface metadata from SKILL.json#9953
alexsong-oai merged 3 commits intomainfrom
alexsong/toml-2-json

Conversation

@alexsong-oai
Copy link
Contributor

No description provided.

@alexsong-oai alexsong-oai added the oai PRs contributed by OpenAI employees label Jan 27, 2026
@alexsong-oai alexsong-oai marked this pull request as ready for review January 27, 2026 00:57
@alexsong-oai
Copy link
Contributor Author

@codex review

Copy link
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: 15500f7ea4

ℹ️ 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 405 to 408
let interface = match parsed.interface {
Some(interface) => interface,
None => return None,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

P2 Badge Keep TOML fallback when SKILL.json lacks interface

In load_skill_interface, if a SKILL.json file exists but omits the interface key, the code returns None immediately instead of continuing to the SKILL.toml fallback (parsed.interfaceNone => return None). This means a placeholder/empty SKILL.json (or a future extension file without interface) will silently suppress otherwise valid interface metadata in SKILL.toml, which is a regression from the previous behavior and contradicts the “fail open” goal. Consider continue here so the loader still tries TOML when JSON has no interface block.

Useful? React with 👍 / 👎.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is OK.

@alexsong-oai alexsong-oai enabled auto-merge (squash) January 27, 2026 01:27
@alexsong-oai alexsong-oai merged commit a641a64 into main Jan 27, 2026
32 checks passed
@alexsong-oai alexsong-oai deleted the alexsong/toml-2-json branch January 27, 2026 01:38
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants