Eric Traut and GitHub
56958f2512
Seed prompt history from resumed messages ( #24298 )
...
## Why
When the TUI resumes a thread, transcript replay renders prior user
messages but did not seed the composer history. That leaves the resumed
session with empty in-memory prompt history, so pressing Up can fall
through to persisted global history and surface a prompt from another
thread.
The expected behavior is that prompts from the resumed thread are
recalled first, with global history only as a fallback.
## What changed
- Record replayed user messages into the composer history during resume
replay.
- Preserve the existing persisted history format and avoid any startup
history scan.
- Add focused TUI coverage showing replayed prompts are recalled before
persisted global history.
## Validation
- Added `replayed_user_messages_seed_composer_history` in
`codex-rs/tui/src/chatwidget/tests/history_replay.rs`.
- `just test -p codex-tui replayed_user_messages_seed_composer_history`
passed.
2026-05-28 22:08:05 -07:00
..
2026-05-28 15:26:55 -07:00
2026-03-28 11:23:07 -06:00
2026-05-28 22:08:05 -07:00
2026-05-28 22:08:05 -07:00
2026-05-05 11:17:47 -07:00
2026-05-28 09:38:34 -07:00
2026-05-15 15:04:04 -07:00
2026-05-27 18:59:17 +00:00
2026-05-27 15:11:29 -07:00
2026-04-21 17:10:36 +00:00
2026-05-27 20:14:55 +00:00
2026-05-18 20:24:09 -03:00
2026-04-07 08:03:35 -07:00
2026-04-30 22:42:48 -07:00
2026-05-28 14:54:39 -07:00
2026-05-27 20:27:55 +00:00
2026-05-27 20:14:55 +00:00
2026-05-27 20:14:55 +00:00
2026-05-26 14:54:38 -03:00
2026-05-15 17:10:15 -07:00
2026-05-27 20:14:55 +00:00
2026-05-20 21:55:21 +00:00
2026-04-30 11:34:34 -07:00
2026-05-26 07:44:04 -07:00
2026-04-30 11:34:34 -07:00
2026-05-28 14:54:39 -07:00
2026-05-28 15:26:55 -07:00
2026-04-30 10:52:19 -07:00
2026-04-13 18:27:00 -07:00
2026-04-10 20:25:31 -07:00
2026-05-07 20:31:41 -07:00
2026-05-04 16:11:15 -03:00
2026-05-28 22:08:05 -07:00
2026-05-14 18:51:36 -07:00
2026-05-05 16:18:02 +00:00
2026-03-28 11:23:07 -06:00
2026-05-13 15:40:37 -07:00
2026-03-28 11:23:07 -06:00
2026-05-25 09:54:05 -07:00
2026-05-13 12:11:15 -03:00
2026-04-25 22:00:32 -03:00
2026-05-28 23:53:26 +00:00
2026-04-30 10:52:19 -07:00
2026-04-30 11:34:34 -07:00
2026-03-28 11:23:07 -06:00
2026-05-14 15:16:15 +02:00
2026-05-09 16:10:56 -03:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-05-28 16:53:59 -03:00
2026-05-11 21:08:40 -03:00
2026-05-18 11:28:53 -07:00
2026-05-09 21:17:30 +00:00
2026-05-01 09:39:48 -07:00
2026-05-27 20:14:55 +00:00
2026-05-13 15:33:27 +00:00
2026-05-27 18:59:17 +00:00
2026-05-27 18:59:17 +00:00
2026-05-27 20:14:55 +00:00
2026-03-28 11:23:07 -06:00
2026-04-13 18:27:00 -07:00
2026-05-14 17:11:36 -04:00
2026-05-18 11:32:02 -07:00
2026-05-27 20:27:55 +00:00
2026-05-27 15:11:29 -07:00
2026-05-27 16:18:24 -03:00
2026-05-27 20:14:55 +00:00
2026-05-28 10:30:15 -07:00
2026-04-29 17:22:41 -07:00
2026-04-25 22:00:32 -03:00
2026-05-01 09:07:56 -07:00
2026-05-26 20:59:47 -07:00
2026-04-25 17:09:29 -07:00
2026-05-25 09:53:39 -07:00
2026-05-27 20:14:55 +00:00
2026-05-15 17:10:15 -07:00
2026-04-25 22:00:32 -03:00
2026-05-28 14:54:39 -07:00
2026-03-28 11:23:07 -06:00
2026-05-20 15:57:50 -07:00
2026-05-22 17:19:51 +00:00
2026-05-04 11:46:03 -07:00
2026-05-20 11:05:14 -07:00
2026-03-28 11:23:07 -06:00
2026-04-20 20:46:55 -07:00
2026-05-20 15:49:35 +00:00
2026-05-14 18:51:36 -07:00
2026-05-25 09:44:21 -07:00
2026-05-27 18:59:17 +00:00
2026-05-27 16:18:24 -03:00
2026-05-10 20:42:11 +00:00
2026-05-27 20:14:55 +00:00
2026-05-18 09:04:02 -07:00
2026-05-18 09:04:02 -07:00
2026-04-17 08:39:37 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 11:34:34 -07:00
2026-05-26 20:59:47 -07:00
2026-05-26 20:59:47 -07:00
2026-05-08 07:56:13 -07:00
2026-04-20 00:37:40 +00:00
2026-04-25 22:00:32 -03:00
2026-05-27 20:14:55 +00:00
2026-03-28 11:23:07 -06:00
2026-05-27 16:45:10 +00:00
2026-05-27 20:14:55 +00:00
2026-04-25 17:09:29 -07:00
2026-04-25 17:09:29 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 11:34:34 -07:00
2026-04-25 22:00:32 -03:00
2026-05-05 17:09:25 -03:00
2026-05-13 14:19:05 -07:00