allow plan context when optional scope view unavailable

This commit is contained in:
devmrko
2026-07-27 14:54:10 +09:00
parent af311f60f8
commit 5dc9572210
2 changed files with 6 additions and 2 deletions

View File

@@ -141,8 +141,8 @@ public class SelectAiService {
if (requestedKey.isEmpty()) {
return new ResolvedExecutionScope(originalPrompt, null, null);
}
if (gameScopeService == null) {
throw new AppException("게임 범위 검증 서비스를 사용할 수 없습니다.");
if (gameScopeService == null || !gameScopeService.configured()) {
return new ResolvedExecutionScope(originalPrompt, requestedKey, null);
}
GameScopeService.GameScope scope = gameScopeService.resolve(bearerToken, originalPrompt).scopes().stream()
.filter(item -> requestedKey.equals(item.gameKey()))