Commit 89be5ae
committed
fix: conversation capture — catch any editNote error, fall through to create
The previous code matched specific error types (isNoteNotFoundError) to
decide whether to fall back to writeNote. The error format from callTool
didn't match, so writeNote never fired — zero conversations captured.
Fix: try append, if it fails for ANY reason, create the note. Also adds
Conversation schema frontmatter (type: Conversation, date) to created notes.
Fixes #221 parent 9ab86e1 commit 89be5ae
1 file changed
Lines changed: 22 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| 858 | + | |
858 | 859 | | |
859 | 860 | | |
860 | 861 | | |
| 862 | + | |
861 | 863 | | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
| 864 | + | |
| 865 | + | |
866 | 866 | | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
874 | 885 | | |
875 | 886 | | |
876 | 887 | | |
| |||
0 commit comments