发布

  • fix(showcase): LGT remaining delta — 16 test fixes + component extraction + cleanup (#4906)

    frostbyte_neo 发布于 2026-05-19 04:02:44 +00:00

    Summary

    Closes the LGT-vs-LGP delta from PR #4879. Fixes 16 of 17 LGT-only test
    failures, extracts inlined components to match LGP's factored pattern,
    removes orphan demos, and ports infrastructure.

    Changes

    Test fixes (16 of 17 LGT-only failures)

    • headless-complete: normalizeResponse() for
      additional_kwargs.tool_calls + missing get_revenue_chart tool
    • readonly-state: Removed aimock systemMessage: "Atai" gate
      (gpt-5.4 sends role:developer)
    • reasoning-custom: Created missing demo page + wired route to
      existing reasoning graph
    • reasoning-default: Renamed from reasoning-default-render + added
      suggestions.ts
    • declarative-gen-ui: Fixed A2UI tool name (render_a2ui
      _design_a2ui_surface) + state-aware ToolNode wrapper
    • beautiful-chat: A2UI v0.9 operation format + ExampleCanvas agentId
    • manage_todos Command + copilotkitEmitState

    Component extraction (inlining → LGP pattern)

    • hitl: 7 inlined components extracted to separate files
      (step-selector, steps-feedback, suggestions, 4 shadcn components)
    • declarative-hashbrown: All files aligned to LGP
    • declarative-json-render: All files aligned to LGP
    • shared-state-read: Extracted recipe-card.tsx + types.ts from
      460-line page.tsx
    • reasoning-default: Extracted suggestions.ts
    • beautiful-chat: Extracted home-page.tsx

    Cleanup

    • Removed agentic-chat-reasoning (deprecated, untested, covered by
      reasoning-custom)
    • Removed shared-state-write (unimplemented stub, superseded by
      shared-state-read-write)
    • Ported layout.tsx from LGP (per-demo title metadata)

    Variance after this PR

    • Frontend files: 240 identical (96%), 10 justified diffs, 0 functional
      gaps
    • Tests: 37 identical (100%)
    • API routes: 15 identical (100%)

    1 remaining LGT-only failure

    • reasoning-default "Show reasoning pill" — fixture doesn't produce
      reasoning tokens for LGT pipeline

    Test plan

    • Full LGP suite on production-parity local cluster
    • Full LGT suite on production-parity local cluster
    • CI checks
    下载附件