Skip to content

fix(scripts): make the #238 repro's run command and version line work on Neovim 0.8 - #371

Merged
ThomasK33 merged 2 commits into
mainfrom
docs/repro-238-run-command
Oct 31, 2026
Merged

ThomasK33 merged 2 commits into
mainfrom
docs/repro-238-run-command

Conversation

@ThomasK33

@ThomasK33 ThomasK33 commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Why

The operator goal is to clear the open follow-up issues in this repository (#362 now) with small reviewed PRs. This PR is a follow-up to #369, which made CI run the #238 reject-on-quit check on Neovim v0.8.0.

The script still had three problems after #369:

  1. The header of scripts/repro_issue_238.lua shows nvim --headless -u NONE -l scripts/repro_issue_238.lua. Neovim 0.8 has no -l, so that command hangs until something kills it.
  2. scripts/README.md lists exits 0 and 1 only. The command CI runs also exits 2 when the script raises an error before its verdict.
  3. On 0.8, vim.version() is a plain table with no __tostring, so the script prints Neovim: table: 0x....

What changed

  • scripts/repro_issue_238.lua: the header now shows the CI command, nvim --headless -u NONE -c "luafile scripts/repro_issue_238.lua" -c "cquit 2", and says what exit 2 means. The version line now prints major.minor.patch from the vim.version() fields.
  • scripts/README.md: the repro_issue_238.lua entry names the CI command and lists exit 2. The Issue reproductions overview says -l needs Neovim 0.9 and points to that entry.

Scope

One script and two README lines. No plugin code, no tests and no workflow change. The integration runner's timeout handling is unchanged: #331 kept exits 124 and 143 non-failing on purpose.

Blast Radius

None for users. The script runs only in CI and by hand. The CI command and its exit codes do not change. On 0.12.3, only the version line differs: it prints 0.12.3 where it printed 0.12.3+v0.12.3.

Verification

I ran the script on the Neovim 0.8.0 release tarball and on 0.12.3, from the repository root, before and after the change.

Neovim Command Before After
0.8.0 CI command Neovim: table: 0x776b8d6bc168, FIXED, exit 0 Neovim: 0.8.0, FIXED, exit 0
0.8.0 old header command (-l), under timeout 20 killed, exit 124 header no longer shows it
0.12.3 CI command Neovim: 0.12.3+v0.12.3, FIXED, exit 0 Neovim: 0.12.3, FIXED, exit 0

On both versions, the before and after outputs match line for line except for the Neovim: line. On 0.8.0, a temp path in Neovim's own file message also differs from run to run. A copy of the script with an error() injected before the scenarios exits 2 on both versions.

mise run check reports 0 warnings, mise run test reports 802 successes and 0 failures, stylua --check and prettier --check pass on the changed files, and treefmt --ci reports 0 changes.

Part of #362.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: xhigh

… on Neovim 0.8

The script header documented `nvim --headless -u NONE -l ...`, which hangs
on Neovim 0.8 because `-l` needs 0.9. It now shows the command CI runs.
scripts/README.md now lists exit 2, which that command returns when the
script raises before its verdict.

On 0.8, vim.version() has no __tostring, so the script printed
`Neovim: table: 0x...`. It now prints major.minor.patch on every version.

_Generated with [`xum`](https://github.com/coder/xum) • Model: `anthropic:claude-opus-5-5` • Thinking: `xhigh`_
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T23:46:55.160313Z 5aec1c2 Manual request
🔒 Security Review ✅ Completed 2026-10-31T23:47:14.615662Z 5aec1c2 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3521e853d4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/README.md Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 3521e853d4

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

The Issue reproductions overview said every Lua repro runs with
`nvim -l`, which contradicts the `repro_issue_238.lua` entry. The overview
now says `-l` needs Neovim 0.9 and points to that entry's `:luafile`
command. Codex round 1 finding on #371.

_Generated with [`xum`](https://github.com/coder/xum) • Model: `anthropic:claude-opus-5-5` • Thinking: `xhigh`_
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 5aec1c264b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 5aec1c264b

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ThomasK33
ThomasK33 added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 879828a Oct 31, 2026
6 checks passed
@ThomasK33
ThomasK33 deleted the docs/repro-238-run-command branch October 31, 2026 23:50
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.

1 participant