Codex panicked: index outside of buffer

Resolved 💬 5 comments Opened Sep 4, 2025 by nikhil-pandey Closed Dec 23, 2025

What version of Codex is running?

codex-cli 0.29.0

Which model were you using?

gpt-5

What platform is your computer?

Darwin 25.0.0 arm64 arm

What steps can reproduce the bug?

Read .....toml, .....toml, ......toml
The application panicked (crashed).

Codex:

Message:  index outside of buffer: the area is Rect { x: 0, y: 0, width: 182, height: 5 } but index is (0, 5)
Location: /Users/runner/.cargo/git/checkouts/ratatui-caae81b9af813392/9b2ad12/src/buffer/buffer.rs:253

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
The application panicked (crashed).
Message:  index outside of buffer: the area is Rect { x: 0, y: 0, width: 182, height: 5 } but index is (0, 5)
Location: /Users/runner/.cargo/git/checkouts/ratatui-caae81b9af813392/9b2ad12/src/buffer/buffer.rs:253

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

TUI Logs:

2025-09-04T09:07:16.982172Z  INFO FunctionCall: shell({"command":["bash","-lc","sed -n '1,260p' src/........toml"]})
2025-09-04T09:07:21.527541Z  INFO FunctionCall: shell({"command":["bash","-lc","sed -n '1,260p' src/.....toml"]})
2025-09-04T09:07:24.053551Z  INFO FunctionCall: shell({"command":["bash","-lc","sed -n '1,260p' src.......toml"]})
2025-09-04T09:07:24.264032Z ERROR panic: panicked at /Users/runner/.cargo/git/checkouts/ratatui-caae81b9af813392/9b2ad12/src/buffer/buffer.rs:253:13:
index outside of buffer: the area is Rect { x: 0, y: 0, width: 182, height: 5 } but index is (0, 5)

What is the expected behavior?

Should not crash

What do you see instead?

Crashed

Additional information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗