Improve logging

This commit is contained in:
Peter Steinberger 2025-07-28 00:17:50 +02:00
parent 0b2f675e78
commit c980efaafd
2 changed files with 10 additions and 1 deletions

View file

@ -181,6 +181,14 @@ export class TerminalLifecycleManager {
// Update terminal dimensions for display
const { cols, rows, isMobile, isHeightOnlyChange, source } = customEvent.detail;
// Debug logging for terminal resize events
logger.debug('Terminal resize event:', {
cols,
rows,
source,
sessionId: this.session?.id,
});
// Notify the session view to update its state
if (this.stateCallbacks) {
this.stateCallbacks.updateTerminalDimensions(cols, rows);

View file

@ -1196,7 +1196,8 @@ export function createSessionRoutes(config: SessionRoutesConfig): Router {
return res.status(400).json({ error: 'Cols and rows must be between 1 and 1000' });
}
logger.log(chalk.blue(`resizing session ${sessionId} to ${cols}x${rows}`));
// Log resize requests at debug level
logger.debug(`Resizing session ${sessionId} to ${cols}x${rows}`);
try {
// If in HQ mode, check if this is a remote session