Skip to content

O5: Make the Rust core's writes atomic and its folder switch consistent #507

Backlog

Description

@aMonteSl

Part of the overnight IDE epic.

As a user, I want saves, the recent-folders list and folder switches to be crash-safe and race-free, so that a full disk or a crash never truncates my file or corrupts IDE state.

Acceptance criteria

  • Editor saves write a temp file in the same folder and rename it (in-place fallback for symlinks/hard links)
  • recent.rs holds its lock across read-modify-write and writes atomically
  • A failed folder open keeps the previous folder; switching folder or closing a window cancels its running search
  • A terminal whose reader/writer cannot be created kills its shell; the per-window limit is checked under one lock
  • cargo tests for each case

Hosts

  • Code-XR IDE (apps/ide): required on Windows, macOS and Linux.
  • VS Code extension: no change unless stated above (shared logic, if any, lives in the core so the extension can reuse it).

Generated by Claude Code

Activity

  1. added
    tfm
    user-story
    area: ide
    on Dec 5, 2026
  2. added
    stream: ide-overnight-polish
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: idestream: ide-overnight-polishtfmuser-story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions