Skip to content

fix(session): make latest symlink update race-safe - #1324

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-9892-latest-race
Oct 11, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-9892-latest-race

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Update the latest symlink via a temp symlink plus atomic rename
  • Treat latest symlink failures as best-effort so init always returns the session dir

Verification

  • bun test src/session/session-dir.test.ts passes (5 pass, 0 fail)
  • bun run typecheck passes

Fixes CL-9892

@linear-code

linear-code Bot commented Oct 5, 2026

Copy link
Copy Markdown

CL-9892

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review October 11, 2026 01:30
@TheGreatAxios
TheGreatAxios merged commit 46091fa into main Oct 11, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-9892-latest-race branch October 11, 2026 01:30
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.

1 participant