feat(storage): gate JSON write operations on OpenCode beta, document degraded features
- Gate session-recovery writes: injectTextPart, prependThinkingPart, replaceEmptyTextParts, stripThinkingParts - Gate context-window-recovery writes: truncateToolResult - Add isSqliteBackend() checks with log warnings - Create beta-degraded-features.md documentation
This commit is contained in:
@@ -51,7 +51,7 @@ export function truncateToolResult(partPath: string): {
|
||||
originalSize?: number
|
||||
} {
|
||||
if (isSqliteBackend()) {
|
||||
log.warn("[context-window-recovery] Disabled on SQLite backend: truncateToolResult")
|
||||
log("[context-window-recovery] Disabled on SQLite backend: truncateToolResult")
|
||||
return { success: false }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user