bxctl memory sync: the Honcho ledger's counts and failed items
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
@@ -18,6 +18,7 @@ use crate::edit::{self, Context};
|
||||
use crate::files::Store;
|
||||
use crate::honcho::ledger::{self, LedgerError};
|
||||
use crate::honcho::mirror::Mirror;
|
||||
use crate::honcho::report;
|
||||
use crate::honcho::state;
|
||||
use crate::honcho::turns::TurnSync;
|
||||
use crate::honcho::worker::{self, Wake};
|
||||
@@ -454,6 +455,10 @@ impl Memoryd {
|
||||
MemoryCommand::Pending => review::list(&self.store),
|
||||
MemoryCommand::Accept => review::accept(&self.store, arg, now),
|
||||
MemoryCommand::Reject => review::reject(&self.store, arg, now),
|
||||
MemoryCommand::Sync => Ok(match &self.mirror {
|
||||
Some(mirror) => mirror.report(),
|
||||
None => report::NOT_CONFIGURED.to_string(),
|
||||
}),
|
||||
};
|
||||
if result.is_ok() && matches!(command, MemoryCommand::Undo | MemoryCommand::Accept) {
|
||||
self.mirror(None);
|
||||
|
||||
Reference in New Issue
Block a user