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:
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,
|
||||
|
||||
Reference in new issue
Block a user