Skip to content

feat(tabs): auto-resume previous Claude session on app restart#83

Merged
liplus-lin-lay merged 1 commit into
mainfrom
82-auto-resume-session
Apr 14, 2026
Merged

feat(tabs): auto-resume previous Claude session on app restart#83
liplus-lin-lay merged 1 commit into
mainfrom
82-auto-resume-session

Conversation

@liplus-lin-lay
Copy link
Copy Markdown
Member

Refs #82

アプリ再起動時に復元された Claude セッションへ --continue フラグを自動付与し、前回の会話を再開する。
SessionStaterestored フラグを追加し、初回 PTY 起動時のみ注入・消費する設計。
手動 Stop→Start や新規セッションでは付与されず、既存 args との重複チェックも実施。

復元セッションの初回起動時に --continue フラグを自動付与し、
前回の Claude Code 会話を再開する機能を実装。

- SessionState に restored フラグを追加
- loadTabs() で復元セッションに restored: true を設定
- startTab() で cli_kind === "claude" かつ restored の場合のみ --continue を注入
- フラグは初回起動で消費され、手動 Stop→Start では付与されない
- ユーザーの既存 args に --continue/-c がある場合は重複追加しない

Refs #82

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@liplus-lin-lay liplus-lin-lay linked an issue Apr 14, 2026 that may be closed by this pull request
@liplus-lin-lay liplus-lin-lay merged commit eb238c2 into main Apr 14, 2026
1 check passed
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.

Auto-resume previous conversation on app restart

1 participant