Add more tests; make fall back more resilient and visible

This commit is contained in:
Vignesh Natarajan
2026-01-27 22:46:11 -08:00
committed by Vignesh
parent 2c30ba400b
commit 3a57106c1e
10 changed files with 149 additions and 10 deletions

View File

@@ -284,6 +284,7 @@ export async function runMemoryStatus(opts: MemoryCommandOptions) {
try {
await manager.sync({
reason: "cli",
force: true,
progress: (syncUpdate) => {
update({
completed: syncUpdate.completed,
@@ -492,9 +493,8 @@ export function registerMemoryCli(program: Command) {
.command("index")
.description("Reindex memory files")
.option("--agent <id>", "Agent id (default: default agent)")
.option("--force", "Force full reindex", false)
.option("--verbose", "Verbose logging", false)
.action(async (opts: MemoryCommandOptions & { force?: boolean }) => {
.action(async (opts: MemoryCommandOptions) => {
setVerbose(Boolean(opts.verbose));
const cfg = loadConfig();
const agentIds = resolveAgentIds(cfg, opts.agent);
@@ -584,7 +584,7 @@ export function registerMemoryCli(program: Command) {
try {
await manager.sync({
reason: "cli",
force: opts.force,
force: true,
progress: (syncUpdate) => {
if (syncUpdate.label) {
lastLabel = syncUpdate.label;