Commit 6c1a330
fix(setup): non-destructive sync + context window reduction (#34)
* fix: reduce context injection window to prevent group thread overflow
- fullLengthMessages: 5 → 3
- additionalMessages: 15 → 7
- fullMaxChars: 2000 → 1500
- truncatedMaxChars: 500 → 400
Total messages injected per message: 20 → 10.
Root cause: in active group threads with many long agent responses, the
per-message context injection was pushing even fresh sessions over the
model's context limit. /new and /reset don't help because the history
is re-injected from the platform on every incoming message, not from
session history.
Also applied to installed extension at .openclaw/extensions/ax-platform/
and switched compaction.mode to 'summarize' in openclaw.json.
* fix(setup): make sync non-destructive to prevent config corruption
setup.sh sync was overwriting critical config during agent credential
updates — hardcoding backendUrl, wiping workspace paths, deleting
heartbeat/model config, clearing the plugin install manifest, and
removing staging agents not in ax-agents.env.
Changes:
- sync now only updates plugins.entries.ax-platform.config.agents
- agent entries and bindings are merged (add missing, never overwrite)
- extension files are copied over (no delete-first)
- config is backed up before every sync (~/.openclaw/backups/)
- gateway restart uses openclaw CLI with proper process detection
- CLAUDE.md updated to document the safe deployment flow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Cipher <cipher@ax-platform.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 926e149 commit 6c1a330
3 files changed
Lines changed: 284 additions & 155 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
| 21 | + | |
18 | 22 | | |
19 | | - | |
| 23 | + | |
20 | 24 | | |
21 | | - | |
| 25 | + | |
22 | 26 | | |
23 | | - | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
0 commit comments