Commit Graph
1032 Commits
Author SHA1 Message Date
teknium1andAJ Fasano f85cd964e1 fix: bound auto-title timeouts to one window and name them in the log
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>
2026-09-17 08:50:52 -07:00
kshitijk4poor 934802ef5e chore: map cswrld-net for salvage of #112791 2026-09-17 21:18:37 +05:30
kshitijk4poor 21a4119a27 chore: map holny for salvage credit of #113643 2026-09-17 21:17:59 +05:30
kshitijk4poor 3d91d15784 chore: map sy0u1ti for salvage of #114024 2026-09-17 21:17:15 +05:30
teknium1 0fbfd33265 chore: map contributor email for lightcloud00
Non-noreply author email on the salvaged #85401 commit.
2026-09-17 08:45:08 -07:00
kshitijk4poor 4da4382ca0 chore: map schwinguin's commit email for #109497 salvage 2026-09-17 20:56:27 +05:30
kshitijk4poor 51d14f2b04 chore: map contributor email for #104781 salvage 2026-09-17 20:38:43 +05:30
kshitijk4poor c96987a519 chore(contributors): map KoNit-K for the bot-mode credential docs salvage (#114001) 2026-09-17 19:17:46 +05:30
teknium1 58a41bcc24 chore: map contributor email for neil771 2026-09-17 00:22:51 -07:00
teknium1 d62036acb8 test(desktop): e2e — pre-split hosted rooms stay reachable from the Desktop backend
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>
2026-09-17 00:15:35 -07:00
Jeffrey Quesnelle abc19b1349 Merge pull request #111002 from codeJRV/jibinv/improve-hermes-desktop-loading
perf(desktop): reduce Windows startup I/O and blocking checks
2026-09-17 00:32:12 -04:00
emozilla 5cd996385b chore: map contributor email for codeJRV 2026-09-16 23:29:44 -04:00
DaxLee9988 b1c91a1a97 chore: map contributor email for weishao0524@gmail.com 2026-09-16 17:22:39 -07:00
teknium1 08aa67e473 docs: state that HERMES_DEBUG_INTERRUPT=0/false/off keeps interrupt tracing off
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.
2026-09-16 17:21:14 -07:00
teknium1 182957de85 chore(desktop): bump shell to 0.17.4 for the localized Bot Mode roster
Bundled-plugin change; the shell version tells About whether the running
binary carries it (stale-shell triage for "still English" reports).
2026-09-16 17:13:41 -07:00
teknium1 e4c00097b4 fix(url_safety): trim the fake-ip salvage to the existing cache shape and two invariants
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).
2026-09-16 17:12:11 -07:00
teknium1 437d62b86d chore: map contributor email for hanamizuki (co-author credit on #112426 salvage) 2026-09-16 17:11:51 -07:00
teknium1 2679f47727 feat(desktop): pin a group chat to the top of the Bots roster
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.
2026-09-16 17:09:53 -07:00
teknium1andAsish Kumar 787b261ff8 fix(agent): trim the PermissionError guard salvage to two live tests
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>
2026-09-16 17:08:45 -07:00
teknium1 47ccd968bb refactor(desktop): render the batch clarify preview through the live form
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.
2026-09-16 17:07:42 -07:00
teknium1 ecc27b1ef3 chore: map contributor email for @ankinow 2026-09-16 17:05:08 -07:00
teknium1 ce71a85a9a chore: map hermes-pr@nousresearch.com to kyssta-exe 2026-09-16 17:03:47 -07:00
teknium1 493e0caced chore: map li-lizhe contributor email 2026-09-16 17:02:56 -07:00
teknium1 1604be1a37 chore: map contributor email for ryrenz 2026-09-16 17:02:02 -07:00
teknium1 2be78cfcc0 chore: map contributor email for sloik 2026-09-16 17:00:28 -07:00
teknium1 26bf9771e3 chore: map contributor email for salvage of #112993
Attribution mapping for the cherry-picked commit so contributor_audit
passes in strict mode.
2026-09-16 16:57:23 -07:00
teknium1 0631710ae4 fix(disk-cleanup): protect every per-profile user tree and trim tests to two invariants
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.
2026-09-16 16:54:19 -07:00
teknium1andLorencato 924e470030 fix(desktop): Passwords & Logins asks the connection it shows, not the primary
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>
2026-09-16 16:49:20 -07:00
teknium1 e583c95909 chore: map contributor email for bheji07 2026-09-16 16:44:13 -07:00
teknium1 1086cc691f chore: map actualrat1984 contributor email
The login-only noreply form lacks the id+login shape the attribution gate auto-resolves.
2026-09-16 14:23:20 -07:00
Teknium c89a1cbc11 chore: map contributor email for attribution check 2026-09-16 14:20:30 -07:00
Teknium 50520d8fd8 chore: map contributor email for attribution check 2026-09-16 14:20:00 -07:00
Teknium 547c3d49fc chore: map contributor email for attribution check 2026-09-16 14:19:07 -07:00
kshitijk4poor d6e64c4de5 chore: map 33hodl contributor email (#111861 salvage) 2026-09-16 21:15:09 +05:30
kshitij c6a9134ab1 chore: contributor mapping for djsanchezsuarez (#112598) 2026-09-16 16:04:27 +05:30
teknium1 1b2a75fa27 chore: map dmelkk-secondbrain contributor email 2026-09-15 19:28:32 -07:00
teknium1 ee1bfef857 fix(mcp): NO_PROXY for MCP servers uses the repo matcher; trim tests to two invariants
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.
2026-09-15 19:05:57 -07:00
teknium1 4b1215be2f fix: map MrMongstad's GitHub noreply email for contributor credit
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.
2026-09-15 19:02:39 -07:00
teknium1 fcd4778e1b fix(gateway): trim planned-restart notice replay to a single write-once marker pass
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.
2026-09-15 18:57:39 -07:00
Aurélien Gekiere 0b265ef4fc chore: map aurel282 contributor email 2026-09-15 18:55:19 -07:00
teknium1 88593f0f0d chore: map 0xmosta contributor email
Attribution for the cherry-picked boot-recovery focus-trap commit (#111857).
2026-09-15 18:52:15 -07:00
fangliquanflq 27e3fc51ff fix(tools): keep async delegation results past a failed durable write and never prune live records
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 #76605
Fixes #112030
Co-authored-by: luckystar2026 <1393268817@qq.com>
2026-09-15 18:43:56 -07:00
teknium1 4432bccea8 chore(contributors): map co-author emails for TheNeuralVault and gongyi
Required by scripts/contributor_audit.py --strict for the Co-authored-by
trailers crediting #65182 and #57459 on the daemon-pool 3.14 fix.
2026-09-15 18:41:46 -07:00
jerryhjonesandwebdevfrancisco 2bd0f1c59e fix(kanban): scope the stop nudge to the dispatcher-owned worker
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>
2026-09-15 18:41:19 -07:00
teknium1 fa28f43285 fix(contributors): map dresvyanskiydenis@gmail.com to DresvyanskiyDenis
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.
2026-09-15 18:40:52 -07:00
teknium1 40b47b84e7 chore(contributors): map Cr4ckMe email for the #20151 co-author credit 2026-09-15 18:39:09 -07:00
teknium1 e47b14f960 chore(contributors): map wangtaotaotao95 author email 2026-09-15 18:28:03 -07:00
teknium1 a1cbed3592 chore: map atmaksri co-author email for contributor audit
Co-authored-by trailer in the STT salvage uses a non-noreply address.
2026-09-15 18:25:17 -07:00
teknium1 c294e945ea chore: map contributor email for salvaged #103067 2026-09-15 11:50:48 -07:00
kshitijk4poor 4a2927d6d4 chore(contributors): map hcnimi for the #109314 salvage 2026-09-15 21:57:59 +05:30