Skip to content

Conversation

@pap-openai
Copy link
Contributor

@pap-openai pap-openai commented Feb 1, 2026

  • shows names of threads in the ResumePicker used by /resume and codex resume if set, default to preview (previous behaviour) if none
  • adds a find_thread_names_by_ids that maps names to IDs in codex-rs/core/src/rollout/session_index.rs. It reads sequentially in normal (instead of reverse order in codex resume <name>) the index mapping file. This function is called from a list of session (default page is 25, pages loaded depends of height of terminal), for which most of them will always have at least one session unnamed and require the whole file to be read therefore. Could be better and sqlite integration will make this better
  • those reads won't be needed when leveraging sqlite

Opened questions:

  • We could rename the TUI "Conversation" column to "Name" or "Thread" that would feel more accurate. Could be a fast-follow if we implement auto-naming as it'll always be a name instead?

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d34a62020d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +105 to +107
let name = entry.thread_name.trim();
if !name.is_empty() && thread_ids.contains(&entry.id) {
names.insert(entry.id, name.to_string());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve empty thread names when batch lookup

The new batch lookup drops entries whose latest thread_name is empty (if !name.is_empty()), so if a user clears a thread name (empty string is a valid value in SessionIndexEntry), this function will keep returning the last non-empty name from earlier lines. In the session picker that means a cleared name keeps showing the stale title instead of falling back to the first user message, which differs from find_thread_name_by_id (it returns the latest entry even if empty). This only happens when a thread name is cleared or set to whitespace and the picker uses the batch path.

Useful? React with 👍 / 👎.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would only happen if a user manually modifies session_index.jsonl as we don't allow deleting names and would prefer deleting an entry rather than setting the name at "" (empty string)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "(no name)" might be ok here rather than removing.

@pap-openai pap-openai requested a review from jif-oai February 1, 2026 19:38
Copy link
Collaborator

@joshka-oai joshka-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be worth adding an insta snapshot test that shows how the session picker works with thread names. This would help show that this is working end to end.

@pap-openai pap-openai enabled auto-merge (squash) February 2, 2026 08:12
@pap-openai pap-openai merged commit 1644cbf into main Feb 2, 2026
32 checks passed
@pap-openai pap-openai deleted the pap/resume_picker_shows_session_names branch February 2, 2026 08:13
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2026
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.

3 participants