Skip to content

[Bug] Some keys are missing in config.go #740

@himulawang

Description

@himulawang

I want to disable global memory.

https://docs.goclaw.sh/configuration says

{
  "gateway": { ... },      // HTTP/WS server settings, auth, quotas
  "agents": {              // Defaults + per-agent overrides
    "defaults": { ... },
    "list": { ... }
  },
  "memory": { ... },       // Semantic memory (embedding, retrieval)
  "compaction": { ... },   // Context compaction thresholds
  "context_pruning": { ... }, // Context pruning policy
  "subagents": { ... },    // Subagent concurrency limits
  "sandbox": { ... },      // Docker sandbox defaults
  "providers": { ... },    // LLM provider API keys
  "channels": { ... },     // Messaging channel integrations
  "tools": { ... },        // Tool policies, MCP servers
  "tts": { ... },          // Text-to-speech
  "sessions": { ... },     // Session storage & scoping
  "cron": [],              // Scheduled tasks
  "bindings": {},          // Agent routing by channel/peer
  "telemetry": { ... },    // OpenTelemetry export
  "tailscale": { ... }     // Tailscale/tsnet networking
}

but in source code internal/config/config.go:

type Config struct {
	DataDir   string          `json:"data_dir,omitempty"` // persistent data directory (default: ~/.goclaw/data)
	Agents    AgentsConfig    `json:"agents"`
	Channels  ChannelsConfig  `json:"channels"`
	Providers ProvidersConfig `json:"providers"`
	Gateway   GatewayConfig   `json:"gateway"`
	Tools     ToolsConfig     `json:"tools"`
	Sessions  SessionsConfig  `json:"sessions"`
	Database  DatabaseConfig  `json:"database"`
	Tts       TtsConfig       `json:"tts"`
	Cron      CronConfig      `json:"cron"`
	Telemetry TelemetryConfig `json:"telemetry"`
	Tailscale TailscaleConfig `json:"tailscale"`
	Bindings  []AgentBinding  `json:"bindings,omitempty"`
	mu        sync.RWMutex
}

memory, compaction, context_pruning, subagents, sandbox are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions