mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
be835b013b
The Apr 21 "refactor(runtime): Support durable compaction of threads" commit re-added a2ui_dynamic_schema.py and a2ui_fixed_schema.py to the langgraph-python-threads example in a stripped form. Most of the simplification was cleanup, but two docstrings carried load-bearing instructions for the sub-LLM and those got lost: - render_a2ui's Args block said the root component must have id "root". Without it, the LLM emits a valid flat component list with no entry point; the A2UI renderer (A2uiSurface.tsx:152) hard-codes id="root" and falls through to a shimmer placeholder — the "Sales Dashboard (A2UI Dynamic)" demo renders as an empty white square. - search_flights' docstring spelled out airline logo URLs, date format, and status-icon colors, producing consistently-styled flight cards. This restores both files verbatim from the non-threads example, which is the known-good template. All differences in the agent/src dir are now removed. Debug prints and headers come back with the restore; happy to trim them in a follow-up if the intent was to keep the -threads version terser.