Skip to content

Read Codex Desktop thread names from session_index.jsonl - #469

Open
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:codex-import-session-titles
Open

Read Codex Desktop thread names from session_index.jsonl#469
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:codex-import-session-titles

Conversation

@Adam-Dalloul

@Adam-Dalloul Adam-Dalloul commented Aug 15, 2026

Copy link
Copy Markdown

Fixes #457.

Codex Desktop often stores the current thread name in session_index.jsonl and never writes thread_name_updated into the rollout. Import then titled the sidebar from the first user prompt.

This overlays the latest non-empty thread_name from session_index.jsonl (last write wins) after the rollout parse, on both the list path and the open/detail path. Manual Codeg titles with title_locked are unchanged because that field is applied after import.

Includes a test that a later index rename wins over the first prompt for list and detail.

List/import already preferred the last session_index.jsonl thread_name.
Opening the same conversation used the rollout parser only, so the first
prompt replaced the Desktop title. Apply the same overlay on detail.
@Adam-Dalloul
Adam-Dalloul force-pushed the codex-import-session-titles branch from 444ea08 to 79e161c Compare August 16, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Codex 导入会话未读取 session_index.jsonl 中的真实名称

1 participant