Urgent.News

What's breaking now, across hundreds of outlets.

AI

My Mac reboot used to kill every Claude Code session I had open. Now one command brings them all back.

I live in iTerm2. On a normal day I have somewhere between five and twenty Claude Code sessions open, one per tab, each sitting in its own project. Some of them have been running for days. They know the codebase, they know what we tried yesterday and why it didn't work, and a couple of them have scheduled tasks and subagents going. Then macOS decides it's time for an update. After the restart…

Claude Code users in iTerm2 used to lose all open sessions after a Mac restart, forcing them to manually restore each project. To solve this, User0856 created Claude Resurrect 2.0, a script that automatically restores every Claude session to its original tab and folder after a reboot. The script works by creating a snapshot of each active session, which includes the session ID, folder location, and start time.

When the Mac reboots, the script scans for running Claude processes and matches them to their corresponding snapshots. It then opens iTerm2, navigates to the correct folder, and resumes each session using the "claude --resume" command. The tool also handles edge cases, such as sessions that were killed during the reboot or tabs that are not in a plain shell prompt.

With one command, users can restore all their Claude sessions and continue working seamlessly. The tool was built using Claude Code itself, and has undergone extensive testing to ensure reliability.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

Why We Separated LLM Parsing from OpenCascade Geometry Compilation for Text-to-CAD

Most AI 3D generators today output neural triangle meshes (GLB/OBJ). They work well for figurines and game assets, but they break down as soon as you need an M5 clearance hole spaced 80 mm apart or an…

  • LLM parses plain-English prompts into typed part schema
  • OpenCascade compiles schema into B-rep solid with deterministic techniques
  • Exact dimensions passed to OpenCascade kernel for precise manufacturing

More from Saturday, 28 November 2026 →