Skip to content

fix: retain widget text updates without component IDs - #132

Open
Shubham-Padkonde wants to merge 1 commit into
openai:mainfrom
Shubham-Padkonde:fix/widget-text-without-id
Open

Shubham-Padkonde wants to merge 1 commit into
openai:mainfrom
Shubham-Padkonde:fix/widget-text-without-id

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Appending text to a Text or Markdown component without an ID produces no widget update: the diff treats it as streamable, but delta collection requires an ID and silently drops the change.

Require an ID before taking the streaming-text path, so unidentified components trigger the existing root replacement behavior. Add regressions for typed and dynamic Text/Markdown components, including empty IDs. Identified text continues to use streaming deltas.

Validation: the initial two regression tests fail before the fix. All 136 tests pass afterward; the full Ruff and Pyright checks pass.

This branch has not been deployed

No deployments
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.

1 participant