Skip to content

Commit 3061350

Browse files
Fix NullTaskManager task param detection
isTaskAugmentedRequestParams returns true for any valid params since the task field is optional in the schema. Check request.params.task presence to correctly detect task-augmented requests.
1 parent 2a6e9ce commit 3061350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/shared/taskManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ export class NullTaskManager extends TaskManager {
870870
}
871871

872872
override processInboundRequest(request: JSONRPCRequest, ctx: InboundContext): InboundResult {
873-
const hasTaskCreationParams = isTaskAugmentedRequestParams(request.params);
873+
const hasTaskCreationParams = isTaskAugmentedRequestParams(request.params) && !!request.params.task;
874874
return {
875875
taskContext: undefined,
876876
sendNotification: (notification: Notification) => ctx.sendNotification(notification),

0 commit comments

Comments
 (0)