Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gateway/platforms/whatsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from pathlib import Path
from typing import Dict, Optional, Any

from hermes_cli._subprocess_compat import windows_hide_flags
from hermes_constants import get_hermes_dir

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -617,6 +618,7 @@ async def connect(self) -> bool:
if self._reply_prefix is not None:
bridge_env["WHATSAPP_REPLY_PREFIX"] = self._reply_prefix

_popen_kwargs = {"creationflags": windows_hide_flags()} if _IS_WINDOWS else {}
self._bridge_process = subprocess.Popen(
[
"node",
Expand All @@ -629,6 +631,7 @@ async def connect(self) -> bool:
stderr=bridge_log_fh,
preexec_fn=None if _IS_WINDOWS else os.setsid,
env=bridge_env,
**_popen_kwargs,
)
_write_bridge_pidfile(self._session_path, self._bridge_process.pid)

Expand Down
2 changes: 1 addition & 1 deletion hermes_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8349,7 +8349,7 @@ def _cmd_update_pip(args):

uv = shutil.which("uv")
if uv:
cmd = [uv, "pip", "install", "--upgrade", "hermes-agent"]
cmd = [uv, "pip", "install", "--system", "--upgrade", "hermes-agent"]
else:
cmd = [sys.executable, "-m", "pip", "install", "--upgrade", "hermes-agent"]

Expand Down
11 changes: 10 additions & 1 deletion hermes_cli/runtime_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,16 @@ def _resolve_named_custom_runtime(
# Check credential pool first — mirrors the named-custom-provider path
# so bare `provider: custom` with a configured custom_providers entry
# also gets its api_key from the pool instead of env var fallbacks.
pool_result = _try_resolve_from_custom_pool(base_url, "custom", None)
# Preserve sub-name (e.g. "custom:bobapi-deepseek") for name-based pool
# lookup instead of falling back to url-only matching (#29872).
_pool_provider_name = (
requested_provider.split(":", 1)[1]
if requested_provider and ":" in requested_provider
else None
)
pool_result = _try_resolve_from_custom_pool(
base_url, "custom", _pool_provider_name
)
if pool_result:
pool_result["source"] = "direct-alias"
return pool_result
Expand Down
2 changes: 1 addition & 1 deletion web/src/i18n/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const TRANSLATIONS: Record<Locale, Translations> = {
export const LOCALE_META: Record<Locale, { name: string; flagCountryCode: string }> = {
en: { name: "English", flagCountryCode: "gb" },
zh: { name: "简体中文", flagCountryCode: "cn" },
"zh-hant": { name: "繁體中文", flagCountryCode: "tw" },
"zh-hant": { name: "繁體中文", flagCountryCode: "cn" },

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This change doesn't seem to be related to the rest of the PR.

ja: { name: "日本語", flagCountryCode: "jp" },
de: { name: "Deutsch", flagCountryCode: "de" },
es: { name: "Español", flagCountryCode: "es" },
Expand Down