Repository navigation
🐱 TermiNyal 1.7.2
強制終了・クラッシュのあとに Claude Code / Codex のセッションが復帰しない問題を直しました。
あわせて、Mac の再起動・ログアウト・システム終了のあとも同じように復帰するようにしました。
- npm でインストールした Codex が自動再開の対象になっていなかった問題を直しました。
npm 版のcodexはnode経由で起動するため、実行中の検出に一度も引っかからず、
強制終了後にcodex resume --lastが打たれていませんでした。起動引数からコマンド名を
読み取るようにし、npm 版でも検出されるようになりました(npm 版の Claude Code も同様) - Mac の再起動・ログアウト・システム終了のあとも、Claude Code / Codex のセッションを自動再開します。
これまでは macOS がアプリを正常終了させるため ⌘Q と同じ扱いになり、次のログイン後に
会話へ繋ぎ直されませんでした。macOS が終了要求に付ける理由(再起動・ログアウト・
シャットダウン)を見て、これらの終了では再開情報を残します。⌘Q や Dock からの終了は
これまでどおり「会話を終える」扱いです - 動作条件はこれまでと同じです: 設定 > 一般 > 「AI エージェントのセッションを自動再開する」が ON、
かつペインの作業ディレクトリが残っていること。同じディレクトリで複数ペインを動かしていた場合は
対話式のセッション選択(claude --resume/codex resume)になります
🐱 TermiNyal 1.7.2 (English)
Fixes Claude Code / Codex sessions not being resumed after a force quit or crash, and
extends the auto-resume to Mac restarts, log outs and shutdowns.
- Fixed Codex installed via npm never being picked up for auto-resume. The npm
codexcommand runs throughnode, so the running-agent detection never matched it and
codex resume --lastwas never typed after a force quit. Detection now reads the launch
arguments, so the npm builds of both Codex and Claude Code are recognized - Claude Code / Codex sessions are now resumed after a Mac restart, log out or shutdown.
macOS quits the app normally in those cases, which used to count as a ⌘Q and drop the
resume information. TermiNyal now reads the reason macOS attaches to the quit request
(restart / log out / shutdown) and keeps it for those; ⌘Q and quitting from the Dock still
mean "end the conversation" - Requirements are unchanged: Settings > General > "Auto-resume AI agent sessions" is on and
the pane's working directory still exists. With several panes in the same directory you
get the interactive session picker (claude --resume/codex resume)