Fix spurious runtime warnings for removed Claude SDK system message subtypes

Add no-op cases for 'init', 'hook_started', 'hook_progress', 'hook_response',
and 'files_persisted' subtypes in handleSystemMessage so they don't fall through
to the default branch which emits runtime warnings.
This commit is contained in:
Cursor Agent committed 2026-03-24 20:38:06 +00:00
1 parent 2ab0eb08a3
commit e4e68e63de
1 file changed
+6
@@ -2059,6 +2059,12 @@ function makeClaudeAdapter(options?: ClaudeAdapterLiveOptions) {
},
});
return;
case "init":
case "hook_started":
case "hook_progress":
case "hook_response":
case "files_persisted":
return;
default:
yield* emitRuntimeWarning(
context,