Skip to content

fix(run_agent): guard memory provider init against empty/whitespace string#26632

Closed
ether-btc wants to merge 1 commit into
NousResearch:mainfrom
ether-btc:fix/memory-provider-empty-string-guard
Closed

fix(run_agent): guard memory provider init against empty/whitespace string#26632
ether-btc wants to merge 1 commit into
NousResearch:mainfrom
ether-btc:fix/memory-provider-empty-string-guard

Conversation

@ether-btc

Copy link
Copy Markdown
Contributor

Problem

When memory.provider is configured as an empty string or whitespace-only string in config.yaml, the memory provider init is silently skipped with no warning. This makes it appear that Mnemosyne (or any provider) is active when it isn't.

Fix

run_agent.py line 1998: guard if _mem_provider_name: with and _mem_provider_name.strip() so empty and whitespace-only strings are treated the same as no provider.

Testing

Trivial one-line change with no side effects — the original condition already handles None/falsy; this extends it to cover the edge case of provider: '' or provider: ' ' in config.

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/agent Core agent loop, run_agent.py, prompt builder tool/memory Memory tool and memory providers labels May 15, 2026
teknium1 added a commit that referenced this pull request May 17, 2026
…tors

Adds release-note attribution mappings for 10 contributors from the
low-hanging-fruit salvage group 2 batch:
- @shellybotmoyer (PR #26661, #25576)
- @ether-btc (PR #26632)
- @LifeJiggy (PR #26516)
- @nekwo (PR #26481)
- @flooryyyy (PR #26374)
- @dgians (PR #26034, incl. zealy-tzco bot-committer alias)
- @flanny7 (PR #27030)
- @hermesagent26 (PR #26438)
- @kriscolab (PR #26926, co-author on salvage commit)
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #27292 — your commit was cherry-picked onto current main as part of a batch salvage of low-risk new-contributor PRs. Authorship preserved (fix(run_agent): guard memory provider init against empty/whitespace string). Thanks for the contribution.

@teknium1 teknium1 closed this May 17, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…tors

Adds release-note attribution mappings for 10 contributors from the
low-hanging-fruit salvage group 2 batch:
- @shellybotmoyer (PR NousResearch#26661, NousResearch#25576)
- @ether-btc (PR NousResearch#26632)
- @LifeJiggy (PR NousResearch#26516)
- @nekwo (PR NousResearch#26481)
- @flooryyyy (PR NousResearch#26374)
- @dgians (PR NousResearch#26034, incl. zealy-tzco bot-committer alias)
- @flanny7 (PR NousResearch#27030)
- @hermesagent26 (PR NousResearch#26438)
- @kriscolab (PR NousResearch#26926, co-author on salvage commit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P3 Low — cosmetic, nice to have tool/memory Memory tool and memory providers type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants