Commit graph

5704 commits

Author SHA1 Message Date
nesquena-hermes
359eae93de test: de-flake test_skills_stats_cache mtime race
test_skills_stats_cache asserted that adding a skill bumps the skills-dir
mtime so the cheap per-call probe recomputes counts on the next call. Two
_write_skill() calls inside the same coarse filesystem mtime tick could leave
the skills-dir mtime byte-identical to the cached probe value, so the probe
saw no change and served the stale count of 1 (assert enabled==2 failed). This
is an order-dependent flake: passes in isolation, fails intermittently under
full-suite ordering (observed across multiple unrelated PRs).

Force the skills-dir mtime strictly forward after the second write so the
probe is guaranteed to detect a genuine mtime change. The assertion stays
honest (it still proves recompute-on-mtime-change); only the race is removed.
2026-06-29 06:07:44 +00:00
nesquena-hermes
1ae168aa20
Merge pull request #5193 — 5-shard CI split + test-isolation fixes
ci: run tests across 5 shards (up from 3) + fix 2 latent test-isolation leaks
2026-06-28 22:58:08 -07:00
nesquena-hermes
72f7530c45 ci: run tests across 5 shards (up from 3) + fix 2 latent test-isolation leaks
Two cross-file isolation leaks that a finer shard partition exposes are fixed at
root so every shard passes regardless of execution order:
- test_auth_session_persistence.py: bind api.auth STATE_DIR/_SESSIONS_FILE/
  _LOGIN_ATTEMPTS_FILE in setUp + restore in tearDown (was relying on a sibling
  reload test to rebind them).
- test_request_diagnostics_cache.py: pin the session-list cache source stamp via
  an autouse fixture (matches test_session_sidebar_cache.py) so a leaked state.db
  WAL sidecar can't cause a spurious cache-miss.

Verified all shards green under 3-, 4-, and 5-way partitions. CI infra + test
harness only; no application behavior change.
2026-06-29 05:55:16 +00:00
nesquena-hermes
f2ffeacc64
Merge pull request #5192 — runtime-journal anchor-scene parity test (#5183, @franksong2702)
Release v0.51.740 — runtime-journal anchor-scene parity test (#5183, @franksong2702)
2026-06-28 22:40:45 -07:00
nesquena-hermes
744b6480cf docs(changelog): runtime-journal anchor-scene parity regression test (#5183) 2026-06-29 05:37:02 +00:00
Frank Song
058372c15f Preserve empty anchor tool args in parity helper
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-29 05:35:03 +00:00
Frank Song
e670320337 Tighten anchor runtime journal parity test
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-29 05:35:03 +00:00
Frank Song
e1bf1122a7 Test anchor runtime journal parity 2026-06-29 05:35:03 +00:00
nesquena-hermes
537ff28ae0
Merge pull request #5191 — session-backed HTML/PDF media previews (#5157, @santastabber)
Release v0.51.739 — session-backed HTML/PDF media previews (#5157, @santastabber)
2026-06-28 22:22:36 -07:00
nesquena-hermes
2d71598f16 docs(changelog): authorize session-backed HTML/PDF media previews (#5157) 2026-06-29 05:18:53 +00:00
santastabber
178db13512 fix: authorize session html media artifacts 2026-06-29 05:17:33 +00:00
nesquena-hermes
d9c4bc6d76
Merge pull request #5190 — Workspace Todos render parity (#5103, @Stacey2911)
Release v0.51.738 — Workspace Todos render parity (#5103, @Stacey2911)
2026-06-28 22:16:45 -07:00
nesquena-hermes
c998a316ed docs(changelog): align Workspace Todos rendering with sidebar (#5103) 2026-06-29 05:13:02 +00:00
justanotherAIcontributor
99555d592c Update static/ui.js
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-06-29 04:44:16 +00:00
Stacey2911
dd658d7a04 fix(workspace): align Workspace Todos rendering with sidebar 2026-06-29 04:44:16 +00:00
nesquena-hermes
b01ff5a9b5
Merge pull request #5188 — resolve git under macOS launchd (#5184, @rodboev)
Release v0.51.737 — resolve git under macOS launchd (#5184, @rodboev)
2026-06-28 21:39:59 -07:00
nesquena-hermes
c59be15206 docs(changelog): resolve git under macOS launchd (#5184, #5175) 2026-06-29 04:36:10 +00:00
Rod Boev
a98b0551c9 test(updates): keep launchd regression proofs faithful (#5175) 2026-06-29 04:22:51 +00:00
Rod Boev
a052f390f8 fix(updates): resolve git under macOS launchd (#5175) 2026-06-29 04:22:51 +00:00
nesquena-hermes
c35835d8ba
Merge pull request #5187 — settings-search + Windows test.sh (#5163, #5166, @rodboev)
Release v0.51.736 — settings-search coverage (#5163) + Windows test.sh (#5166)
2026-06-28 21:20:27 -07:00
nesquena-hermes
793b4eef8c docs(changelog): settings-search coverage (#5163) + Windows venv test.sh (#5166) 2026-06-29 04:16:57 +00:00
nesquena-hermes
fae5c45395 Merge #5163 into stage/p1a 2026-06-29 04:07:21 +00:00
nesquena-hermes
65b27886d0 Merge #5166 into stage/p1a 2026-06-29 04:07:21 +00:00
nesquena-hermes
13fbe621ae
Merge pull request #5186 — restart gateway after in-app agent update (#5181, @rodboev)
Release v0.51.735 — restart gateway after in-app agent update (#5181, @rodboev)
2026-06-28 20:58:26 -07:00
nesquena-hermes
9e642b1331 docs(changelog): restart gateway after in-app agent update (#5181, #5156) 2026-06-29 03:53:48 +00:00
Rod Boev
9d3f26a718 refactor(updates): drop unreachable agent restart fallback branch (#5156) 2026-06-29 03:44:06 +00:00
Rod Boev
31a443ff88 fix(health): preserve restart failure contract and proofs (#5156) 2026-06-29 03:44:06 +00:00
Rod Boev
8b22c20061 fix(tests): tighten stash reset proof for agent update (#5156) 2026-06-29 03:44:06 +00:00
Rod Boev
6d80dd41d6 fix(updates): restart gateway after in-app agent update (#5156) 2026-06-29 03:44:06 +00:00
nesquena-hermes
8729dbbff7
Merge pull request #5182 from nesquena/fix/4657-fit-engine-rebased
feat(composer): fit footer controls by overflow (#4657)
2026-06-28 19:27:37 -07:00
nesquena-hermes
16e280804b
Merge branch 'master' into fix/4657-fit-engine-rebased 2026-06-28 19:24:13 -07:00
nesquena-hermes
59a272ecde
Merge pull request #5180 from nesquena/fix/5169-combined
fix(profiles): show active profile workspace on blank new-chat (#5169)
2026-06-28 19:21:48 -07:00
nesquena-hermes
ca06796764 fix(i18n): restore default-off quota-chip copy (Codex gate #4657)
Codex found leftover quota-chip residue: #4657 had rewritten settings_desc_quota_chip
to 'Shown by default...' (and regressed several locales to English), contradicting
the reverted default-OFF behavior. Restored master's localized 'Default off / wide
displays only' copy across all 14 locales + index.html. The composer_mobile_quota
strings (mobile config panel, fit-related) are kept.

Co-authored-by: Paladin173 <Paladin173@users.noreply.github.com>
2026-06-29 02:06:15 +00:00
claw-io
159298d319 fix(profiles): use profile-scoped resolver for /api/profile/active default_workspace (Codex gate #5169)
Codex flagged that get_last_workspace() falls back to the GLOBAL last_workspace.txt
before the profile config.yaml — so a named profile without its own
last_workspace.txt would leak the global path, re-introducing the #5169 bug.
Add get_profile_default_workspace() (profile last_workspace.txt -> config.yaml ->
terminal.cwd -> default, NO global fallback) and call it from /api/profile/active.
Adds a regression test: global last_workspace.txt present + named profile with
only config.yaml workspace must return the profile path, never the global.

Co-authored-by: nesquena-hermes <nesquena-hermes@users.noreply.github.com>
2026-06-29 01:45:17 +00:00
nesquena-hermes
628d378857 chore(composer): drop #4657's quota-chip default-flip — keep just the fit-engine
Per maintainer decision: #4657 bundled a scope-creep change flipping
show_quota_chip default off->on plus a migration force-resetting stored false->true
(stomping explicit opt-outs). Master deliberately ships quota-chip default-off.
Reverted config.py + the quota-chip wiring in panels.js/boot.js + the quota test
to master, keeping ONLY the footer fit-by-overflow engine. The mobile quota-action
selector addition (hide_composer_quota_chip selectors) is kept (fit-related, not a
default change).

Co-authored-by: Paladin173 <Paladin173@users.noreply.github.com>
2026-06-29 01:38:34 +00:00
nesquena-hermes
6d770f1c05 fix(composer): refit on .composer-left resize, not just footer (Codex gate #4657)
Codex flagged that the fit ResizeObserver only watched .composer-footer, whose
outer width may not change when right-side controls (status/context chips)
appear — leaving the left control group's fit stale. Also observe .composer-left.

Co-authored-by: Paladin173 <Paladin173@users.noreply.github.com>
2026-06-29 01:33:26 +00:00
claw-io
ec0ef4a0d3 fix(profiles): show active profile workspace on blank new-chat (#5169)
Expose a profile-scoped default_workspace on GET /api/profile/active (resolved
by the profile-aware get_last_workspace(), fail-open) and hydrate boot.js from
it, overriding the global GET /api/settings value. GET /api/settings stays
global-only so the settings UI can't clobber the shared default. Combines
claw-io's #5173 (primary) with the fail-open backend hardening + regression test
from #5171.

Co-authored-by: nesquena-hermes <nesquena-hermes@users.noreply.github.com>
2026-06-29 01:25:58 +00:00
nesquena-hermes
d0be66f2d1 docs(changelog): composer footer fit-by-overflow (#4657) 2026-06-29 01:19:34 +00:00
nesquena-hermes
c6370235be feat(composer): fit footer controls by overflow (#4657, rebased onto master)
Rebased Paladin173's #4657 onto current master. The per-control visibility
toggles half already shipped via his own #4598, so this rebase carries only the
net-new JS fit-by-overflow engine (_fitComposerFooter: ResizeObserver +
MutationObserver measure .composer-left overflow, step full -> cf-icons ->
cf-burger). Co-authored-by: Paladin173 <Paladin173@users.noreply.github.com>
2026-06-29 01:19:02 +00:00
nesquena-hermes
1c4096aa9d
Merge pull request #5174 from nesquena/stage/5136-p0-sessions
perf(#5132): bound /api/sessions state.db overrides (source uncapped, count capped) [P0]
2026-06-28 18:17:39 -07:00
nesquena-hermes
c344844766 fix(#5132): split state.db sidebar override — source uncapped, count capped
Codex deep-gate caught a CORE regression in the original top-N cap: capping
_apply_sidebar_state_db_overrides also capped the SOURCE classification that
/api/sessions filters on BEFORE the lazy lineage correction, so a stale-CLI JSON
row whose state.db source is webui could be silently filtered out of a WebUI-only
sidebar once it fell beyond the cap. Split the read: the indexed sessions-table
source/title lookup runs for ALL rows; only the expensive messages COUNT/MAX
aggregation (the actual 5-18s bottleneck) is capped to top-N. Added a 500-row
end-to-end regression with a real state.db proving the beyond-cap stale-CLI row
stays webui.
2026-06-29 00:54:15 +00:00
nesquena-hermes
c646d92206 perf(#5132): cap /api/sessions state.db source/title overrides to top-N
On power-user instances with thousands of sessions, GET /api/sessions
blocked 5-18s in the all_sessions.state_db_overrides stage:
_apply_sidebar_state_db_overrides read state.db for every row (2400+ ids)
on every concurrent poll. With the gateway-watcher reading and the agent
writing the same state.db, this became lock/IO contention that piled up
concurrent polls and flapped the UI to 'Connection lost'.

Cap the override lookup to the top-N most-recent (paint-priority) rows
that are actually visible, mirroring the existing lineage-enrichment cap
(#4638). The caller passes an already pinned-first/newest-first sorted
list, so the top-N covers the visible window; rows beyond the cap keep
their JSON source/title and are corrected lazily on history-panel open.
Cap defaults to 300, env-configurable via
HERMES_WEBUI_STATE_DB_OVERRIDE_TOP_N (0 disables). Fails open.

Reported by @latipun, reproduced by @b3nw.

Co-authored-by: latipun <latipun@users.noreply.github.com>
2026-06-29 00:40:10 +00:00
nesquena-hermes
58f23a51ca
Merge pull request #5158 from santastabber/explore-subagent-sidebar-stack-home-20260629084327
fix(sidebar): keep hidden archived parents as child references
2026-06-28 17:30:46 -07:00
nesquena-hermes
a8e921d13a fix(sidebar): scope hidden archived-parent references to active project + source
The sidebar_reference_sessions payload arrives project-unscoped from
/api/sessions. _renderSidebarRowsFromRawSessions appended it to EVERY
render unconditionally, so an archived parent in project B entered a
project-A-filtered render's suppression context and silently hid a
visible project-A child/fork (rendered as []). Add
_scopedSidebarReferenceRows() to filter references to the same project +
webui/cli source bucket as the render they feed, mirroring
_partitionSidebarSessionRows. Regression test locks the cross-project
case; the existing suppression test now exercises the scoped helper.

Co-authored-by: santastabber <santastabber@users.noreply.github.com>
2026-06-29 00:21:04 +00:00
santastabber
5ed0ba6ef6 fix(sidebar): keep hidden archived parents as child references 2026-06-29 00:13:32 +00:00
nesquena-hermes
b7c332cfc1
Merge pull request #5160 from nesquena/splash-logo-breathe
Splash logo: drop app-icon tile, free-breathing mark with per-theme glow
2026-06-28 16:52:41 -07:00
Rod Boev
e0f8f61e03 test(#5152): anchor resolver assertion to the new helper 2026-06-28 19:44:38 -04:00
nesquena-hermes
863dc4e041 Splash logo: drop app-icon tile, free-breathing mark with per-theme glow
The new-conversation splash mark was wrapped in a glossy navy rounded-rect
that reads as a macOS app-launcher tile ('this is an app') rather than a
brand mark. Major AI chat UIs (Claude, ChatGPT, Gemini) all render their
empty-state mark bare. Remove the tile, scale the winged caduceus up
(~88px), and back it with a soft cyan/blue radial 'spirit' bloom.

Light and dark get separately tuned marks: dark keeps the bright
cyan->blue gradient + luminous bloom; light uses a deeper #0AA6CC->#1E63D6
gradient + cooler restrained bloom so the mark holds contrast on the pale
background instead of washing out. Entrance is gated behind
prefers-reduced-motion.
2026-06-28 23:42:02 +00:00
nesquena-hermes
93f5de52e1
Merge pull request #5164 from nesquena/stage-5155
Release v0.51.729 — extension browser-local settings surface (#5155, RFC #5094 first pass)
2026-06-28 16:29:56 -07:00
nesquena-hermes
4d79de266c Merge master into stage-5155 (catch up to v0.51.728) 2026-06-28 23:25:57 +00:00