resizing window after #1672 leaves traces in history of approval requests

Resolved 💬 4 comments Opened Jul 26, 2025 by jackmhny Closed Jul 29, 2025

What version of Codex is running?

0.0.0 (c66c99c5b544a3334a3ee84c3cf28187438e7715)

Which model were you using?

irrelevant

What platform is your computer?

Linux 6.16.0-rc7-1-mainline x86_64 unknown

What steps can reproduce the bug?

  1. ask some stuff
  2. start resizing the window a bunch (specifically the width)

What is the expected behavior?

the history only should contain actual chat history

What do you see instead?

Let's make sure to count the lines in total
before moving forward.

command running...
$ bash -lc 'wc -l zsh/.zshrc'

╭Review──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│Shell Command │
│ ▶ Yes (y) │
│ Yes, always approve this exact command forthissession (a)│
│ Edit or give feedback (e) │
│ No, and keep going (n) │
command running...
$ bash -lc "nl -ba zsh/.zshrc | sed -n '1,15p'"

command running...
$ bash -lc "nl -ba zsh/.zshrc | sed -n '15,60p'"

command running...
$ bash -lc "nl -ba zsh/.zshrc | tail -n +140 | sed -n '1,20p'"

╭─────────────────────────────────────────────────────────────────────╭────────────────────────────────────────────────────────────────────╮
│ Working [...] waiting for logs… │
│ │
│ │
╭─────────────────────────────────────────────────────────────╮
│ Working [...] waiting for logs… │
│╭─────────────────────────────────────────────────────╮
│ Working [...] waiting for logs…╭Review────────────────────────────────────────╮
│Shell Command │
│ ▶ Yes (y) │
│ Yes, always approve this exact command for│
╭Review─────────────────────────────────╮
│Shell Command │
│ ▶ Yes (y) │
│ Yes, always approve this exact comm│
╭Review─────────────────────────╮
│Shell Command │
│ ▶ Yes (y) │
│ Yes, always approve this ex│
command running...
$ bash -lc "nl -ba zsh/.zshrc | sed -n '160,170p'"

╭Review───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│Shell Command │
│ ▶ Yes (y) │
│ Yes, always approve this exact command for this session (a) │

Additional information

_No response_

View original on GitHub ↗

4 Comments

jackmhny · 1 year ago

caused by #1672

jackmhny · 1 year ago

still affects HEAD 8828f6f, now for messagebox too

jackmhny · 1 year ago

i misclicked the close issue

user
hi how are you

thinking
Crafting a friendly response

The user greeted me with "hi how are you" twice, which feels a bit redundant. There's no clear request, just a friendly hello. So, I’m thinking the best approach is to respond warmly as if I'm a team member supporting them. I won’t modify any code since there’s no specific request, just a friendly greeting. I’ll say something like, “Hello! I’m good, how can I help you today?” So, let’s keep it casual and friendly!

codex
Hello again! I’m doing well—thanks for asking. What can I help you with today?

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ send a message — 98% context left │
│ │
│ │
│ │
│ │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Enter to send | Ctrl+D to quit | Ctrl+J for newline╯

jackmhny · 1 year ago

@easong-openai sorry to ping, but i noticed you authored the PR and probably have rights to reopen this issue. thank you