GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Config: four dead keys are still advertised in the generated template (maxProfileItems, userProfileDisplay*) · Issue #492 · tickernelz/opencode-mem

Config: four dead keys are still advertised in the generated template (maxProfileItems, userProfileDisplay*) #492

New issue
Copy link
New issue
Copy link
Closed
#498
Closed
Config: four dead keys are still advertised in the generated template (maxProfileItems, userProfileDisplay*)#492
#498
Copy link

Description

@junior-xj97-chan
junior-xj97-chan
opened on Nov 5, 2026
Issue body actions

Summary

Four options are parsed into CONFIG but never read by any code: maxProfileItems, userProfileDisplayPreferences, userProfileDisplayPatterns, userProfileDisplayWorkflows.

None of them is marked deprecated, and three of them are still written into the auto-generated opencode-mem.jsonc with comments claiming they control the UI, so users tune them and nothing happens.

Details

Searching every .js under dist for a read site (not just DEFAULTS / buildConfig):

key read sites outside config.js status
maxProfileItems 0 dead
userProfileDisplayPreferences 0 dead
userProfileDisplayPatterns 0 dead
userProfileDisplayWorkflows 0 dead

Timeline (npm pack + grep across versions):

  • 2.0.0 — maxProfileItems was live: client.js did staticFacts.slice(0, CONFIG.maxProfileItems) / dynamicFacts.slice(0, CONFIG.maxProfileItems)
  • 2.10.0 → 2.41.0 — maxProfileItems only appears in DEFAULTS and buildConfig; the profile rewrite moved the real limits to userProfileInjectPreferences/Patterns/Workflows
  • userProfileDisplay* — absent in 2.10.0, appear in 2.20.0 already with zero consumers (born dead)
  • Present and unchanged in 2.26.0 / 2.36.1 / 2.40.0 / 2.41.0

config.d.ts declares all four as normal options (no @deprecated), and CONFIG_TEMPLATE still ships them (config.js around L528–534):

// Number of preferences shown in UI
"userProfileDisplayPreferences": 20,

// Number of patterns shown in UI
"userProfileDisplayPatterns": 15,

// Number of workflows shown in UI
"userProfileDisplayWorkflows": 10,

The README does not mention any of them (not even the live userProfileInject*), so the generated template is the only place users ever see them.

Impact: silent no-op settings; they also cost debugging time, because a key that appears in the template looks live.

Suggested fix

  • Remove all four from OpenCodeMemConfig / DEFAULTS / CONFIG_TEMPLATE; or
  • Mark them @deprecated in the type + buildConfig and note that userProfileInjectPreferences/Patterns/Workflows is the live knob.

(Separate, not part of this report: dreaming.trashRetentionDays is a different case — it is read, just only by cleanup-service when cleanup runs.)

Environment

  • opencode-mem version: 2.40.0, verified against 2.41.0 and older releases down to 2.0.0
  • OpenCode version: v2.2.5 (desktop CLI), Node 24.19.0
  • OS: Windows 11

Activity

  1. junior-xj97-chan
    changed the title [-]Config: four dead keys are still advertised in the generated template (`maxProfileItems`, `userProfileDisplay*`)[/-] [+]Config: four dead keys are still advertised in the generated template (maxProfileItems, userProfileDisplay*)[/+] on Nov 5, 2026
  2. Phototonic
    added a commit that references this issue on Nov 6, 2026

    fix(config): deprecate unused profile limits

    This issue will close once commit 5d424f2 is merged into the 'main' branch.
    5d424f2
  3. EyJunge1
    closed this as completedin 4a00809on Nov 6, 2026
  4. Mightybeast12
    added a commit that references this issue on Nov 14, 2026

    fix(config): deprecate unused profile limits (tickernelz#498)

    This issue will close once commit 4a00809 is merged into the 'main' branch.
    4a00809
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.