Commit Graph

818 Commits

Author SHA1 Message Date
kshitijk4poor dd1d7475ca chore(contributors): map Collin.Snitchler@pm.me -> ColDSnit (PR #93869 salvage) 2026-09-06 14:47:11 +05:30
kshitijk4poor e3b6e40501 chore(contributors): map bounce12340 for the #102496 salvage 2026-09-06 14:37:30 +05:30
kshitijk4poor a483d7742f chore: map ruichenzhou@outlook.com to @Zhou-Ruichen (#77933 salvage) 2026-09-06 13:32:51 +05:30
kshitijk4poor 5284057770 chore: map contributor email for salvaged #101678 (StanleyStetson) 2026-09-05 20:44:51 +05:30
kshitijk4poor 935e10c20e chore: map contributor email for salvaged #44753 (dredozubov) 2026-09-05 19:06:57 +05:30
kshitijk4poor a2ff25a8b1 chore: map contributor email for salvaged #97265 (Liuzikaii) 2026-09-05 18:46:53 +05:30
kshitijk4poor 2a93bdaeba chore: map contributor email for salvaged #72429 (JonthanaHanh) 2026-09-05 18:46:16 +05:30
kshitijk4poor 41b88ba68a chore: map contributor email for salvaged #62023 (sagitario-jpn) 2026-09-05 18:32:44 +05:30
kshitijk4poor 67c9d507ab chore: map contributor email for salvaged #100256 (davidkarban) 2026-09-05 18:19:58 +05:30
kshitijk4poor fc6b311c58 chore: map contributor email for salvaged #102332 (Sahilvishnaliya) 2026-09-05 18:05:15 +05:30
kshitijk4poor a166dd7b80 chore: map contributor email for @mcpeezy (#96622 salvage) 2026-09-05 16:45:06 +05:30
kshitijk4poor d77a62e840 chore: map contributor emails for salvaged #102948 (thinkingsheep) 2026-09-05 16:30:35 +05:30
kshitijk4poor ada61bfa77 chore: map contributor email for salvaged #68506 (tokou) 2026-09-05 16:09:46 +05:30
kshitijk4poor 9835b2fd69 chore: map contributor email for salvaged #41071 (pprism13) 2026-09-05 15:54:34 +05:30
Teknium f58fcc8118 chore: map contributor email for salvaged #92934 (bluefateludi) 2026-09-05 00:24:40 -07:00
Austin Pickett 79445a496c fix(desktop): macOS parent-death watchdog treats ps: marker drift as inconclusive (#103172)
* fix(desktop): treat a macOS ps: parent-marker mismatch as inconclusive, not death

`ps -o lstart=` is a TZ/locale-rendered wall-clock string. Electron caches it
once per app lifetime; the backend re-renders it per spawn. A timezone change
(travel, or the DST boundary) while the app stays open makes the SAME instant
differ byte-for-byte, and _is_serve_orphaned() treated that as proof the parent
died -- os._exit(0) ~5ms after HERMES_BACKEND_READY, silently, on every respawn
until a full quit.

Route mismatches through _parent_start_marker_mismatch_is_conclusive(): linux:/
win:/winms: machine markers stay conclusive (PID-reuse defence intact); any ps:
side degrades to the PID-liveness check the legacy Desktop path already uses.
Log one warning before os._exit(0) so the exit is no longer traceless.

Fixes #95693
Fixes #93958

Co-authored-by: Ahmett101 <Ahmett101@users.noreply.github.com>

* fix(desktop): reject truncated ps: parent markers; blank marker env means absent

A ps: marker that got whitespace-split in env plumbing (`ps:Sat`) passed
_valid_parent_start_marker and armed a watchdog that could never match, so
the backend exited 0 right after HERMES_BACKEND_READY. Require a full
lstart value (>=4 tokens, a 4-digit year, a time). Treat empty
HERMES_PARENT_START_MARKER / HERMES_PARENT_NONCE as absent so a blank
inherited value degrades to PID-only tracking instead of disarming or
misfiring.

* chore: map contributor email for drewTuzson

* fix(desktop): log when the parent-death watchdog disarms on an unusable marker

Disarming is the fail-safe branch (the backend keeps serving) but it also
means this backend will never reap itself when the Desktop dies. Leave one
warning naming the rejected marker so that downgrade is not traceless.

* test(desktop): live macOS proof that a TZ-drifted ps: marker no longer kills the backend

Runs the real start_server in a subprocess against the host ps, with the
marker rendered under Europe/Paris and the backend under America/New_York.
Asserts READY + still alive after several watchdog polls, then that the
backend still exits once the stand-in parent is killed. Fails on main with
the reported symptom (exit 0, live parent); macos_only lane.

---------

Co-authored-by: ygd58 <buraysandro9@gmail.com>
Co-authored-by: Ahmett101 <Ahmett101@users.noreply.github.com>
Co-authored-by: Drew Tuzson <drew.tuzson@uqual.com>
2026-09-04 20:24:51 -04:00
Teknium 0b96eaf06b chore(contributors): map sosxradar@gmail.com -> GTHell 2026-09-03 00:58:16 -07:00
Teknium fa53e4fedd chore(contributors): map csreyes92@gmail.com -> csreyes (salvage #93073) 2026-09-03 00:57:55 -07:00
kshitijk4poor db40b2c67d chore: add EmanueleCornaggia to contributor map (#101778 salvage) 2026-09-03 12:38:46 +05:30
kshitijk4poor f39b749c4b chore: map contributor email for @slash1andy 2026-09-03 11:35:13 +05:30
kshitijk4poor 5684f56a5b chore: map JLHunzicker@gmail.com -> JackHunzicker (PR #98371 salvage) 2026-09-03 11:27:55 +05:30
Benjamin PERRY 06d7b77b1c fix(state): block repair on deleted SQLite holders
Move live-holder inspection into a bounded helper and make repair fail closed when a process still owns the state database, including deleted WAL/SHM descriptors and ambiguous procfs reads.

Preserve the contributor lineage from the original four-commit review train while presenting one coherent release object on current main.

Co-authored-by: fangliquanflq <fangliquan@qq.com>
Co-authored-by: ciabata <296402666+ciabata-git@users.noreply.github.com>
2026-09-03 03:50:43 +05:30
kshitijk4poor def0b23bd2 chore: add contributor mapping for SelfParody (PR #19000 salvage) 2026-09-03 03:16:04 +05:30
kshitijk4poor bde98cec17 chore: add contributor mapping for agentdynamic (PR #92413 salvage) 2026-09-03 03:15:35 +05:30
kshitijk4poor 6d28eca27a chore: add contributor mapping for EdderTalmor (PR #10110 salvage) 2026-09-03 03:15:31 +05:30
kshitijk4poor 5209f6fa5d chore: map contributor email for @yaojiejia
Needed before cherry-picking #95160 so contributor attribution stays
green on every commit of the salvage.
2026-09-03 02:27:52 +05:30
kshitijk4poor bf24dd7ed6 chore: add pierrenode to contributor email map for #84168 salvage 2026-09-03 02:17:01 +05:30
kshitijk4poor 9f35f9b817 chore: map contributor emails for Fatmylin and Christopher-Schulze
Needed by the check-attribution gate before salvaging #95964 and #85806.
2026-09-03 01:31:17 +05:30
Teknium 30b83ab7b1 chore: map contributor email for RobbertC5 2026-09-02 12:34:26 -07:00
Teknium e1d773a6a6 chore: map contributor email for @globalvet2025 2026-09-02 10:55:46 -07:00
Teknium 5c85f9de2d chore: map contributor email for @olopez25 2026-09-02 10:22:30 -07:00
Teknium 2e25b47210 chore: map contributor email for #80825 salvage 2026-09-02 07:01:23 -07:00
Teknium bd81bf0327 chore(contributors): map tky.juani@gmail.com -> JuaniLezcano 2026-09-02 07:00:13 -07:00
Teknium ad8b9e04c8 chore(contributors): map gobeumsu@gmail.com -> GoBeromsu 2026-09-02 06:59:11 -07:00
Teknium 8ecf19b328 chore: map contributor deathxdefeat@users.noreply.github.com -> @deathxdefeat 2026-09-02 06:53:20 -07:00
Teknium 638c1f3204 chore(contributors): map patryk.kopycinski@elastic.co -> patrykkopycinski 2026-09-02 06:19:03 -07:00
Teknium 70dc1606c6 test(cli): pin OSC 9 / Warp OSC 777 bell emitters; docs + contributor mappings
- tests/hermes_cli/test_terminal_notify.py: OSC 9 body emitted+sanitized
  only when bell flag on; Warp payload only under a supported Warp build.
- configuration.md display section: document the notification behavior
  of bell_on_prompt / bell_on_complete.
- contributors/emails: glitchbunny0 (#58957), harshmoney123 (#100805).
2026-09-02 06:17:10 -07:00
Teknium e9dd0bf5d5 feat(desktop): polish bot roster sections — dialog rename, Undo delete, Esc-cancel drag, nested under gateways (salvage #100745)
Follow-up on @fortun8te's user-made roster sections:

- Sections start empty: no seeded General/Workforce/Clients. With no
  sections created the roster renders exactly as before.
- New section and Rename go through one Dialog + Input + Cancel/Save
  (the app's session-rename shape) instead of an inline caret; the row
  menu's "New section…" files the bot as it creates.
- Delete needs no confirmation: bots return to Unassigned and the toast
  offers Undo (restores the section in its slot and refiles its bots).
- Drag: single-row drag under a private MIME type, every valid target
  shows a faint outline while a drag is live, the hovered target lights
  up, the source section refuses the drop, Escape cancels, and the moved
  row no longer stays faded after it remounts under its new section.
- Multi-select (cmd/shift-click, querySelectorAll shift-range) dropped:
  the roster has no selection model. Per-bot saveBotMeta writes run in
  sequence, one per profile (membership IS a field on each profile).
- Section heading reuses RosterSectionHeader (gains `action` /
  `onDoubleClick`), so user sections fold and look like the gateway
  headings; ⋯ menu and right-click drive the same Rename / Move up /
  Move down / Delete. Empty sections show a dashed "Drag bots here" slot.
- Composes with gateway buckets: sections nest INSIDE each connection
  bucket, indented under a hairline rail (membership lives in the bot's
  profile on that gateway); empty sections repeat there only mid-drag.
- Full i18n parity (en / ja / zh / zh-hant) for every new string; icon
  toggle and the storage-async plumbing removed.
- Tests trimmed to the three invariants (membership persists through
  saveBotMeta + reload, remainder = Unassigned, delete returns bots +
  undo) plus a live Electron e2e covering the whole flow.
- Docs: "Organize bots into sections" in user-guide/bot-mode.md.
2026-09-02 06:06:32 -07:00
Teknium bb7838c57c chore: map contributor crdesign8@hotmail.com -> @crdesign8 2026-09-02 05:59:24 -07:00
Teknium 3292fbcc97 chore: map praxis1244-consulting contributor email 2026-09-02 05:37:05 -07:00
Teknium 4a7f228e2c chore: map contributor email for muhifni (#99225 salvage) 2026-09-02 05:34:28 -07:00
Teknium 2e25d179cb chore(contributors): map ifastcc email (PR #34308 co-author) 2026-09-02 05:33:13 -07:00
Teknium ab1f81ce04 chore(contributors): map umit.ediz@hotmail.com -> Edizzier 2026-09-02 05:32:20 -07:00
itsflownium ae63db2304 chore: map contributor email 2026-09-02 05:32:01 -07:00
leomcamilo d8616f1c88 chore: map contributor email for leocamilo@me.com 2026-09-02 16:57:21 +05:30
Teknium 45b0d8cab5 feat(gateway): one gateway.trust_env key controls aiohttp proxy-env honoring at every adapter site (#48820 bug 3)
Every gateway/plugin platform adapter hard-coded aiohttp.ClientSession(trust_env=True)
(~20 sites), so a gateway launched by a Windows Scheduled Task that inherits a stale
HTTP_PROXY (Clash/V2Ray on 127.0.0.1:7890) looped on 'Cannot connect to host' with no
way to opt out short of NO_PROXY hacks per vendor host.

- gateway/platforms/base.py: gateway_trust_env() reads gateway.trust_env (default true);
  resolve_proxy_url() skips generic HTTP(S)_PROXY/ALL_PROXY + macOS system-proxy
  auto-detect when false (explicit per-platform vars still win).
- All aiohttp ClientSession sites in weixin, qqbot, matrix, line, wecom, slack, sms,
  teams, google_chat now pass trust_env=gateway_trust_env(); mattermost + homeassistant
  bare sessions gain the same kwarg (intent of #70119 / #56229).
- DEFAULT_CONFIG + cli-config.yaml.example + messaging docs.
- tests/gateway/test_gateway_trust_env.py: config flip + no-bare-literal sweep.

Reported-by: @ranlingfeng (#48820), @frontnopipe-cloud (#76309)
Co-authored-by: rcarrata <rcarratalasanchez@gmail.com>
Co-authored-by: Backroads4Me <TEDLANHAM@GMAIL.COM>
2026-09-02 04:13:02 -07:00
kshitijk4poor d96b180eda chore: map contact@danteschrauwen.be -> deinte (PR #101090 salvage) 2026-09-02 15:13:46 +05:30
Teknium 2b7132c8e5 chore: map contributor email for salvaged #100493 2026-09-02 00:42:53 -07:00
Teknium c345d81787 chore: map vibecoder@example.com -> @zoser69 for salvaged #78111 attribution 2026-09-02 00:07:15 -07:00
Teknium fc01045ccf chore: map contributor email for #100234 salvage 2026-09-02 00:04:13 -07:00