Commit Graph

551 Commits

Author SHA1 Message Date
ekko 4c3f025b8f skip production data dir creation (#1164) 2026-05-30 20:29:04 +08:00
ekko fc35c74eb3 fix node npm detection (#1163) 2026-05-30 20:19:01 +08:00
sir1st dcbf601e35 fix linux desktop packaging paths (#1162)
Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
2026-05-30 20:14:24 +08:00
sir1st 46bd7d0420 relax desktop release artifact harness check (#1161)
Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
2026-05-30 19:49:08 +08:00
sir1st 877bb16bc8 Skip macOS signing when certificates are absent (#1160)
Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
2026-05-30 18:59:49 +08:00
sir1st 6da5cd605a Add repository harness for coding agents (#1157)
Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
2026-05-30 18:57:22 +08:00
sir1st ce04b10eee Fix Windows bundled Hermes CLI launcher (#1159)
* Fix Windows bundled Hermes CLI launcher

* Update kanban service tests for Hermes process wrapper

---------

Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
2026-05-30 18:57:04 +08:00
ekko 046c8d4f8f Fix desktop release artifact uploads (#1158)
* chore: bump version to 0.6.6

* fix desktop release artifact metadata globs
2026-05-30 17:35:41 +08:00
sir1st 7f944a4905 Fix desktop release artifact globs (#1155)
Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
2026-05-30 16:35:50 +08:00
sir1st 12e0b5ebed fix(server): raise body parser limit so avatar upload doesn't 413 (#1149)
Profile avatars are sent to /profiles/:name/avatar as base64 image data
URLs in a JSON body. The handler allows up to 1MB of raw image data,
which is ~1.37MB once base64-encoded — larger than @koa/bodyparser's
default 1mb jsonLimit, so uploads were rejected with HTTP 413 before
reaching the handler.

Set jsonLimit/textLimit to 4mb, leaving the handler's own 1MB raw-size
check as the authoritative limit (now returning a clear 400 instead of
a confusing 413).

Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
2026-05-30 16:32:46 +08:00
sir1st eea1d1decd fix(auth): use path.dirname for credential dir on Windows (#1148)
Provider auth controllers derived the credential directory with
`authPath.substring(0, authPath.lastIndexOf('/'))`. On Windows paths use
backslashes, so `lastIndexOf('/')` returns -1 and the slice yields an
empty string, making `mkdirSync('')` throw
`ENOENT: no such file or directory, mkdir ''` during OAuth login.

Replace the manual slicing with the cross-platform `path.dirname()` in
codex-auth (auth.json + codex CLI token paths), xai-auth, and nous-auth.

Fixes Codex/xAI/Nous login on Windows.

Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
2026-05-30 16:31:00 +08:00
ekko f7991572af fix desktop preload build and rename app (#1150)
* fix desktop preload fetch typing

* rename desktop app to Hermes Studio

* rename desktop package to Hermes Studio

* update Hermes Studio desktop icons

* configure desktop signing and app id

* force desktop api calls to local server

* isolate desktop agent bridge ports

* bundle MCP support in desktop Python

* change desktop default port to 8748

* restore webui production port copy
2026-05-30 15:59:52 +08:00
sir1st cbae8e8c3f Add desktop (Electron) packaging and release distribution (#1147)
* Add desktop packaging workflow

* Add desktop package homepage

* Fix desktop default credential prompt

* Suppress default credential prompt on desktop

* Publish desktop artifacts on release; reduce CI to PR smoke test

Add desktop-release.yml triggered on release publish (mirroring
docker-publish.yml) to build all platforms and upload .dmg/.exe/
.AppImage/.deb to the GitHub Release.

Trim build.yml desktop job to a PR-only Linux x64 smoke test, since
release artifacts are now produced by desktop-release.yml. This drops
per-push and macOS/Windows packaging from regular CI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Fix desktop Hermes data home on Windows

---------

Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 14:20:04 +08:00
paulocavallari cb410e5007 fix(bridge): preserve text/tool-call ordering to stop split narration (#1145)
When the model interleaves narration text with tool calls within one
turn ("text → tool → more text"), the assistant text was rendered split
across the tool boundary — a word could be cut in half, e.g. the part
before the tool call ending mid-word and the remainder appearing after
the tool card.

Root cause: the agent bridge (`hermes_bridge.py`) accumulated streamed
text in `RunRecord.deltas` and tool/lifecycle events in
`RunRecord.events` as two parallel lists with no relative ordering. On
poll, the aggregated text (`"".join(deltas)`) and the events were
delivered separately, and the Node consumer (`handle-bridge-run.ts`)
processed all `chunk.events` (including `tool.started`) before the
aggregated `chunk.delta`. The real interleaving of text and tool calls
was therefore lost, splitting the text around the tool boundary.

Fix:
- Bridge: `stream_callback` now also appends each text chunk as an
  ordered `stream.delta` event into the same `events` list as
  tool.started/tool.completed, preserving true interleaving. `deltas`
  is still kept for the aggregated `output`/resume snapshot.
- Node: process `stream.delta` events inline within the events loop (in
  true order), and skip the aggregated `chunk.delta` when ordered
  `stream.delta` events were present for that chunk (avoids duplicate
  text). Text-delta handling was extracted into `processBridgeTextDelta`
  and reused by both paths.

Verified end-to-end: narration that calls a tool mid-sentence now
streams and persists as coherent text in the exact order produced, with
no word split across the tool boundary.

Co-authored-by: Paulo Cavallari <paulocavallari@users.noreply.github.com>
2026-05-30 11:49:50 +08:00
ekko 818e7f751f fix chat scroll jitter (#1146) 2026-05-30 11:46:32 +08:00
ekko b015e70b9d [codex] fix MCP management lifecycle (#1144)
* feat(mcp): add MCP server management UI

- Server CRUD: add/edit/remove with YAML/JSON Monaco editor
- raw_config passthrough: zero field loss on edit/toggle
- tool_details embedding: single-request card data (1+N → 1)
- Auto-retry exponential backoff (2s→32s, max 5 retries)
- Route safety guards (hasRoute) for dynamic sidebar
- i18n: 9 languages (de/en/es/fr/ja/ko/pt/zh/zh-TW)
- 19 unit tests + 8 UX browser tests
- 35 files, +2933 lines

* fix mcp management lifecycle

---------

Co-authored-by: Crafter-feng <succeed_happu@163.com>
2026-05-30 11:06:08 +08:00
ekko 675ddb8282 fix profile runtime status loading (#1142) 2026-05-30 09:17:37 +08:00
ekko a1f06b8a42 fix virtual list empty state centering (#1141) 2026-05-30 08:53:06 +08:00
ekko e988ce62f2 remove setup script docs (#1140) 2026-05-30 08:49:15 +08:00
ekko 9643a083d6 fix bridge mcp tool discovery (#1139) 2026-05-30 08:37:02 +08:00
Zhicheng Han 50159060c8 Revert "add merge permission test log (#1131)" (#1132)
This reverts commit 91869ea907.
2026-05-29 16:47:40 +02:00
ekko 91869ea907 add merge permission test log (#1131)
Test console merge.
2026-05-29 16:44:43 +02:00
ekko b5b7d55958 [codex] update coding agents i18n and changelog (#1129)
* update coding agents i18n and changelog

* move virtual scroller to dev dependencies
v0.6.5
2026-05-29 21:07:00 +08:00
ekko e3359c671c [codex] 修复 Windows Coding Agents 安装状态检测 (#1126)
* fix windows coding agent status detection

* fix windows coding agents detection and terminal launch

- Fix Claude Code status detection on Windows by prioritizing .cmd files over unix-style scripts when using 'where' command
- Fix command execution logic for .cmd/.bat files to use proper cmd.exe quoting instead of complex cmdQuote function
- Fix native terminal launch on Windows by properly escaping shellCommand in PowerShell Start-Process instead of using empty $args[0]

These changes resolve issues where Claude Code was incorrectly detected as uninstalled on Windows and native terminal launch failed with PowerShell argument errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix claude code custom model launch

* fix windows filename sanitization for coding agent config paths

- Replace invalid filename characters (< > : " / \ | ? *) with underscores in provider/profile names
- Prevents ENOENT errors when provider names contain Windows-invalid characters like colons
- Fixes issue where 'custom:glm-coding-plan' provider would fail to create config directory on Windows

This change ensures that coding agent configuration paths are valid on all platforms while preserving the semantic meaning of provider names.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* remove stale planning docs

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 20:26:02 +08:00
ekko 9838173365 fix builtin provider flags (#1125) 2026-05-29 19:18:40 +08:00
ekko 285f623d6f [codex] 修复 Coding Agents 的 Codex 启动和代理隔离 (#1123)
* feat: add coding agent install status

* chore: add latest claude opus model preset

* feat: add coding agent config editing

* Add scoped coding agent launch proxy

* Add Codex proxy plan

* fix coding agents codex launch proxy

* fix codex catalog context test

---------

Co-authored-by: Codex <codex@openai.com>
2026-05-29 19:06:54 +08:00
ekko 717f577380 fix group chat agent mentions (#1111) 2026-05-29 09:02:38 +08:00
sir1st 1373b4746b feat(version-check): add HERMES_WEB_UI_DISABLE_UPDATE_CHECK env var (#1105)
Adds an opt-in environment variable to suppress the npm-registry update
check. When set, three things change:

1. checkLatestVersion() returns immediately (no outbound fetch)
2. startVersionCheck() does not arm the 30-minute interval
3. /api/health returns webui_latest='' and webui_update_available=false

Use case: hermes-web-ui is bundled inside a packaged distribution like
a desktop app where the user cannot `npm install -g hermes-web-ui@latest`
to apply an upgrade. The 'update available' prompt is then misleading
(the user would have to wait for the wrapper app to ship a new release),
and the recurring HTTPS call to the npm registry is unnecessary noise.

Set HERMES_WEB_UI_DISABLE_UPDATE_CHECK=true | 1 | on | yes to disable.
The default behavior is unchanged.

Discussed in #1091 — proposed by @EKKOLearnAI.
2026-05-28 22:36:07 +08:00
ekko 14466dfc9f make bridge worker transport configurable (#1106) 2026-05-28 22:33:33 +08:00
ekko 74d0c3509b [codex] try vue virtual scroller for messages (#1103)
* try vue virtual scroller for messages

* hide inactive virtual scroller rows
2026-05-28 21:59:55 +08:00
GoldenFishX 5f5c5faa25 fix(tts): require authentication for TTS endpoints (#1101)
Move TTS routes behind auth middleware and attach JWT to local
proxy requests from the frontend. Previously both /api/hermes/tts
and /api/tts/proxy/audio/speech were publicly accessible without
authentication, allowing unauthenticated callers to consume Edge
TTS resources through the server.

Changes:
- server: move ttsRoutes from public to protected route section
- client: auto-attach JWT when baseUrl is a local path (/...)
  and no external API key is configured
- client: import getApiKey() instead of raw localStorage access
2026-05-28 21:46:31 +08:00
ekko e89c192488 fix session bottom scroll alignment (#1100) 2026-05-28 21:12:01 +08:00
ekko 932c913d63 page history session messages (#1099) 2026-05-28 19:47:24 +08:00
ekko 9d2e82cd06 fix virtual message list scrolling (#1089)
Co-authored-by: Codex <codex@openai.com>
2026-05-28 15:22:18 +08:00
ekko d610c3d1b9 fix preview runtime isolation and shutdown (#1088) v0.6.4 2026-05-28 13:50:52 +08:00
ekko 1734bac9b4 [codex] add version preview workflow (#1086)
* add version preview workflow

* fix sidebar group test

* fix legacy usage schema migration
2026-05-28 12:30:49 +08:00
ekko 7997bfa2b7 [codex] Run Docker publish only on releases (#1081)
* Run Docker publish only on releases

* Allow manual Docker publish workflow
2026-05-28 09:46:37 +08:00
ekko a6b3bec29b Add virtualized chat pagination (#1080) 2026-05-28 09:34:30 +08:00
Zhicheng Han 21bb8385f2 ci: harden P0 workflow checks (#1077) 2026-05-28 08:26:02 +08:00
ekko 6a9cb2450a docs: update 0.6.3 changelog (#1060)
* update 0.6.3 changelog

* bump package version to 0.6.3
v0.6.3
2026-05-27 12:21:37 +08:00
ekko a43ead594e fix bridge surrogate json encoding (#1059) 2026-05-27 11:44:04 +08:00
daqiege 1ec9568502 feat(dingtalk): add AI card template ID input (#1056)
Adds an input field for the DingTalk AI Card template ID under
Platform Settings, plus the matching DINGTALK_CARD_TEMPLATE_ID
env mapping so the value is persisted to the active profile and
forwarded to the hermes agent (which already supports AI Cards
via extra.card_template_id).

Closes #1035
2026-05-27 11:32:26 +08:00
GoldenFishX 6647dc9bc8 fix(auth): remove username leak from public /api/auth/status endpoint (#1055)
The authStatus() controller previously returned the first users
username to unauthenticated clients. The frontend never used this
value — `fetchAuthStatus()` in LoginView.vue discards the return
value entirely. Remove the field to prevent username enumeration.

Changes:
- server: drop `username` from authStatus response body
- server: remove unused `findFirstUser` import
- client: remove `username` from AuthStatus interface
2026-05-27 11:25:29 +08:00
ekko eca06faaa0 add web ui openrouter attribution (#1057) 2026-05-27 11:21:12 +08:00
ekko 07c4c1ddd5 fix provider base URL env handling (#1054) 2026-05-27 10:41:29 +08:00
ekko a10e171082 Add history import controls (#1053) 2026-05-27 10:05:52 +08:00
GoldenFishX 3cede6fb7f fix(bridge): block thinking spinner kaomoji from contaminating conversation history (#1051)
The hermes-agent CLI KawaiiSpinner sends decorative kaomoji text
like "(◕‿◕✿) pondering..." through thinking_callback for its TUI
widget.  The bridge forwarded this as thinking.delta events, which
the frontend stored in the message reasoning field.

Over long conversations this contaminated the model's context:
_copy_reasoning_content_for_api promoted the kaomoji text to
reasoning_content, causing the LLM to reproduce kaomoji patterns
in a self-reinforcing degradation loop.

Fix: _make_thinking_callback unconditionally sends empty text.
thinking_callback is purely CLI spinner status — it has no place in
conversation history.  Actual model reasoning (reasoning.delta) is
unaffected.
2026-05-27 09:42:04 +08:00
ekko 42f7b64ffb update changelog and context default (#1045) v0.6.2 2026-05-26 19:35:48 +08:00
ekko 82680f5c0b fix clarify replay and compression timeout (#1044) 2026-05-26 19:15:22 +08:00
ekko e926a8e2fb fix chat queue promotion (#1042) 2026-05-26 17:39:38 +08:00