fix(ui): restore ChatGPT cards after revisit - #210
Closed
UnlastingR wants to merge 4 commits into
Closed
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ChatGPT can remount a historical DevSpace widget without replaying the original MCP
tool-resultevent. In that path the iframe starts with no card and stays onWaiting for a tool result., which matches the historical-widget behavior reported in #74 and can leave many dead-looking widgets behind in long conversations.This persists the complete DevSpace card snapshot in ChatGPT widget state, restores it during widget boot, and falls back to ChatGPT's historical
toolOutput/toolResponseMetadataglobals when no persisted snapshot is available. It also listens foropenai:set_globalsin case those globals arrive after boot. The widget resource URI is versioned and the ChatGPTopenai/outputTemplatealias is advertised so existing template caching does not keep serving the older bootstrap behavior.The regression coverage checks widget-state round trips, malformed-state rejection, historical-global rehydration, precedence of persisted state, and the tool metadata used by ChatGPT. The portable MCP Apps path remains unchanged when the ChatGPT-specific bridge is unavailable.
Summary by CodeRabbit
New Features
Bug Fixes