Commit a6b4c19
fix: strip server-managed AI usage tags from notebooks during sync
The Notebooks API now injects ai_generated, ai_edited, and human_edited
tags on every write based on request characteristics. Since the sync CLI
uses API key auth (not MCP), every PUT is classified as a human edit,
causing human_edited:true to be added server-side. This creates a
non-converging diff because the source notebook lacks the tag while the
destination always gets it re-injected.
Strip these server-managed tags in handle_special_case_attr so they are
ignored on both sides during import, sync, and diff. Legitimate user
tags (team:*, llm-observability:*) are unaffected.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3a878c7 commit a6b4c19
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
0 commit comments