fix(server): add debug logging for Claude query pump raw messages

This commit is contained in:
Mohamed Boudra
2026-02-26 22:14:25 +07:00
parent 6648cb8917
commit 3a6a8cfa38
@@ -2766,6 +2766,10 @@ class ClaudeAgentSession implements AgentSession {
let next: IteratorResult<SDKMessage, void>; let next: IteratorResult<SDKMessage, void>;
try { try {
next = await q.next(); next = await q.next();
this.logger.info(
{ claudeSessionId: this.claudeSessionId, next },
"Claude query pump raw next()"
);
} catch (error) { } catch (error) {
this.logger.warn({ err: error }, "Claude query pump next() failed"); this.logger.warn({ err: error }, "Claude query pump next() failed");
for (const run of this.runTracker.listActiveRuns()) { for (const run of this.runTracker.listActiveRuns()) {