fix: log gateway model mode defaults

This commit is contained in:
Peter Steinberger
2026-05-04 23:52:58 +01:00
parent c3c7c2df6f
commit 03f7e26d54
4 changed files with 117 additions and 4 deletions

View File

@@ -15,6 +15,17 @@ OpenClaw has two log “surfaces”:
- **Console output** (what you see in the terminal / Debug UI).
- **File logs** (JSON lines) written by the gateway logger.
At startup, the Gateway logs the resolved default agent model together with the
mode defaults that affect new sessions, for example:
```text
agent model: openai-codex/gpt-5.5 (thinking=medium, reasoning=off, fast=on)
```
`thinking` comes from the default agent, model params, or global agent default;
`reasoning` comes from the default agent or global reasoning default; and `fast`
comes from the default agent or model `fastMode` params.
## File-based logger
- Default rolling log file is under `/tmp/openclaw/` (one file per day): `openclaw-YYYY-MM-DD.log`