Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge PR #1049: fix(run): keep sessions linked under a custom native store reachable
AkitaOnRailsbe3d517f84f5
diff --cc CHANGELOG.mdindex 403b6db5,aa5b4d9c..a2c802f0--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -81,6 -83,6 +81,17 @@@ and this project adheres to [Semantic Vai-jail's own dry-run preflight, so a backend that exists but fails ai-jail'strust checks is treated as unavailable instead of producing a broken offer.(#1024)++- Fixed `continue`, `resume` and bare `ai-memory run` losing sessions launched++ under a custom native store, such as a second Claude Code config home set++ with `CLAUDE_CONFIG_DIR`. Automatic harness selection now scans the store the++ launch resolves (`--env`, then the process environment) instead of always the++ default one. The client records the store of every session it links, at++ launch or when the run finishes, in `client-projects.json`. A later launch++ that cannot find that session and resolves a different store now stops with++ an error naming both stores and keeps the workstream link, where it used to++ start fresh and repoint the workstream. `--fresh` still starts a new session.++ (#1047)++## [2.5.2] - 2026-10-01### Addeddiff --cc crates/ai-memory-cli/src/commands/run.rsindex 4bfc3d58,565f321b..2ceeec0d--- a/crates/ai-memory-cli/src/commands/run.rs+++ b/crates/ai-memory-cli/src/commands/run.rs@@@ -16,14 -16,14 +16,14 @@@ use ai_memory_workstream::JailHostFacts, JailSupport, JailToggleChoice, JailToggleKind, LaunchMode, LaunchPlan,LaunchRoots, ManagedHarness, NativeSessionCandidate, ai_jail_support,allows_native_session_adoption, apply_claude_true_yolo, apply_yolo, build_ai_jail_invocation,- build_launch_plan, build_launch_plan_with_env, claude_attached_background_session,- build_launch_plan, build_launch_plan_with_env, clean_path, crush_global_config_path,- discover_native_session, export_transcript, has_native_session_selector, inside_ai_jail_here,- inspect_repository, jail_checklist, jail_toggle, kiro_explicit_session_id,- kiro_harness_from_source_cursor, kiro_selects_non_default_engine, kiro_selects_v2_engine,- kiro_selects_v3_engine, kiro_v3_resume_uses_default_store, list_native_sessions,- marked_choices, native_session_exists, native_session_in_checkout, native_store_root,- omp_profile_flag, omp_profile_flag_env, parse_jail_toggles, store_override_vars,- usable_ai_jail_here, wait_for_transcript_flush,++ build_launch_plan, build_launch_plan_with_env, claude_attached_background_session, clean_path,+ crush_global_config_path, discover_native_session, export_transcript,+ has_native_session_selector, inside_ai_jail_here, inspect_repository, jail_checklist,+ jail_toggle, kiro_explicit_session_id, kiro_harness_from_source_cursor,+ kiro_selects_non_default_engine, kiro_selects_v2_engine, kiro_selects_v3_engine,+ kiro_v3_resume_uses_default_store, list_native_sessions, marked_choices, native_session_exists,- native_session_in_checkout, omp_profile_flag, omp_profile_flag_env, parse_jail_toggles,- store_override_vars, usable_ai_jail_here, wait_for_transcript_flush,++ native_session_in_checkout, native_store_root, omp_profile_flag, omp_profile_flag_env,++ parse_jail_toggles, store_override_vars, usable_ai_jail_here, wait_for_transcript_flush,};use anyhow::{Context as _, Result, anyhow};use tokio::process::Command;diff --cc crates/ai-memory-workstream/src/lib.rsindex e4036fe1,9849105f..3cb4fad8--- a/crates/ai-memory-workstream/src/lib.rs+++ b/crates/ai-memory-workstream/src/lib.rs@@@ -22,8 -22,8 +22,9 @@@ pub use jail::};pub use repository::{RepositoryIdentity, inspect_repository};pub use transcript::{- AmbiguousNativeSession, ExportedTranscript, NativeSessionCandidate, discover_native_session,- export_transcript, kiro_harness_from_source_cursor, kiro_v3_resume_uses_default_store,- list_native_sessions, native_session_exists, native_session_in_checkout, native_store_root,+ AmbiguousNativeSession, ExportedTranscript, NativeSessionCandidate,+ claude_attached_background_session, discover_native_session, export_transcript,+ kiro_harness_from_source_cursor, kiro_v3_resume_uses_default_store, list_native_sessions,- native_session_exists, native_session_in_checkout, wait_for_transcript_flush,++ native_session_exists, native_session_in_checkout, native_store_root,+ wait_for_transcript_flush,};