mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-11-07 18:36:00 -10:00
fix(serve): guard missing search sessions
This commit is contained in:
1 parent
8f5130f58d
commit
6a69c0b5bb
1 file changed
+1
-1
@@ -1588,7 +1588,7 @@ export async function searchWorkspaceSessionsForResponse(
|
||||
for (const hit of hits) {
|
||||
readOptions.signal?.throwIfAborted();
|
||||
const item = await sessionService.getSessionListItem(hit.sessionId);
|
||||
if (item?.sourceType !== AGENT_HOST_SESSION_SOURCE_TYPE)
|
||||
if (item && item.sourceType !== AGENT_HOST_SESSION_SOURCE_TYPE)
|
||||
bySessionId.set(
|
||||
hit.sessionId,
|
||||
applyOrganization(
|
||||
|
||||
Reference in new issue
Block a user