Skip to content

Commit dc3204e

Browse files
willglasCopilot
andcommitted
fix(nodejs): Map suppressResumeEvent to disableResume on the wire
The Node.js SDK's resumeSession() sends suppressResumeEvent as-is on the JSON-RPC wire, but the server recognizes the field as disableResume. This aligns with the Rust SDK which already maps suppress_resume_event to disableResume at the serialization boundary. No public API changes - ResumeSessionConfig.suppressResumeEvent remains the user-facing field name. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a5581e2 commit dc3204e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodejs/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ export class CopilotClient {
13381338
instructionDirectories: config.instructionDirectories,
13391339
disabledSkills: config.disabledSkills,
13401340
infiniteSessions: config.infiniteSessions,
1341-
suppressResumeEvent: config.suppressResumeEvent,
1341+
disableResume: config.suppressResumeEvent,
13421342
continuePendingWork: config.continuePendingWork,
13431343
gitHubToken: config.gitHubToken,
13441344
remoteSession: config.remoteSession,

0 commit comments

Comments
 (0)