refactor: move session/transcript runtime state to SQLite

Migrate OpenClaw session, transcript, and runtime state off per-file
.jsonl/JSON storage onto the SQLite state and agent databases, brought up to
date with current main. Channel plugins persist via the plugin-state SDK
keyed-store seam rather than the raw DB; storage-heavy plugins keep their own
SQLite stores via SDK path helpers.
This commit is contained in:
Josh Lehman
2026-05-31 09:23:11 -07:00
parent 4b1e5b7943
commit 43ea501f38
3309 changed files with 175707 additions and 136819 deletions
+3 -28
View File
@@ -261,41 +261,16 @@ Enable it via CLI:
pnpm gateway:watch --raw-stream
```
Optional path override:
```bash
pnpm gateway:watch --raw-stream --raw-stream-path ~/.openclaw/logs/raw-stream.jsonl
```
Equivalent env vars:
```bash
OPENCLAW_RAW_STREAM=1
OPENCLAW_RAW_STREAM_PATH=~/.openclaw/logs/raw-stream.jsonl
```
Default file:
Default storage:
`~/.openclaw/logs/raw-stream.jsonl`
## Raw OpenAI-compatible chunk logging
To capture **raw OpenAI-compat chunks** before they are parsed into blocks,
enable the transport logger:
```bash
OPENCLAW_RAW_STREAM=1
```
Optional path:
```bash
OPENCLAW_RAW_STREAM_PATH=~/.openclaw/logs/raw-openai-completions.jsonl
```
Default file:
`~/.openclaw/logs/raw-openai-completions.jsonl`
SQLite diagnostics (`diagnostics.raw_stream`). Use an explicit export/debug
command when you need a file artifact.
## Safety notes