Skip to content

Desktop app overwrites custom agents.defaults fields on every restart (bootstrapMaxChars reset from 30000 to 12000) #1

Description

@abc195561-coder

Summary Every time the desktop app starts/restarts, it overwrites custom fields in openclaw.runtime.json with internal hardcoded template. Example: manually set bootstrapMaxChars=30000, after restart it resets to 12000. Gateway logs: AGENTS.md 18890 chars (limit 12000); truncating. Affected fields: bootstrapMaxChars, bootstrapTotalMaxChars, agent emoji, qqbot.enabled. Environment: Windows 11, OpenClaw Gateway 2026.4.23. Verified 8 times, confirmed root cause is desktop app overwriting existing custom fields on startup. Suggested fix: Preserve existing custom field values on startup, only append missing defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions