发布

  • [OPIK-5964] [FE] fix: highlight added/removed prompts in agent config diff (#6497)

    frostbyte_neo 发布于 2026-04-27 13:22:48 +00:00

    • Prompts addition/deletion in config should be highlighed

    • fix(agent-config): treat empty prompt template as present in diff guards

    Use template !== undefined instead of !!template for hasBase/hasDiff,
    so an intentionally empty inline template renders the colored
    add/remove cell instead of the neutral empty placeholder. Aligns with the
    existing === undefined checks used elsewhere in PromptDiffPair.

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

    下载附件