Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,14 @@ export class App extends ProtocolWithEvents<
return await this.request(
{ method: "tools/call", params },
CallToolResultSchema,
options,
{
...options,
// Hosts may interpose long-running steps (e.g. lazy OAuth) before the
// tool result arrives. Opting in here lets a host heartbeat keep the
// request alive past the 60s default; callers can still override.
onprogress: options?.onprogress ?? (() => {}),
resetTimeoutOnProgress: options?.resetTimeoutOnProgress ?? true,
},
);
}

Expand Down