personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Exit with error code when dream insights fail

- Remove unused -p flag from think-insight command construction
- Add sys.exit(1) when any insights fail, enabling proper error propagation
- Minor formatting fix in muse/cli.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+9 -2
+3 -1
muse/cli.py
··· 275 275 provider_mod = get_provider_module(provider_name) 276 276 else: 277 277 valid = ", ".join(sorted(PROVIDER_REGISTRY.keys()) + ["claude"]) 278 - raise ValueError(f"Unknown provider: {provider_name!r}. Valid providers: {valid}") 278 + raise ValueError( 279 + f"Unknown provider: {provider_name!r}. Valid providers: {valid}" 280 + ) 279 281 280 282 # Run the agent 281 283 asyncio.run(provider_mod.run_agent(config=config, on_event=on_event))
+6 -1
think/dream.py
··· 3 3 4 4 import argparse 5 5 import logging 6 + import sys 6 7 import time 7 8 from datetime import datetime, timedelta 8 9 ··· 76 77 if insight_frequency != target_frequency: 77 78 continue 78 79 79 - cmd = ["think-insight", day, "-f", insight_data["path"], "-p"] 80 + cmd = ["think-insight", day, "-f", insight_data["path"]] 80 81 if segment: 81 82 cmd.extend(["--segment", segment]) 82 83 if verbose: ··· 198 199 if args.force: 199 200 msg += " --force" 200 201 day_log(day, msg) 202 + 203 + if fail_count > 0: 204 + logging.error(f"{fail_count} insight(s) failed, exiting with error") 205 + sys.exit(1) 201 206 finally: 202 207 _callosum.stop() 203 208