fix(frontend): preserve compact scope and detail badge

This commit is contained in:
elky
2026-07-19 16:42:32 +08:00
parent ce226a3010
commit d562c594c3
4 changed files with 99 additions and 1 deletions
@@ -758,7 +758,9 @@ function handleRequestScopeChange(value: string) {
}
function normalizeUnavailableSessionCompactionScope() {
if (props.endpoints === undefined) return
// An empty list is also used while endpoints are loading or after loading fails,
// so it cannot prove that the existing scope is unsupported.
if (!props.endpoints || props.endpoints.length === 0) return
if (
requestScopeValue.value === COMPACT_REQUEST_SCOPE_VALUE
&& !sessionCompactionScopeAvailable.value