Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge branch 'main' into feat/cross-project-profile

AkitaOnRails6ee458be0413
diff --cc CHANGELOG.md
index 975160da,200ab69c..64873244
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -438,10 -175,6 +438,13 @@@ and this project adheres to [Semantic V
Documented the observed attach-hook behavior, early-exit import boundary and
fallback validation limits.
(#1052)
+- Fixed `resume` and `workstreams` running `git status` on every linked checkout
+ before listing anything: listing now reads only the checkout's stable
+ fingerprints, so a large working tree or a slow filesystem-monitor hook no
+ longer blocks the picker before its first frame. (#1039)
++- Fixed a store write sent while the writer was shutting down occasionally
++ waiting forever instead of failing with `WriterClosed`: the writer now
++ closes its queue and drains in-flight commands before it stops.
### Security
- Fixed GHSA-7qj3-7wqw-m5w6: in multi-user mode a database user without a
diff --cc crates/ai-memory-store/src/writer.rs
index 0215c3ca,942173a8..96df9c5c
--- a/crates/ai-memory-store/src/writer.rs
+++ b/crates/ai-memory-store/src/writer.rs
@@@ -3324,49 -3195,17 +3324,59 @@@ fn worker_loop(mut conn: Connection, mu
let result = crate::grants::set_access_mode(&conn, project_id, mode);
send_or_warn(reply, result, "set_access_mode");
}
+ WriteCmd::SetProjectProfileFlags {
+ project_id,
+ flags,
+ reply,
+ } => {
+ let result = crate::profile::set_project_profile_flags(&conn, project_id, flags);
+ send_or_warn(reply, result, "set_project_profile_flags");
+ }
+ WriteCmd::RecordProfileHarvest {
+ workspace_id,
+ project_id,
+ candidates,
+ mark,
+ reply,
+ } => {
+ let result = crate::profile::record_profile_harvest(
+ &mut conn,
+ workspace_id,
+ project_id,
+ &candidates,
+ mark,
+ );
+ send_or_warn(reply, result, "record_profile_harvest");
+ }
+ WriteCmd::RecordProfileEntries {
+ workspace_id,
+ project_id,
+ entries,
+ reply,
+ } => {
+ let result = crate::profile::record_profile_entries(
+ &mut conn,
+ workspace_id,
+ project_id,
+ &entries,
+ );
+ send_or_warn(reply, result, "record_profile_entries");
+ }
+ WriteCmd::ClearProfileHarvestMarks { reply } => {
+ let result = crate::profile::clear_profile_harvest_marks(&conn);
+ send_or_warn(reply, result, "clear_profile_harvest_marks");
+ }
- WriteCmd::Shutdown => break,
+ WriteCmd::Shutdown => {
+ // Dropping the receiver drains the queue, but a sender that
+ // already holds a permit can still push afterwards; that
+ // command would never be dropped and its caller would wait
+ // forever. Closing first and receiving until `None` waits for
+ // those in-flight sends, and dropping each command drops its
+ // reply, so every caller sees `WriterClosed`.
+ rx.close();
+ while rx.blocking_recv().is_some() {}
+ break;
+ }
WriteCmd::AuthorizeProject {
workspace_id,
project_id,