debug: add stderr callback to SDK engine for error visibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d40f66ce14
commit
db1d0620f2
|
|
@ -109,6 +109,9 @@ export class ClaudeAgentSdkEngine implements AgentEnginePort {
|
|||
abortController,
|
||||
allowDangerouslySkipPermissions: true,
|
||||
permissionMode: 'bypassPermissions',
|
||||
stderr: (data: string) => {
|
||||
this.logger.debug(`SDK stderr (${params.sessionId}): ${data.trim()}`);
|
||||
},
|
||||
canUseTool: async (toolName, toolInput, { signal }) => {
|
||||
const riskLevel = this.classifyToolRisk(toolName, toolInput);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue