Fix gRPC schema refresh not invalidating cache

The skip_cache flag in services() called reflect(), but reflect() had its
own cache check that returned early. Simplified by removing skip_cache and
always invalidating the pool in cmd_grpc_reflect, since that command is
only called when fresh schema is needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-01-14 08:20:03 -08:00
parent b759003c83
commit 3eb29ff2fe
3 changed files with 10 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ export function useGrpc(
queryFn: () => {
const environmentId = jotaiStore.get(activeEnvironmentIdAtom);
return minPromiseMillis<ReflectResponseService[]>(
invokeCmd('cmd_grpc_reflect', { requestId, protoFiles, environmentId, skipCache: true }),
invokeCmd('cmd_grpc_reflect', { requestId, protoFiles, environmentId }),
300,
);
},