Commit Graph
3626 Commits
Author SHA1 Message Date
nesquena-hermes 2d1b4642e2 feat: syntax highlighting in workspace file preview (#3337, @mysoul12138) 2026-06-01 21:20:42 +00:00
nesquena-hermes b718cf436f Merge pull request #3361 from nesquena/release/stage-batch17
v0.51.204: project/session operations honor the session's own profile (#3331)
2026-06-01 14:12:01 -07:00
nesquena-hermes c5d4806a64 fix(#3331): gate findings — empty-session profile retag, root-alias project filter, create-profile validation
Codex+Opus gate findings on the profile-scoping PR:
1. panels.js: retag S.session.profile on ANY profile switch (was inside the
   if(data.default_model) block, so model-less profile switches left a stale chip).
2. sessions.js: project-picker filter now mirrors the server's root-alias
   tolerance (default <-> renamed-root) so a server-approved 'default' project
   isn't hidden for a renamed-root session.
3. routes.py /api/projects/create: validate the optional client-supplied profile
   via _PROFILE_ID_RE before stamping (was trusting raw client input -> could
   create hidden cross-profile rows). Updated the PR's string-assertion test.
2026-06-01 21:05:32 +00:00
nesquena-hermesandPINKIIILQWQ 3cf4d15dc6 fix: align project/session operations with session profile instead of global active profile (#3331)
Co-authored-by: PINKIIILQWQ <PINKIIILQWQ@users.noreply.github.com>
2026-06-01 20:57:40 +00:00
nesquena-hermes 99b3745b01 Merge pull request #3359 from nesquena/release/stage-batch15
v0.51.203: sticky manual unpin for streaming chat scroll (#3343)
2026-06-01 13:44:57 -07:00
nesquena-hermesandpamnard d09f2e4efb feat: sticky manual unpin for streaming chat scroll (#3343)
Supersedes the v0.51.199 proximity-re-pin (#3330) and the #3250 upward-intent
timeout with a sticky-unpin model (ChatGPT/Claude/Codex behavior): scroll up =
stay put until you return to the bottom or click the scroll-to-bottom control.
Reconciled against the shipped #3330 code: removed the now-dead
_recentMessageUpwardIntent reference from the #3319 rAF retry, kept the
load-time -Infinity intent-init fix, kept the pinned-only >500 catch-up.

Co-authored-by: pamnard <pamnard@users.noreply.github.com>
2026-06-01 20:34:06 +00:00
nesquena-hermes 720695a0c2 Merge pull request #3358 from nesquena/release/stage-batch14
v0.51.202: filter interrupted-recovery control text from visible transcript (#3321)
2026-06-01 13:23:59 -07:00
nesquena-hermes d40c2e38d0 test: drop unused 're' import in test_live_stream_ux (ruff F401) 2026-06-01 20:21:40 +00:00
nesquena-hermes 7d2be7f52c fix(#3321): drop provider_details_label recovery-control heuristic (over-filtered genuine interruptions)
Codex+Opus regression-gate finding: _isRecoveryControlMessage /
_streamRecoveryControlMessage fell back to matching
provider_details_label==='interruption details'. But a GENUINE 'Response
interrupted' card (Stop button, real provider crash) carries that exact label,
so the filter would drop a real user-facing interruption from the transcript on
the next render/restore — the inverse of the #3300 data-loss class. Require the
explicit server-set recovery_control marker; keep only the two fully-anchored
synthetic-text matches for pre-marker backward-compat. Adds a node-driven
regression test (revert-verified) asserting a label-only interruption card and a
real user turn stay visible while marker + strict text are filtered.
2026-06-01 20:14:29 +00:00
nesquena-hermes 5db97e1985 docs: v0.51.202 release header (stage-batch14 — #3321) 2026-06-01 20:07:46 +00:00
nesquena-hermesandfranksong2702 f50b4fc2fa fix: filter interrupted recovery control text from visible transcript (#3321)
Co-authored-by: franksong2702 <franksong2702@users.noreply.github.com>
2026-06-01 20:07:16 +00:00
nesquena-hermes fa374f61d8 Merge pull request #3356 from nesquena/release/stage-batch13
v0.51.201: colored diff lines in tool-card snippets (#3336)
2026-06-01 13:04:00 -07:00
nesquena-hermes 94ad2a6b8d docs: v0.51.201 release header + fix #3336 tool-card diff test extraction list 2026-06-01 19:54:45 +00:00
nesquena-hermesandmysoul12138 0b7f32f5d9 feat: color diff lines in tool card snippets (#3336)
Co-authored-by: mysoul12138 <mysoul12138@users.noreply.github.com>
2026-06-01 19:53:40 +00:00
nesquena-hermes 1c6e34b7b6 Merge pull request #3354 from nesquena/release/stage-batch12
v0.51.200: remote-gateway health probe + ephemeral-turn-field preservation
2026-06-01 12:52:18 -07:00
nesquena-hermes 042294e2a1 test: update sessions.js string-assertions for #3313 carry-forward rename
#3313 applies the ephemeral-field carry-forward at all 5 wholesale S.messages
replace sites (loadSession/_ensureMessagesLoaded/_loadOlderMessages/
_ensureAllMessagesLoaded/startGatewaySSE), renaming the replace RHS from
msgs/next to _msgsToAssign/_nextToAssign. These pre-existing tests pinned the
old literals; updated to match the new RHS (or made LHS-agnostic) while
preserving the invariants they protect (bump-before-replace, session-switch
guard, shorter-transcript guard).
2026-06-01 19:46:36 +00:00
nesquena-hermes c0cfc1b975 docs: v0.51.200 release header (stage-batch12 — #3312 #3313) 2026-06-01 19:38:30 +00:00
nesquena-hermesandSanjays2402 0cae7c644c fix: preserve ephemeral turn fields when loadSession force-reloads (#3313)
Co-authored-by: Sanjays2402 <Sanjays2402@users.noreply.github.com>
2026-06-01 19:38:00 +00:00
nesquena-hermesandSanjays2402 329aae6979 fix: probe remote gateway via HERMES_API_URL before local fallback (#3312)
Rebased onto master + removed an unused 'io' import flagged by the ruff gate.

Co-authored-by: Sanjays2402 <Sanjays2402@users.noreply.github.com>
2026-06-01 19:38:00 +00:00
nesquena-hermes b6e4899887 Merge pull request #3353 from nesquena/release/stage-batch11
v0.51.199: pinned-scroll recovery + inline-math currency false-positive
2026-06-01 12:25:17 -07:00
nesquena-hermes 5d4ce75041 fix(#3330): init scroll-intent timestamps to -Infinity so load-time isn't read as intent
Codex follow-up finding: _lastMessageUpwardIntentMs/_lastNonMessageScrollIntentMs
initialized to 0, so _recentMessageUpwardIntent() returned true for the first 2s
after load (performance.now() < MESSAGE_UPWARD_INTENT_MS=2000) even with no user
scroll — which would disable the new #3319 retry guard during initial load. Sentinel
-Infinity makes 'no event recorded yet' read as no-intent. Also tightens the
pre-existing scrollIfPinned/settle callers that read the same helpers.
2026-06-01 19:19:08 +00:00
nesquena-hermes 3160b7bc36 docs: note digit-leading inline-math workaround in v0.51.199 changelog (Opus nit) 2026-06-01 19:18:08 +00:00
nesquena-hermes fd3c4696e7 fix(#3330): guard the pinned-scroll rAF retry against user scroll-up during streaming
Codex regression-gate finding: the new requestAnimationFrame retry in
_setMessageScrollToBottom re-asserted scrollTop=scrollHeight + _scrollPinned=true
on the next layout frame unconditionally, so a user who scrolled up in that ~16ms
window during streaming would be snapped back and re-pinned, bypassing the
scrollIfPinned early-return guards. Re-check _messageUserUnpinned / upward-intent /
non-message-scroll-intent / !_scrollPinned inside the retry; on hit, only release
the programmatic-scroll latch and bail.
2026-06-01 19:14:14 +00:00
nesquena-hermes 14e447964f docs: v0.51.199 release header (stage-batch11 — #3330 #3311) 2026-06-01 19:08:51 +00:00
04ce7599e3 stage-batch11: #3330 pinned-scroll + #3311 inline-math currency
#3330 Fix pinned chat scroll after message rebuild
Co-authored-by: jianongHe <jianongHe@users.noreply.github.com>

#3311 fix: reject inline math when $ is followed by a digit (currency)
Co-authored-by: toanalien <toanalien@users.noreply.github.com>
2026-06-01 19:08:30 +00:00
nesquena-hermes 9cad8980ff Merge pull request #3350 from nesquena/release/stage-batch10
v0.51.198: custom-provider reasoning model-id normalize + profile skill counts + run-adapter RFC slice
2026-06-01 11:41:21 -07:00
nesquena-hermes 76da1d144a fix(profiles): TOCTOU-safe _SKILLS_STATS_CACHE read via .get() (Opus pre-release nit on #3341) 2026-06-01 18:38:39 +00:00
nesquena-hermes 49fce9af16 docs: v0.51.198 release header (stage-batch10 — #3327 #3334 #3341) 2026-06-01 18:24:25 +00:00
de22c607bc stage-batch10: #3327 model-id normalize + #3334 RFC slice doc + #3341 profile skill counts
#3327 fix(reasoning): normalize custom-provider model ids for fallback heuristics
Co-authored-by: Carry00 <Carry00@users.noreply.github.com>

#3334 docs(rfc): mark run-adapter Slice 4f shipped, define Slice 4g gate
Co-authored-by: Michaelyklam <Michaelyklam@users.noreply.github.com>

#3341 fix(profiles): show enabled vs compatible skill counts
Co-authored-by: b3nw <b3nw@users.noreply.github.com>
2026-06-01 18:24:05 +00:00
nesquena-hermes c5aed7654c Merge pull request #3349 from nesquena/release/stage-batch9
v0.51.197: stop agent replaying edited/undone messages (#3102)
2026-06-01 11:21:09 -07:00
nesquena-hermes bce1f9430b fix(#3102): don't let persisted watermark permanently drop future state.db recovery rows
Codex regression-gate finding: since Session.save() no longer auto-clears the
truncation_watermark, the unconditional 'timestamp > watermark' skip in
merge_session_messages_append_only became a permanent ceiling — a genuine future
state.db-only row (recovery/compaction, missed by the sidecar) would be silently
dropped from /api/session and model-context reconstruction forever. Only apply the
above-watermark skip while the sidecar has NOT advanced past the watermark. Preserves
the #2914 deleted-tail filtering (revert-verified). Adds 2 regression tests.
2026-06-01 18:14:48 +00:00
nesquena-hermes a755786314 docs: v0.51.197 release header (stage-batch9 — #3102 only; #3268 + #3300 dropped pending fixes) 2026-06-01 18:05:17 +00:00
nesquena-hermesandAlexeyDsov 778652713c Fix #2914: stop agent replaying edited/undone messages; sync context_messages truncation (#3102)
Co-authored-by: AlexeyDsov <AlexeyDsov@users.noreply.github.com>
2026-06-01 18:05:02 +00:00
nesquena-hermes 65d1728c81 Merge pull request #3348 from nesquena/release/stage-batch8
v0.51.196: file-manager external sessions + artifacts tool metadata + edge-toggle icon + type hints
2026-06-01 10:34:48 -07:00
nesquena-hermesandmysoul12138 1c4365ce2a fix(artifacts): guard malformed tool_calls entries in collectSessionArtifacts (#3329)
Codex regression-gate finding: the OpenAI tool_calls loop dereferenced
tc.function with no null/type guard, so a persisted message.tool_calls
array containing a null or non-object entry would throw and abort artifact
collection. Mirror the existing tool_use-block guard. Adds a node-driven
regression test.

Co-authored-by: mysoul12138 <mysoul12138@users.noreply.github.com>
2026-06-01 17:27:02 +00:00
nesquena-hermes 89a72c2e3b docs: v0.51.196 release header (stage-batch8 — #3314 #3329 #3318 #3323) 2026-06-01 17:20:17 +00:00
kuishou68 23c51e8e64 fix: use Optional[T] for default None parameters in state_sync.py
Fixes type annotations where non-optional types (str, int) are used with
None defaults. All affected parameters now use Optional[T] = None.

Closes #3322
2026-06-01 17:20:17 +00:00
Sanjay Santhanam 92bddca3c7 fix: file manager falls back to state.db for external Telegram/CLI sessions (#3280) 2026-06-01 17:19:48 +00:00
mysoul12138 fae5ada40d fix: Artifacts tab cannot open files when messages carry structured tool metadata
Two bugs prevented clicking Artifacts entries from opening files:

1. collectSessionArtifacts() only read S.toolCalls, but
   _syncToolCallsForLoadedMessages clears it when messages carry
   their own tool_calls/tool_use metadata. Fix: also scan messages'
   structured tool data (OpenAI tool_calls array + Anthropic
   tool_use content blocks).

2. openArtifactPath() only stripped ~/ and ./ prefixes. When artifact
   paths were absolute (e.g. /mnt/.../workspace/file.js), /api/list
   received the full absolute path and returned 404. Fix: strip the
   session workspace prefix before calling _workspacePathExists.

Bonus: renderSessionArtifacts() now displays workspace-relative paths
instead of cluttered absolute paths in the artifact list.
2026-06-01 17:19:48 +00:00
xz-dev 2303aa1023 Fix workspace panel edge arrow direction 2026-06-01 17:19:48 +00:00
nesquena-hermes 1fcd81e38e Merge pull request #3310 from nesquena/release/stage-batch7
v0.51.195: hide attachment path markers in chat UI (#3296)
2026-05-31 22:40:22 -07:00
nesquena-hermes c1a3c3ef28 docs: v0.51.195 release header (stage-batch7 — #3296 hide attachment path markers) 2026-06-01 05:32:33 +00:00
AJV20 ec704356ac fix: hide attachment path markers in chat UI 2026-06-01 05:31:53 +00:00
nesquena-hermes 36fac9d0a3 Merge pull request #3309 from nesquena/release/stage-batch6
v0.51.194: profiles config-import-cycle fix (#3303)
2026-05-31 22:13:10 -07:00
nesquena-hermes 1cf6460cd9 docs: v0.51.194 release header (stage-batch6 — #3303 only; #3300 dropped pending compaction-marker fix) 2026-06-01 05:05:29 +00:00
AJV20 d8471a7d87 fix(profiles): avoid config import cycle 2026-06-01 05:05:16 +00:00
nesquena-hermes 4591f53b0e Merge pull request #3308 from nesquena/release/stage-batch5
v0.51.193: ctl dotenv opt-out + workspace inline-open + gateway reply polish (3 PRs)
2026-05-31 21:53:32 -07:00
nesquena-hermes 7003acc036 docs: v0.51.193 release header (stage-batch5) 2026-06-01 04:42:42 +00:00
AJV20 ca99d12e04 fix: keep WebUI reply guidance language-neutral 2026-06-01 04:42:23 +00:00
AJV20 7a1b2bfe72 fix: carry WebUI reply polish into gateway chat 2026-06-01 04:42:23 +00:00