Skip to content

Commit 21d708e

Browse files
committed
fix(security): use dirname import instead of path.dirname
1 parent 63de9dd commit 21d708e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/agents/sessions/session-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ export function getDefaultSessionDir(cwd: string, agentDir: string = getDefaultA
448448
const sessionsParent = join(agentDir, "sessions");
449449
chmodSync(sessionsParent, 0o700);
450450
// Also repair gateway sessions path (sibling of agentDir under agents/<id>/)
451-
const gatewaySessions = join(path.dirname(agentDir), "sessions");
451+
const gatewaySessions = join(dirname(agentDir), "sessions");
452452
chmodSync(gatewaySessions, 0o700);
453453
} catch {
454454
/* best effort */

0 commit comments

Comments
 (0)