-
[OPIK-3426] [FE] Fix prompt version selection after playground save (#4671)
发布于
2026-01-12 08:52:01 +00:00 Replace useEffect-based version selection with computed effectiveVersionId using useMemo. This ensures the latest version is always selected by default when navigating back to the prompt page after saving a new version in the playground, while preserving explicit user selections when valid.
The fix eliminates race conditions and timing issues by using declarative computed state instead of side effects.
Co-authored-by: GitHub Actions Bot github-actions@comet.com
下载附件