Repository navigation
feat(server): sync imported provider sessions and titles - #1
Open
matthias-scale wants to merge 3 commits into
Open
matthias-scale wants to merge 3 commits into
matthias-scale wants to merge 3 commits into
Conversation
Use Codex session index titles when available, fall back past injected context, and repair legacy placeholder titles during a repeated import. Closes pingdotgg#10513
Bound session-index reads, preserve concurrent manual renames, recover fallback titles from imported history, and isolate repair failures.
6 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Imported Claude Code and Codex threads now use the provider's session name and stay in step with the running terminal session.
~/.codex/session_index.jsonl, and injected context is skipped.custom-titlerecord (from/rename), thenai-title, then the first visible user message.AgentSessionSyncruns 5 s after startup and then every 5 minutes. Runs are serialized and coalesced. It rescans projects that already have imported threads, adds new messages and new sessions, and updates provider titles.thread.history.append. They keep stable imported message IDs, so a rerun adds no duplicates, and they never settle a thread. Transcripts whose file identity hasn't changed are skipped.Verification:
apps/servervp test run src/project src/orchestration/deciderpasses 294/294 andtsc --noEmitis clean. Contracts tests pass 61/61.https://claude.ai/code/session_01SHuGjA6vRucev3H2TiY2bu