test: reduce boilerplate in imported-session tests

main

Commit

computermode2mo ago
  • Merge the two strategy cleanup tests into one TestImportedSessions_SurviveCleanup with a shared saveImportedState helper.
  • Merge the list/info read-only tests into one TestImportedSession_MarkedReadOnly with a run helper.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com Entire-Checkpoint: 01KX4DTCMV8EMWKYCKMBASNVBA

Checkpoints

Fix Imported Sessions Handling in CLI

Claude CodeOpus 4.8
View session
Checkpoint 1