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:
YeonGyu-Kim
2026-02-14 18:28:19 +09:00
parent e34fbd08a9
commit 49dafd3c91
5 changed files with 25 additions and 1 deletions
@@ -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 }
}