Skip to content

Conversation

nornagon-openai
Copy link
Collaborator

@nornagon-openai nornagon-openai commented Aug 15, 2025

This PR avoids inserting duplicate consecutive messages into the Chat Composer's local history.

- Avoid recording a local submission if it matches the previous entry
- Add unit test to cover duplicate-skip behavior

Note: no changes to persistent history; only local history is deduped.
@easong-openai
Copy link
Collaborator

Seems fine to me, but was there a specific bug you were seeing?

@nornagon-openai
Copy link
Collaborator Author

yeah, maybe this is only something i see when testing codex itself but pressing up+enter a bunch of times results in having duplicate history entries, so next time you want to find something in your history you have to up-up-up-up-up past all the duplicates, but nothing changes in the textarea (since they're all the same text) so it kind of looks like history isn't working.

@nornagon-openai nornagon-openai merged commit 7c26c8e into main Aug 15, 2025
15 checks passed
@nornagon-openai nornagon-openai deleted the feat/tui-local-history-dedupe branch August 15, 2025 17:55
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants