Skip to content

[codex] Support Basic roots in WidgetTemplate.build#114

Merged
weedon-openai merged 1 commit intomainfrom
codex/basic-root-build-and-deprecate-build-basic
Feb 17, 2026
Merged

[codex] Support Basic roots in WidgetTemplate.build#114
weedon-openai merged 1 commit intomainfrom
codex/basic-root-build-and-deprecate-build-basic

Conversation

@weedon-openai
Copy link
Contributor

@weedon-openai weedon-openai commented Feb 17, 2026

Summary

This PR enables Basic roots in the standard widget build path and deprecates the transitional WidgetTemplate.build_basic helper.

User-visible effect

  • Developers can now call WidgetTemplate.build(...) for templates whose root is Basic
  • Developers can now use BasicRoot type widgets with WidgetItem.

Implementation

  • Add BasicRoot to StrictWidgetRoot.
  • Expand DynamicWidgetRoot.type to include "Basic".
  • Keep WidgetTemplate.build_basic(...) for compatibility, but mark it deprecated with guidance to use build(...).
  • Add tests covering:
    • build(...) returns a DynamicWidgetRoot with type == "Basic" for a basic-root template.
    • resulting widgets can be used in WidgetItem.
    • build_basic(...) emits DeprecationWarning and still produces the expected BasicRoot payload.

@weedon-openai weedon-openai marked this pull request as ready for review February 17, 2026 18:37
@weedon-openai weedon-openai added this pull request to the merge queue Feb 17, 2026
Merged via the queue into main with commit 828c0ed Feb 17, 2026
1 check passed
@weedon-openai weedon-openai deleted the codex/basic-root-build-and-deprecate-build-basic branch February 17, 2026 18:40
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