Skip to content

Commit 6b86ee0

Browse files
committed
fix: swap rows/cols in AdapterV1.ResizeSession to match PluginClient
AdapterV1 has (cols, rows) parameter order but PluginClient expects (rows, cols). Passing them straight through caused the remote terminal to receive swapped dimensions (e.g. 236 rows × 36 cols instead of 36 rows × 236 cols), corrupting terminal output.
1 parent 54ae0ce commit 6b86ee0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/pkg/plugin/exec/adapter_v1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (a *AdapterV1) CloseSession(ctx *types.PluginContext, sessionID string) err
5050
}
5151

5252
func (a *AdapterV1) ResizeSession(ctx *types.PluginContext, sessionID string, cols, rows int32) error {
53-
return a.inner.ResizeSession(ctx, sessionID, cols, rows)
53+
return a.inner.ResizeSession(ctx, sessionID, rows, cols)
5454
}
5555

5656
func (a *AdapterV1) Stream(ctx context.Context, in chan exec.StreamInput) (chan exec.StreamOutput, error) {

0 commit comments

Comments
 (0)