Skip to content

[Medium] Add config schema validation for new experimental fields #13

Description

@randomm

Problem

New config fields lack Zod validation:

  • remory_enabled
  • remory_persist_context
  • remory_persist_thinking
  • remory_inject_context
  • remory_max_length
  • remory_search_limit
  • background_tasks
  • max_background_tasks
  • context_window_percent

Solution

Add Zod schemas with:

  1. Type validation
  2. Bounds checking (e.g., context_window_percent 0-1)
  3. Sensible defaults

Files

  • packages/opencode/src/config/config.ts

Branch

claude/simplify-agentic-loop-2jRSP

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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