Commit Graph
526 Commits
Author SHA1 Message Date
chengyongru a490cd629b fix(webui): cache and defer thread history 2026-09-12 17:09:51 +08:00
Xubin Ren a2e33893e1 fix(webui): restore navigation after automation deletion
Let the automation detail dialog own the background interaction lock instead of nesting a second modal menu. Overlapping exit lifecycles during deletion could leave body pointer events disabled after all dialogs closed.

Cover confirmed and cancelled deletion with animated Radix lifecycle tests and assert that sidebar navigation works after dismissal.

Refs NAN-117.
2026-09-11 21:37:07 +08:00
Xubin Ren 11a03595f4 fix(webui): lazily render collapsed tool traces
Keep trace rows unmounted until their group is opened, then release them only after the closing disclosure transition finishes. Hidden historical traces should not allocate a DOM row per tool call merely to support animation.

Add a 1,000-row regression test covering initial allocation, exit cleanup, rapid reopening, and subsequent expansion.
2026-09-11 20:38:38 +08:00
Xubin Ren 14f46d21fd fix(webui): preserve sidebar highlight easing during resize
Coalesce highlight measurements per animation frame and stop animating the measured action width during a drag. This keeps navigation and session highlights moving toward the current sidebar width with the same easing instead of lagging until the drag stops.

Cover target refs, selector targets, frame cleanup, and all drag termination paths.
2026-09-11 20:38:38 +08:00
Xubin Ren 1640784d45 feat(webui): simplify automation management and unify disclosure motion
Replace the dense automation workspace with a calm list and on-demand details, show current linked-chat titles, and remember manual system-task expansion preferences.

Reuse disclosure transitions across expandable controls, preserve drafts and focus through closing, and release large diffs after their exit animation.

Refs NAN-116
2026-09-11 20:38:38 +08:00
chengyongru 3a5b84ce0d perf(webui): cache public favicon requests 2026-09-11 16:05:11 +08:00
chengyongru ccbdf56eb3 refactor(webui): split channel setup responsibilities 2026-09-11 16:04:51 +08:00
chengyongru e8a29a0087 feat(webui): improve setup flows across chat channels (NAN-112) (#5356)
* feat(webui): improve channel setup flows

* fix(webui): refine channel setup interactions (NAN-112)

* fix(webui): keep email setup sections channel-owned

* fix(webui): remove concrete channel details from shared components

* refactor(webui): remove unused channel setup resources

* fix(webui): finish channel-owned setup boundaries

* fix(webui): update channel switches optimistically

* test(channels): remove obsolete absence assertions

* fix(webui): flatten channel instance settings disclosure

* fix(webui): complete channel setup and connection flows

* fix(whatsapp): wait for session database release

* fix(webui): preserve scrolling channel controls

* fix(webui): stage channel connection checks

* fix(channels): align verification actions

* fix(email): expose connection checks

* fix(webui): align channel field actions

* fix(email): verify account credentials

* fix(wecom): bypass system proxy for websocket

* fix(channels): stabilize async connection cleanup

* fix(webui): autosave channel credentials

* fix(email): make provider presets non-destructive

* test(weixin): isolate persisted QR credentials
2026-09-11 15:22:14 +08:00
Xubin Ren d7de5d5344 fix(webui): align standalone page widths with conversations
Reuse the conversation content width and gutters for Apps, Skills, Automations, and Channels so their main panes are no longer constrained by the narrower settings frame.

Make automation columns respond to their container widths to preserve readable messages in narrow panes. Keep the sidebar, regular settings, and existing conversation appearance unchanged, with focused layout regression coverage.

Refs NAN-111
2026-09-10 21:18:54 +08:00
chengyongru 4ed04a5df9 fix(webui): bound explicit scroll navigation duration 2026-09-10 15:33:35 +08:00
chengyongru f39702f1cf fix(webui): preserve prompt rail markers before long answers 2026-09-10 15:33:35 +08:00
chengyongru a4140dac25 fix(webui): align file edits and remove redundant status markers 2026-09-10 15:33:35 +08:00
chengyongru a3e9d0f9a9 fix(webui): align message actions and simplify compaction notices 2026-09-10 15:33:35 +08:00
chengyongru 39a817e72d feat(webui): refine sidebar hierarchy and selection feedback 2026-09-10 13:34:56 +08:00
chengyongru 55093dd75b fix(mcp): refresh expired OAuth tokens automatically (#5573)
* fix(mcp): refresh expired OAuth tokens

* fix(mcp): bind refreshed tokens to OAuth issuer

* fix(mcp): activate OAuth tools before probe cleanup

* fix(webui): preserve failed MCP OAuth status

* fix(mcp): preserve OAuth refresh across discovery retries

* test(mcp): align OAuth issuer fixture with SDK validation
2026-09-10 13:27:50 +08:00
chengyongru 8ea683679d feat(webui): expand and organize settings with autosave (#5704)
* feat(webui): expand settings with autosave and live configuration

* feat(memory): add long-term memory and idle compaction switches

* refactor(webui): clarify settings hierarchy and align compact controls

* refactor(webui): keep only memory consolidation in memory settings

* refactor(webui): defer runtime changes until explicit restart

* refactor(webui): remove default workspace setting

* fix(webui): align model lists and remove preset counters

* fix(i18n): use natural Chinese labels for chat platforms

* fix(i18n): shorten chat settings navigation label

* fix(webui): match settings navigation icons to text size

* refactor(webui): remove redundant settings sidebar heading

* refactor(webui): use icon-only back navigation in settings

* fix(webui): remove back arrow hover hint

* refactor(webui): remove redundant overview details

* refactor(webui): hide secondary descriptions in settings rows

* style(webui): replace settings dividers with rounded highlights

* refactor(webui): remove redundant model list subtitles and badges

* fix(i18n): restore chat translation namespace boundaries

* fix(i18n): complete settings translations for all locales

* fix(webui): reveal settings only for enabled capabilities

* fix(webui): consolidate capabilities and isolate settings feedback

* fix(webui): clear restart notices when settings are reverted

* fix(webui): anchor restart controls in settings sidebar

* fix(webui): shorten sidebar restart label

* fix(webui): align settings spacing and control sizes

* refactor(webui): unify settings dialogs and interaction feedback

* fix(webui): keep settings option groups on one line without scrolling

* refactor(webui): align settings spacing and sidebar icon proportions

* style(webui): match main sidebar typography to settings

* style(webui): use monospace for sidebar session handles

* refactor(webui): remove heartbeat configuration from automations

* feat(webui): expose configuration actions beside capability toggles

* style(webui): remove ellipsis from configuration actions

* refactor(webui): remove redundant app configuration controls

* feat(webui): add compact sidebar navigation and shortcut hints

* fix(webui): synchronize npm dependency lockfile

* test(webui): align input radius expectation with pill styling

* feat(webui): show daily token usage and cache breakdown

* feat(webui): add model usage details and cache hit rates

* feat(webui): chart daily token usage by model

* refactor(webui): simplify usage details and model labels

* fix(webui): hide usage dialog date range

* refactor(webui): consolidate model usage into chart legends

* fix(webui): enforce restart choices and correct settings test route

* fix(webui): polish settings localization and controls

* fix(webui): avoid repeated usage legend labels

* fix(webui): skip empty usage columns in keyboard navigation

* test(webui): assert settings behavior positively

* feat(webui): refine sidebar navigation and add drag resizing

* style(webui): soften sidebar scroll edges

* style(webui): harmonize sidebar typography and text colors

* feat(webui): move channels to the main sidebar

* style(webui): remove dotted underlines from settings hints

* fix(webui): unify tooltip hover delay

* fix(webui): support Seatbelt sandbox settings

* fix(webui): remove unused appearance density preference

* fix(webui): align settings input values consistently

* style(webui): group compact settings controls before inputs

* feat(webui): edit multiline settings in compact dialogs

* feat(webui): add continuous settings scrolling with gentle snapping

* Revert "feat(webui): add continuous settings scrolling with gentle snapping"

This reverts commit f0978c261a53c844185eeab4d0c3190fbd196fe6.
2026-09-10 11:10:51 +08:00
chengyongru fea28b1a00 fix(webui): preserve project when creating a topic from its menu 2026-09-09 17:26:02 +08:00
chengyongru 1469d4811c perf(webui): reduce repeated work and bound history rendering (#5703)
* perf(webui): reduce repeated work and bound history rendering

* fix(webui): keep continuation reasoning with its answer

* refactor(webui): reuse answer buffers and prepared copy text

* perf(webui): restore conditional replay buffer initialization

* fix(webui): remove code block pagination
2026-09-09 14:02:26 +08:00
Xubin Ren 1c451b5b5f fix(webui): retain skill refreshes queued during pending requests
An in-flight response can contain the list captured before a skill was installed. Preserve one trailing refresh for picker opens that arrive during that request instead of silently dropping them, while keeping at most one request active.

Cover stale responses, coalesced trailing refreshes, and unmount cleanup after both success and failure.
2026-09-09 13:36:50 +08:00
Xubin Ren 27518ca9fd fix(webui): refresh skill suggestions when opening the picker
Refresh the shared skill list when a dollar-reference picker opens so skills installed by the agent appear without reloading the page. Coalesce in-flight requests and preserve the last known list on transient failures.

Cover post-load discovery, Tab completion, removals, request deduplication, cleanup, and retry behavior with regression tests.
2026-09-09 13:36:50 +08:00
chengyongru b5d2a3fb8e fix(webui): keep edit diffs outside reasoning folds (#5714)
* fix(webui): keep edit diffs outside reasoning folds

* fix(webui): retain live status after trailing edit diffs
2026-09-09 13:14:14 +08:00
chengyongru cccf6e4608 fix(webui): prevent italic activity labels from clipping 2026-09-09 11:50:17 +08:00
chengyongru c2f167bf78 fix(webui): preserve less-than comparisons in streaming math 2026-09-09 11:38:40 +08:00
chengyongru 4c2c4396b0 fix(webui): use styled tooltips for model presets and activity previews (#5701)
* fix(webui): show effective preset in styled model tooltip

* fix(webui): use shared tooltip for activity previews
2026-09-08 16:00:54 +08:00
chengyongru 2b6c91472b fix(webui): keep queued prompts scoped across session switches 2026-09-08 15:16:54 +08:00
chengyongru 3548aec576 fix: use summary checkpoints for all compaction triggers (#5694)
* fix: exclude archived history after manual compaction

* refactor: share summary checkpoints across compaction paths

* fix: use summary checkpoints for every compaction trigger

* test: assert replay starts at the archived boundary

* fix: preserve nothing summaries without raw fallback

* test: assert compaction results positively

* test: verify checkpoint continuation after session reload
2026-09-08 13:16:45 +08:00
chengyongru 76ce905e97 fix(webui): preserve multiline dollar math with attached delimiters 2026-09-08 10:51:31 +08:00
chengyongru dd3d2970a7 fix(webui): keep working timer consistent across first output 2026-09-07 17:54:17 +08:00
chengyongru b581a496a6 fix(ui): surface model retry status (NAN-34) (#5504) 2026-09-07 15:12:39 +08:00
chengyongru 192e2e90dc refactor(events): unify scoped runtime notifications across clients (#5670)
* refactor(events): unify scoped runtime notifications across clients

* style(tests): sort auto-compaction event imports

* refactor(events): scope connections and remove retry callback plumbing

* docs: remove runtime notification design write-up

* refactor(bus): route operation events through the message bus

* fix(channels): isolate outbound sends by destination

* style(events): group shared notification imports

* refactor(events): converge runtime and hook delivery on MessageBus

* test(events): migrate fixtures to unified message bus
2026-09-06 02:11:19 +08:00
chengyongru 63cc5f270d refactor: remove unused internal helpers and state (#5667)
* refactor: remove unused internal helpers and state

* test(tui): await deferred submissions before reconnect attach
2026-09-05 22:09:12 +08:00
chengyongru 5229989f28 feat: make context compaction visible in channels (#5656)
* feat: surface context compaction lifecycle

* fix: complete and simplify context compaction notifications
2026-09-05 20:21:54 +08:00
Xubin Ren 5ec4b16863 fix(webui): center project session labels 2026-09-05 00:32:27 +08:00
chengyongru 6b82d642fc feat(webui): visualize context usage by logical round (#5649)
* feat(webui): visualize per-request context reuse

* refactor(webui): report usage by logical round

* fix(webui): align context chart with logical rounds

* refactor(webui): derive turn usage from logical rounds

* fix(webui): polish context usage details
2026-09-04 15:13:17 +08:00
Yao 8fb7bc34ec fix(webui): keep every concurrently loaded channel locale registered
loadChannelLocale() captured the per-channel translation map before
awaiting the locale loader and re-registered it afterwards. Because
initializeI18n() loads the fallback and initial locales concurrently,
two calls per channel each created their own Map and the one resolving
last replaced the other's registration, silently dropping one locale
from every channel for any user whose stored locale is not en.

Create and register the map synchronously, before any await, so
concurrent loads append to a single shared Map.

Add a regression test that loads two locales concurrently against a
fresh registry instance.
2026-09-04 13:46:42 +08:00
chengyongru 3d40ed8f76 fix(webui): preserve hero model preset on chat creation 2026-09-04 10:41:01 +08:00
chengyongru 6c0f6bf0ee fix(webui): show language names only in their native form (#5646)
* fix(webui): show native language names only

* test(webui): assert native language names positively
2026-09-04 00:08:56 +08:00
Oxygen56 67f0f26b04 fix(webui): clear stale stream state after reconnect 2026-09-03 17:58:45 +08:00
Xubin Ren 588be51d8c fix(webui): preserve sidebar control alignment 2026-09-03 13:38:21 +08:00
Xubin Ren 38e3bca2ad fix(webui): tighten native settings spacing 2026-09-03 13:38:21 +08:00
Xubin Ren ea57b80fb5 fix(webui): honor native host chrome 2026-09-03 13:38:21 +08:00
Xubin Ren fd67f5594c refactor(webui): remove obsolete native title inset 2026-09-03 13:38:21 +08:00
Xubin Ren a841b10bc0 fix(webui): align native sidebar controls 2026-09-03 13:38:21 +08:00
chengyongru d81aa5a4ab refactor(agent): let runner own context compaction (#5568)
* refactor(agent): consolidate accepted history under pressure

* fix(agent): align provider and session compaction

* refactor(agent): simplify runner context compaction

* refactor(agent): remove background token consolidation

* fix(agent): keep injected transcript messages distinct

* refactor(agent): unify native compaction summaries

* fix(agent): preserve native compaction boundary

* fix(agent): unify context compaction paths

* fix(agent): preserve exact compaction request boundaries
2026-09-02 18:05:54 +08:00
Xubin Ren 7ba4bc02f0 fix(webui): make new preset row clickable 2026-09-02 16:25:07 +08:00
Xubin Ren 6b385a1da6 fix(webui): balance preset editor spacing 2026-09-02 16:25:07 +08:00
Xubin Ren 56699d4888 fix(webui): make preset names immediately saveable 2026-09-02 16:25:07 +08:00
Xubin Ren 0274c11bfb fix(webui): keep schema defaults out of model presets 2026-09-02 16:25:07 +08:00
Xubin Ren 94d62f86a0 fix(webui): nudge model setup on blocked submit 2026-09-02 16:25:07 +08:00
Xubin Ren 6b07c91aa2 fix(webui): migrate brand logos to default on 2026-09-02 16:25:07 +08:00