mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Track conversation files for the TUI sidebar (#61920)
## What changed Build a per-conversation file inventory from message links, completed file changes, generated images, and previously opened documents. Deduplicate destinations while preserving source locations and prioritizing recent references. Scan older conversation items while the sidebar chooser is open without advancing transcript history. Cancel stale scans when the chooser closes or the connection changes, and refresh the inventory after reconnecting. ## Testing Add coverage for inventory ordering, remote paths, directory filtering, review and voice items across page boundaries, and reopening the chooser. Verify that older-file discovery leaves the transcript history cursor unchanged and ignores stale completions. GitOrigin-RevId: a80ea4f4a4e58da8dc142a099cfd048d69276836
This commit is contained in:
@@ -202,9 +202,13 @@ impl AppServerSession {
|
||||
}
|
||||
|
||||
pub(crate) fn has_older_history(&self, thread_id: ThreadId) -> bool {
|
||||
self.older_item_cursor(thread_id).is_some()
|
||||
}
|
||||
|
||||
pub(crate) fn older_item_cursor(&self, thread_id: ThreadId) -> Option<&str> {
|
||||
self.history_pagination
|
||||
.get(&thread_id)
|
||||
.is_some_and(|page| page.next_item_cursor.is_some())
|
||||
.and_then(|page| page.next_item_cursor.as_deref())
|
||||
}
|
||||
|
||||
pub(crate) fn begin_older_history_page(&mut self, thread_id: ThreadId) -> Option<String> {
|
||||
|
||||
Reference in New Issue
Block a user