codex - 💡(How to fix) Fix "Inappropriate ioctl" output shown during thinking sometimes when using git [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#22504Fetched 2026-05-14 03:34:59
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

Code Example

Ran git status --short
  └ stty: 'standard input': Inappropriate ioctl for device
    Failed to create stream fd: Operation not permitted
    Failed to create stream fd: Operation not permitted
    Failed to create stream fd: Operation not permitted

[...]

Ran git log --all [...] --pretty=format:'%h%x09%ad%x09%s'
 └ stty: 'standard input': Inappropriate ioctl for device
   Failed to create stream fd: Operation not permitted
+4 lines (ctrl + t to view transcript)
   0123456789ab    2026-04-28    commit title b
   9876543210ba    2026-04-27    commit title a
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

v0.130.0

What subscription do you have?

Enterprise

Which model were you using?

gpt-5.5

What platform is your computer?

Debian testing

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

Basically during thinking:


• Ran git status --short
  └ stty: 'standard input': Inappropriate ioctl for device
    Failed to create stream fd: Operation not permitted
    Failed to create stream fd: Operation not permitted
    Failed to create stream fd: Operation not permitted

[...]

• Ran git log --all [...] --pretty=format:'%h%x09%ad%x09%s'
 └ stty: 'standard input': Inappropriate ioctl for device
   Failed to create stream fd: Operation not permitted
   … +4 lines (ctrl + t to view transcript)
   0123456789ab    2026-04-28    commit title b
   9876543210ba    2026-04-27    commit title a

The command actually succeeds, and codex parses the output it seems.

What steps can reproduce the bug?

Something which triggers thinking which leads to codex running those commands.

What is the expected behavior?

No errors like that shown.

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING