Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/screens/ResumeConversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ export function ResumeConversation({
}
}
if (result_3.sessionId && !forkSession) {
switchSession(asSessionId(result_3.sessionId), log_0.fullPath ? dirname(log_0.fullPath) : null);
// Prefer the resolved fullPath: for imported sessions (Codex) it
// points to the converted native file, not the foreign source.
const sessionDirPath = result_3.fullPath ?? log_0.fullPath;
switchSession(asSessionId(result_3.sessionId), sessionDirPath ? dirname(sessionDirPath) : null);
await renameRecordingForSession();
await resetSessionFilePointer();
restoreCostStateForSession(result_3.sessionId);
Expand Down
1 change: 1 addition & 0 deletions src/types/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type LogOption = {
summary?: string // Optional conversation summary
customTitle?: string // Optional user-set custom title
tag?: string // Optional tag for the session (searchable in /resume)
importedFrom?: 'codex' // Sessão importada de outro CLI (conversão no resume)
fileHistorySnapshots?: FileHistorySnapshot[] // Optional file history snapshots
attributionSnapshots?: AttributionSnapshotMessage[] // Optional attribution snapshots
contextCollapseCommits?: ContextCollapseCommitEntry[] // Ordered — commit B may reference commit A's summary
Expand Down
Loading
Loading