Skip to content

Commit 147f55b

Browse files
committed
chore: swap conditions for efficiency, lol
1 parent cd38bea commit 147f55b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func runServer(ctx context.Context, logger *slog.Logger, argsToPass []string) er
7878
}
7979
if termHeight < 10 {
8080
return xerrors.Errorf("term height must be at least 10")
81-
} else if termHeight > 930 && agentType == AgentTypeCodex {
81+
} else if agentType == AgentTypeCodex && termHeight > 930 {
8282
logger.Warn(fmt.Sprintf("Term height is set to %d which may cause issues with Codex. Setting it to 930 instead.", termHeight))
8383
termHeight = 930 // codex has a bug where the TUI distorts the screen if the height is too large, see: https://github.com/openai/codex/issues/1608
8484
}

0 commit comments

Comments
 (0)