Compare commits

...

2 Commits

Author SHA1 Message Date
teknium1
50667ed3f0 chore(release): map islam666 for salvaged PR #39608 2026-06-07 06:34:08 -07:00
islam666
77635144e2 fix(profiles): skip 'default' in named profiles scan to prevent duplicates
When ~/.hermes/profiles/default/ exists as a directory, list_profiles()
returns 'default' twice: once as the built-in default profile (~/.hermes)
and once from the directory scan (~/.hermes/profiles/default).

This causes the cron dashboard API (profile=all) to read the same
jobs.json twice, showing every default-profile job duplicated in the UI.

Fix: skip name=='default' in the named profiles loop, since it's already
added as the built-in default at the top of the function.

Fixes #39346
2026-06-07 06:34:08 -07:00
2 changed files with 3 additions and 0 deletions

View File

@@ -683,6 +683,8 @@ def list_profiles() -> List[ProfileInfo]:
if not entry.is_dir():
continue
name = entry.name
if name == "default":
continue # already added as the built-in default above
if not _PROFILE_ID_RE.match(name):
continue
model, provider = _read_config_model(entry)

View File

@@ -58,6 +58,7 @@ AUTHOR_MAP = {
"129007007+HeLLGURD@users.noreply.github.com": "HeLLGURD",
"290859878+synapsesx@users.noreply.github.com": "synapsesx",
"dirtyren@users.noreply.github.com": "dirtyren",
"islam666@users.noreply.github.com": "islam666",
"zhaolei.vc@bytedance.com": "zhaoleibd",
"jeffrobodie@gmail.com": "jeffrobodie-glitch",
"kyssta-exe@users.noreply.github.com": "kyssta-exe",