A title request against a slow local model (a reasoning model on modest
hardware) hit `auxiliary.title_generation.timeout`, was retried on the same
provider twice more with backoff, and only then fell back — roughly four
configured windows, exactly the 3x30s the reporter read off the Ollama access
log — while the auto-title thread outlived the deadline the user thought they
had set. The failure was logged at INFO as a "connection error", the same
label as an unreachable endpoint, so the only WARNING the operator saw came
from the fallback provider complaining about a model it never had, which reads
as "your base_url was ignored".
Title generation joins compression and vision in the existing
critical-path rung that skips the same-provider retry after a full-budget
timeout, and the fallback ladder now classifies a timeout before the
connection-error rung and logs it at WARNING with the endpoint, the budget
and the config key to raise. The route carries its effective timeout so the
message can say how long it waited. Docs list the title default and the
one-window rule.
Slim redo of the retry/fallback half of #100013 on the existing rung; its
10s default and concurrency change are not carried.
Fixes#89445
Part of #66251
Co-authored-by: AJ Fasano <ajfasano@gmail.com>
Seeds the pre-isolation layout (hosted_room* rows in the root state.db,
written by the store's own writers), launches the REAL Electron app and asks
its spawned `hermes serve` backend over JSON-RPC: groups.list / groups.state /
groups.log for the old room. On origin/main the store is created empty and
every call answers 4114 "hosted room not found"; with the one-shot import the
room, its cursor and its event come back, shared-state.db exists and the
legacy state.db is left intact.
Docs: one sentence on where room state lives and that pre-existing rooms are
copied across once on update. Contributor mapping for L4XB, whose #109917
proposed the same import a little earlier (ATTACH + INSERT OR IGNORE into an
empty store); the marker-row variant from #109979 is the one landed here
because it also reaches installs that already created new rooms after the
upgrade.
Refs #109775
Co-authored-by: L4XB <lukas.buck@e-mail.de>
Both readers now share utils.env_var_enabled(), so the reference table
spells out the falsy values instead of implying "any value enables".
Also registers the contributor email mapping for the salvaged commit.
Follow-up to the cherry-picked #112536 (@AYin-Z):
- The range cache now bypasses the process-global cache when a profile
override is active, exactly like _global_allow_private_urls — a multiplex
gateway serving several profiles must not apply the first profile's
declaration to later ones (A->B->A probe: True/False/True).
- _reset_allow_private_cache() resets both caches; the separate test-only
_reset_fake_ip_cache() is gone.
- _is_declared_fake_ip() is a plain predicate folded into the one
_resolved_ip_block_reason() condition; the metadata floor is still tested
first, so a declared block can never cover 169.254.0.0/16 or the metadata
IPs. Dropped the comma-split string parsing (a single string is still
accepted as one entry) and the debug log line.
- Tests trimmed from five to two invariants: declared sentinel dialable at
pre-flight and connect time; the declaration excuses only the declared
block (RFC 1918 + metadata still blocked, sentinel blocked again once the
declaration is removed).
Group rows gain the Pin to top / Unpin context item bot rows already
have. The roster sort has honoured `room.pinned` since the room-order
work, but nothing ever wrote the flag, so a daily-driver room kept
sinking under fresher 1:1 chats (#89813). The pin lives on the room
record and rides the local group-chats persistence like `rosterOrder`
(sync: false) — presentation state stays out of the gateway mirror.
Also a Playwright spec that drives the real Electron app through both
group-row organisation paths (pin/unpin ordering + storage truth, and
filing into a user section via the row menu), plus the user-guide
paragraph, the contributor mapping for the salvaged commit, and the
bundled-plugin version bump the recent history uses.
Follow-up to the cherry-picked #112432 (@lorencato23):
- Drop the try/except around ``cursor_rules_dir.glob("*.mdc")``: ``Path.glob``
already swallows PermissionError on an unreadable directory (verified live on
a 000-mode ``.cursor/rules`` -> ``[]``), so the wrapper guarded code that
cannot raise.
- Replace the four monkeypatch-based tests with two real-filesystem tests
(chmod 0, skipped as root): ``_find_hermes_md`` on an unreadable cwd returns
None and ``build_context_files_prompt(cwd=<unreadable>)`` still returns a
string; ``_cursorrules_candidates`` on an unreadable cwd returns [] while a
readable sibling project still yields its ``.cursor/rules/*.mdc``.
Dropped: TestFindHermesMd::test_unreadable_candidate_is_treated_as_not_found,
TestFindHermesMd::test_walk_continues_past_unreadable_directory,
TestCursorrulesCandidates::test_finds_cursorrules_file,
TestCursorrulesCandidates::test_unreadable_rules_dir_is_treated_as_absent.
#8767 (@officialasishkumar) was the earliest PR to guard ``_find_hermes_md``
against PermissionError; its ``_find_git_root`` half landed via #8751
(337113c1b8) and its ``_find_hermes_md`` half is superseded by this branch.
Part of #112430.
Co-authored-by: Asish Kumar <officialasishkumar@gmail.com>
Follow-up to the salvaged #112861 hunk. The contributor's fix added a second
~45-line copy of the batch form JSX for the !ready preview state. Instead,
the ONE existing form now renders either the live qid-keyed questions or the
args-derived preview items, with every control disabled while !ready
(`data-clarify-batch-preview` marks the state); the spinner survives only
when there is nothing at all to show. Because inputs are disabled during the
preview, nothing is ever staged under a synthetic `args-N` qid, so the swap
to the gateway's qids is clean and `clarify.lock` always carries live ids.
Tests: kept the contributor's two invariants, tightened the second to drive
an answer after the preview→live swap and assert the locks are sent with the
request qids (q0/q1). Sabotage-run: both fail against origin/main's source.
Also maps the contributor email for release attribution.
Part of #112855.
Extends the salvaged #112860 entry (`workspace`) to the whole class: `plans` and
`home` are bootstrapped alongside `workspace` by `hermes_cli/profiles.py::_PROFILE_DIRS`
and listed as user data in `profile_distribution.py::USER_OWNED_EXCLUDE`, so a
`test_*`/`tmp_*` file inside any of them is a user's file, never scratch.
Trims the contributor's five tests to two invariants: the end-to-end
post_tool_call -> on_session_end path (workspace file survives, a root-level
`tmp_scratch.py` control is still removed) and the empty-dir sweep leaving a
directory under `workspace/` alone. Documents the protected trees in the plugin
README and the built-in-plugins page.
Dropped: test_workspace_project_tree_never_tracked, test_quick_keeps_workspace_test_file,
test_root_level_test_file_still_auto_deleted (folded into the E2E test as its control).
Part of #112859.
Settings -> Passwords & Logins dialed every vault RPC through
requestGatewayForProfile(scopeProfile): a bare profile name. gatewayForProfile
resolves a bare name equal to the primary profile onto the PRIMARY socket, so
with two connections both serving `default` the panel shown for "This device"
was answered by the other machine -- "Not detected" for a manager that is
installed locally, and vault.unlock/vault.add landing in the remote vault
(#94811, piskooooo's follow-up). The panel already keys itself by
(connectionId, profile); its RPCs now go through requestGatewayForAgent with
that same connectionId, which keeps a same-named non-primary connection on its
own pooled socket. A null connectionId (single-connection v1 route) still
takes the profile door, so single-source installs are unchanged.
Co-authored-by: Lorencato <lorencato23@gmail.com>
Follow-up to the salvaged #111796 commit:
- NO_PROXY matching goes through `agent.proxy_bypass.should_bypass_proxy` (the one
matcher the LLM transport and the gateway adapters already use), so CIDR ranges and
`*.host` patterns bypass the proxy for MCP servers exactly as they do for the model
endpoint. The stdlib `proxy_bypass` stays for the OS bypass list (Windows
ProxyOverride / macOS exceptions). Live probe: NO_PROXY=10.255.255.0/24 still routed
the MCP request through the proxy before this commit, direct after.
- Drop the try/except around `getproxies()` / `proxy_bypass()`: the stdlib guards its
own registry/sysconf reads and httpx calls the same functions unguarded.
- Trim the six contributor tests to two invariants (mount + NO_PROXY incl. CIDR; both
client builders carry mounts next to the body-cap transport). Fixture uses the stdlib
`getproxies_environment` / `proxy_bypass_environment` instead of a hand-rolled copy and
skips when the mcp SDK is absent.
- Docs: one sentence on the MCP page about proxy resolution for HTTP/SSE servers.
- contributors/emails mapping for the PR author.
Review finding: the Co-authored-by trailer on 2751fb7 uses stephan@users.noreply.github.com, which resolves to a different GitHub account; the pushed commit cannot be rewritten, so record the correct mapping via scripts/add_contributor.py and co-credit in the PR body.
Slim the salvaged #112111 mechanism (issue #112109) while keeping its
behaviour: the boot pass and the reconnect hook both run
_replay_pending_planned_restart_notification, which sends to every home
channel still owed an online notice, records delivered targets in
.restart_pending.json and unlinks the marker only when every owed target
(configured home with gateway_restart_notification=true) has been reached.
Dropped from the contributor diff:
- the per-target on_delivered checkpoint callback and pending_targets
field: delivered targets are written once after the pass. Residual is a
benign duplicate notice only if the process dies mid send-loop.
- getattr-based lazy lock -> class attribute default, same idiom as
run_profile_reconcile._reconcile_lock.
- _clear_planned_restart_notification in gateway/run.py: no production
caller remained; the roundtrip test unlinks the path directly.
- tests trimmed to two invariants: offline-at-boot is replayed once on
reconnect (with live-at-boot control), and partial delivery is persisted
so a fresh process does not re-notify and an opted-out home never keeps
the marker alive.
Live probe (temp HERMES_HOME, Discord home, adapter absent at boot then
reconnected): base consumed the marker with 0 sends; fixed head retains it
and sends the online notice exactly once on reconnect, then clears it.
Two defects in tools/async_delegation.py:
- _push_completion_event called _persist_completion unguarded before
publishing onto completion_queue. One sqlite3 error (locked/full
state.db) dropped the completion event, left the record parked on
"finalizing" (a permanently leaked max_concurrent_children slot) and
let recover_abandoned_delegations later rewrite a succeeded unit as
"unknown". The write is now try/except: the failure is logged and the
event is still delivered, so _finalize flips the status and frees the
slot. A lost durable row is acceptable degradation; a lost result and
a leaked slot are not.
- _prune_completed_locked treated anything != "running" as finished,
while the module's own _LIVE_STATES also names stalling/finalizing.
A stalling record has no completed_at, so it sorted oldest and was the
first eviction candidate once the retained cap overflowed; its late
runner return then hit the missing-record path and the real result was
dropped. The predicate is now `status not in _LIVE_STATES`.
Slim redo of #76606 (earliest fix) and #112031: the converge/shield/
delete-row machinery both PRs built around the write is dropped as
defense-in-depth; the two core hunks are ported as-is.
Fixes#76605Fixes#112030
Co-authored-by: luckystar2026 <1393268817@qq.com>
agent/kanban_stop.py::kanban_stop_nudge_enabled tested only HERMES_KANBAN_TASK,
which in-process delegate_task children (and cron runs fired inside a worker)
inherit from the worker's process environment. Those executions own no board
task and have the kanban toolset withheld, so the turn-end nudge ordered them to
call a tool they cannot reach — burning attempts, and in production driving
children to complete the parent's card through the CLI.
Gate on agent/delegation_context.py::is_dispatcher_owned_worker_context, the
predicate every other HERMES_KANBAN_* identity gate already uses. The real
worker and the HERMES_KANBAN_STOP_NUDGE opt-out are unchanged.
Salvaged from PR #84656 by @jerryhjones (re-applied onto the current facade
shape); the same gate was first proposed in PR #80023 by @webdevfrancisco
using the narrower delegated-child predicate.
Co-authored-by: webdevfrancisco <franciscombautista2015@gmail.com>
The salvage commit carries a Co-authored-by trailer for this non-noreply
address but no contributors/emails mapping existed, so release attribution
could not resolve it.