You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: audit Java code samples against SDK implementation
- Fix PreToolUseHookOutput: record cannot use setters, use deny() factory
- Fix SessionStartHookOutput: record cannot use setters, use constructor
- Fix session.getId() → session.getSessionId()
- Fix input.getPrompt() → input.prompt() (record accessor)
- Fix response.data() → response.getData() (class accessor)
- Fix setOnListModels: wrap return in CompletableFuture.completedFuture()
- Fix custom-agents event handler: use instanceof pattern matching
(AbstractSessionEvent has no getData() method)
- Fix streaming-events: remove event.getData() from generic handler
- Fix SubagentCompleted/Failed: use agentName() not agentDisplayName()
- Fix CopilotClientOptions import: class is in json package, not sdk
- Fix hook type signatures: use PreToolUseHandler etc. instead of BiFunction
0 commit comments