Commit 09d9e9a
Don't lose drafts when verify/translate API calls fail
Previously a 429 (quota) or any provider error during the
verify pass raised out of generate_section() before the draft was
written to disk, so a perfectly good ~7KB codex-generated section
was discarded. Same for the optional translate step.
Both now log a warning and fall through with the unmodified draft,
which matches how the image filter already handles vision errors
(just keeps the image).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9c7b29e commit 09d9e9a
1 file changed
Lines changed: 20 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1058 | 1060 | | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
1065 | 1071 | | |
1066 | 1072 | | |
1067 | 1073 | | |
| |||
1071 | 1077 | | |
1072 | 1078 | | |
1073 | 1079 | | |
1074 | | - | |
1075 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1076 | 1087 | | |
1077 | 1088 | | |
1078 | 1089 | | |
| |||
0 commit comments