Merge 47e9374226 into 09be5d45d5
This commit is contained in:
commit
21f383697a
@ -54,8 +54,10 @@ export function resolveSessionFilePath(
|
|||||||
entry?: SessionEntry,
|
entry?: SessionEntry,
|
||||||
opts?: { agentId?: string },
|
opts?: { agentId?: string },
|
||||||
): string {
|
): string {
|
||||||
const candidate = entry?.sessionFile?.trim();
|
// Always compute path from current environment rather than trusting stored paths.
|
||||||
return candidate ? candidate : resolveSessionTranscriptPath(sessionId, opts?.agentId);
|
// Stored absolute paths in sessions.json break when migrating to a different user
|
||||||
|
// or home directory, causing EACCES errors when accessing the old user's paths.
|
||||||
|
return resolveSessionTranscriptPath(sessionId, opts?.agentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resolveStorePath(store?: string, opts?: { agentId?: string }) {
|
export function resolveStorePath(store?: string, opts?: { agentId?: string }) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user