From 46e2cb6e2fcffe41f32a4bf991bbbaa046fad1f7 Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Sat, 14 Mar 2026 02:01:33 -0400 Subject: [PATCH] debug: add SFTP message logging to diagnose empty directory listing Co-Authored-By: Claude Opus 4.6 --- backend/src/terminal/sftp.gateway.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/terminal/sftp.gateway.ts b/backend/src/terminal/sftp.gateway.ts index c63957c..52bac06 100644 --- a/backend/src/terminal/sftp.gateway.ts +++ b/backend/src/terminal/sftp.gateway.ts @@ -24,8 +24,10 @@ export class SftpGateway { client.on('message', async (raw: Buffer) => { try { const msg = JSON.parse(raw.toString()); + this.logger.log(`[SFTP] Message: ${msg.type} sessionId=${msg.sessionId} path=${msg.path || ''}`); await this.handleMessage(client, msg); } catch (err: any) { + this.logger.error(`[SFTP] Error: ${err.message}`); this.send(client, { type: 'error', message: err.message }); } });