Skip to content

feat(opencode): add env var overrides for retain and recall options#2336

Open
ibousfiha wants to merge 4 commits into
vectorize-io:mainfrom
ibousfiha:feat/config-env-overrides
Open

feat(opencode): add env var overrides for retain and recall options#2336
ibousfiha wants to merge 4 commits into
vectorize-io:mainfrom
ibousfiha:feat/config-env-overrides

Conversation

@ibousfiha

Copy link
Copy Markdown

Add missing environment variable overrides for configuration options
that were only settable via plugin options or config file:

  • HINDSIGHT_RETAIN_EVERY_N_TURNS
  • HINDSIGHT_RETAIN_OVERLAP_TURNS
  • HINDSIGHT_RECALL_TAGS / HINDSIGHT_RETAIN_TAGS
  • HINDSIGHT_RECALL_TAGS_MATCH
  • HINDSIGHT_RECALL_PROMPT_PREAMBLE
  • HINDSIGHT_RECALL_CONTEXT

Add missing environment variable overrides for configuration options
that were only settable via plugin options or config file:
- HINDSIGHT_RETAIN_EVERY_N_TURNS
- HINDSIGHT_RETAIN_OVERLAP_TURNS
- HINDSIGHT_RECALL_TAGS / HINDSIGHT_RETAIN_TAGS
- HINDSIGHT_RECALL_TAGS_MATCH
- HINDSIGHT_RECALL_PROMPT_PREAMBLE
- HINDSIGHT_RECALL_CONTEXT
@nicoloboschi nicoloboschi changed the title feat(config): add env var overrides for retain and recall options feat(opencode): add env var overrides for retain and recall options Jun 23, 2026
HINDSIGHT_RETAIN_TAGS: ["retainTags", "string"],
HINDSIGHT_RECALL_TAGS_MATCH: ["recallTagsMatch", "string"],
HINDSIGHT_RECALL_PROMPT_PREAMBLE: ["recallPromptPreamble", "string"],
HINDSIGHT_RECALL_CONTEXT: ["retainContext", "string"],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is wrong

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected

ibousfiha and others added 2 commits June 23, 2026 14:43
…NTEXT

The env var HINDSIGHT_RECALL_CONTEXT mapped to retainContext, which
breaks the naming convention where RECALL_* maps to recall* properties
and RETAIN_* maps to retain* properties.
@ibousfiha ibousfiha requested a review from nicoloboschi June 23, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants