Skip to content

Ignore nonpositive console size overrides - #159

Merged
nobu merged 3 commits into
ruby:masterfrom
OskarEichler:codex/console-size-positive
Sep 4, 2026
Merged

Ignore nonpositive console size overrides#159
nobu merged 3 commits into
ruby:masterfrom
OskarEichler:codex/console-size-positive

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

Summary

Accept LINES and COLUMNS fallbacks only when they are positive integers.

Reproduction

Focused external models set each variable to negative text. Current code accepts a negative nonzero dimension; the candidate falls back to 25x80.

Verification

  • external positive/zero/negative size model
  • release/cumulative candidate: 36 tests / 143 assertions
  • current upstream: 35 tests / 144 assertions
  • syntax, package builds and Rails 8.1.3.1 loading

Compatibility

Positive overrides remain unchanged; invalid nonpositive dimensions now use the existing defaults. Prepared with AI-assisted source review; no repository tests were changed.

@nobu
nobu force-pushed the codex/console-size-positive branch 2 times, most recently from 8791bed to 88b16a8 Compare September 4, 2026 01:44
@nobu
nobu force-pushed the codex/console-size-positive branch from 88b16a8 to e94292b Compare September 4, 2026 02:15
@nobu
nobu merged commit 6aba1f8 into ruby:master Sep 4, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants