feat: upgrade investigation and presentation runtime
This commit is contained in:
@@ -875,7 +875,7 @@ export const registerChatStreamRoute = (
|
||||
});
|
||||
};
|
||||
|
||||
const unregisterFrontendActionSink = parsed.data.capabilities.includes("frontend-action@1")
|
||||
const unregisterFrontendActionSink = parsed.data.capabilities.includes("frontend-action@2")
|
||||
? frontendActionCoordinator.registerSink(clientSessionId, (request) => publish("frontend_action", request as unknown as Record<string, unknown>))
|
||||
: undefined;
|
||||
let credentialFailure: Error | undefined;
|
||||
@@ -995,13 +995,12 @@ export const registerChatStreamRoute = (
|
||||
traceId: requestContext.traceId,
|
||||
projectId: requestContext.projectId,
|
||||
signal: abortController.signal,
|
||||
suppressLegacyFrontendActions: parsed.data.capabilities.includes("frontend-action@1"),
|
||||
suppressAnswerUi: sessionPurpose === "task_execution",
|
||||
beforePrompt: async () => { await inputTracker.restore(); await messaging?.flush(binding.sessionId); },
|
||||
onPromptDispatched: () => inputTracker.markReady(),
|
||||
onInboxEvent: (type, data) => inputTracker.observe(type, data),
|
||||
waitForUserInput: async () => !await inputTracker.canClose(),
|
||||
beforeRichAnswerClose: async () => {
|
||||
beforeAnswerClose: async () => {
|
||||
// A consumed input may still be awaiting its model step. Let the
|
||||
// native runner drain it instead of interrupting on an older answer.
|
||||
if (inputTracker.hasAdditionalInput) return false;
|
||||
@@ -1160,7 +1159,7 @@ export const registerChatStreamRoute = (
|
||||
title: sessionTitle,
|
||||
});
|
||||
await stopTaskHeartbeat();
|
||||
await persistQueue.catch((error) => {
|
||||
await persistQueue.catch((error) => {
|
||||
logger.warn({ err: error, sessionId: clientSessionId }, "failed to persist chat stream state");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user