Commit Graph
4403 Commits
Author SHA1 Message Date
chengyongru bfb4f021ed test: align automation integration coverage with current behavior 2026-09-13 05:43:05 +08:00
chengyongru 458b925f86 fix(webui): keep automation creation intent in runtime context 2026-09-13 05:43:05 +08:00
chengyongru 037438e7d1 fix(webui): show per-run automation replies and simplify details 2026-09-13 05:43:05 +08:00
chengyongru e7da868574 feat(webui): refine automation views and scheduling controls 2026-09-13 05:43:05 +08:00
chengyongru c25b2048ef fix(webui): simplify automation calendar and creation UI 2026-09-13 05:43:05 +08:00
chengyongru 37e29c36e5 feat(webui): refine automation calendar workflows 2026-09-13 05:43:05 +08:00
Xubin Ren 98b0c3858b fix(webui): align automation details with shared dialog styles
Reuse shared dialog and button treatments, simplify detail dividers, and keep related actions together on narrow screens. Omit empty instructions without changing task actions, focus restoration, or modal handoffs.
2026-09-13 05:43:05 +08:00
Xubin Ren 66370b170e fix(webui): align catalog headings and simplify skill labels
Use the existing inline section-heading layout to clear standalone title spacing in Apps, align the count with its heading, and reduce excess header height. Drop decorative count badges and uppercase skill group labels while preserving catalog filtering and actions.
2026-09-13 05:43:05 +08:00
Xubin Ren ddf4eb5054 fix(webui): simplify automation section labels
Remove the redundant personal-task heading and use natural typography for System tasks to keep the catalog from looking over-decorated. Preserve the accessible list label, counts, and disclosure behavior.
2026-09-13 05:43:05 +08:00
Xubin Ren 092410d3f2 fix(webui): align automation styling with settings pages
Reuse the Channels search styling and segmented filters, and bring the Skills catalog surface, typography, and compact row spacing to Automations so the feature pages share a consistent visual language.

Preserve task dialogs, disclosure motion, search and sort behavior, and the deletion focus regression coverage.
2026-09-13 05:43:05 +08:00
Xubin Ren 5b2f21c431 fix(webui): simplify automation controls and disclosure cues
Keep search, status filters, and sorting directly available instead of requiring a sliders toggle. Distinguish task dialogs from inline disclosures by removing task-row arrows and using up/down disclosure cues.

Remove obsolete drawer state and grid columns, preserve focus restoration and system-task preferences, and update interaction regressions. Scheduling, persistence, and task actions remain unchanged.
2026-09-13 05:43:05 +08:00
chengyongru f8c1f2ede0 fix(webui): make headless login self-explanatory (#5735)
* fix(webui): guide headless login

* fix(webui): correct SSH handoff and password fallback
2026-09-13 05:01:13 +08:00
chengyongru 7cede64f07 perf(webui): bound reasoning previews and pace streaming updates 2026-09-12 18:33:39 +08:00
chengyongru 9e71087a2a fix(webui): align legacy trace detail replay identities 2026-09-12 17:09:51 +08:00
chengyongru a490cd629b fix(webui): cache and defer thread history 2026-09-12 17:09:51 +08:00
chengyongru 7ba60c2ef0 fix(webui): bound history replay work 2026-09-12 17:09:51 +08:00
chengyongru 0c5d8443ec fix(responses): omit provider item IDs from chat history 2026-09-12 16:45:52 +08:00
kkkhoo e5a137956f fix(responses): clean up replayed items before sending them to providers
Prevent Responses API errors when conversation history is reused in a new provider request.

Fresh and pending Chat-style history conversions no longer include stale
provider-generated item IDs, while preserving function-call IDs for tool
output linkage.

During opaque Responses state replay, remove unsupported status fields from
reasoning items before sending them to the provider. Preserve encrypted
reasoning content and other valid provider fields.

Add regression coverage for stale item IDs and replayed reasoning items with
unsupported status fields.
2026-09-12 16:45:52 +08:00
chengyongru 19c3db55ce chore: remove core agent line count script 2026-09-11 22:28:59 +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
chengyongru c3fb819203 fix(webui): omit binary data from tool progress 2026-09-11 21:32:53 +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 90b889394f fix(email): disable intermediate progress delivery 2026-09-11 16:50:47 +08:00
chengyongru 4e865b91ee fix(memory): clarify Dream prompt write permissions (#5734)
* fix(memory): clarify Dream prompt write permissions

* refactor(memory): consolidate Dream prompt rules

* fix(memory): keep agent prompts focused on executable guidance

* fix(memory): limit cleanup to skill instructions
2026-09-11 16:47:34 +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
Naster17 3cc3012b3a feat(tg): collapse context compaction notices into one edited message
Context compaction previously posted two separate chat messages: a
'Compressing context…' notice when compaction started and a follow-up
'Context compacted.' once it finished.

The Telegram channel now collapses this into a single message: the
started phase posts the notice and remembers its message id, and a
terminal phase (succeeded/failed/cancelled) edits that same message in
place instead of posting another. If the edit fails, a fresh message
keeps the outcome visible. Notices are keyed by compaction id and
bounded, so concurrent or abandoned compactions cannot leak state.
2026-09-11 13:16:19 +08:00
chengyongru 73410e0217 fix: stream internal model calls with idle timeouts (#5730)
* fix: stream internal model calls with idle timeouts

* fix(providers): reject streams without terminal events
2026-09-11 13:06:43 +08:00
chengyongru aeb7b207d7 fix(discord): retain in-flight compaction notices 2026-09-11 11:15:57 +08:00
L4XB 4d712937a5 fix(discord): update the compaction notice in place instead of sending a second message
Automatic compaction delivered two standalone Discord messages,
"Compressing context…" and "Context compacted.", even with
sendProgress off. The lifecycle itself is information the user should
keep seeing (it changes the context of every later turn), so the
dispatcher keeps delivering both events to every channel; the noise is
a presentation problem of the Discord adapter.

The Discord client now remembers the message it sent for a compaction's
"started" event, keyed by compaction_id, and edits that message with the
outcome when it arrives, so one compaction is one message. Without a
stored notice (restart, or the edit being refused) the outcome is sent
as before. The earlier dispatcher-level filtering is dropped, and the
manager test pins that both lifecycle events reach a channel whose
progress messages are off.

Fixes #5719
2026-09-11 11:15:57 +08:00
L4XB a068de8068 fix(channels): keep the compaction outcome visible, gate only the start notice
Rework after review: compaction changes the context of every later turn,
so its outcome (compacted / failed / cancelled) is always delivered,
whether the user or the scheduler started it. Only the transient
"Compressing context…" start notice follows the channel's send_progress
setting, so a channel with progress off receives one notice per
compaction instead of two. The manual flag is gone.
2026-09-11 11:15:57 +08:00
L4XB 92f151ae67 fix(channels): make automatic compaction notices follow send_progress
Idle auto-compaction emitted "Compressing context…" / "Context compacted."
as standalone messages even when the channel had sendProgress: false, so
routine maintenance kept interrupting Discord chats after scheduled turns.

Gate ContextCompactionEvent notices in the outbound dispatch loop on the
channel's send_progress like other progress text. Two cases stay visible
regardless of the setting: a user-requested /compact (the event now
carries manual=True, set by cmd_compact through compact_idle_session)
and a failed compaction.

Fixes #5719
2026-09-11 11:15:57 +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
Nasterandchengyongru da749b4a87 fix(command): rename hyphenated slash commands to Telegram-safe underscores (#5711)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-09-10 13:30:02 +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
Naster17 6a8647cfb6 fix(tg): route /compact and /evaluator-prompt to the command router
The Telegram channel forwards slash commands through an allowlist regex
that must mirror the builtin command router. /compact and
/evaluator-prompt were missing from it, and messages starting with '/'
never reach the generic text handler, so both commands were silently
dropped: pressing /compact did nothing at all.

Add both commands to the allowlist, register /compact in the Telegram
command menu, and pin the router/regex pairing in the existing regex
test.
2026-09-10 11:44:17 +08:00
Booty Destroyer 6969 dfed706bc0 fix(exec): preserve UTF-8 across streaming output chunks 2026-09-10 11:36:33 +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
Young Leeandchengyongru 20f115bf46 feat(providers): send x-opencode-session header for OpenCode session (#5662)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-09-10 01:16:17 +08:00
Xubin Ren 61ea3ed3c4 test(exec): keep Seatbelt identity fixtures portable on Windows 2026-09-10 00:00:44 +08:00
Xubin Ren 19074b5122 fix(exec): preserve Seatbelt readonly roots and fail closed on cwd errors
Prevent renaming writable ancestors of effective read-only roots while preserving explicit read-write overrides, filesystem case aliases, and unrelated child writes.

Exit before evaluating shell lists when the sandbox working directory cannot be entered. Add native and portable regressions for both boundaries and document the ancestor restriction.
2026-09-10 00:00:44 +08:00
Xubin Ren 8b9e35bf78 fix(exec): tighten Seatbelt filesystem and launcher boundaries
Keep temporary work inside the granted workspace instead of exposing host scratch trees, enforce read-only roots, and pin the system sandbox launcher before PATH lookup. Preserve documented network access and the narrow system paths needed by shell and Git.

Add native macOS containment and launcher regressions plus shared backend contract coverage. Document scratch and custom-tool requirements without changing existing bwrap or Windows behavior.
2026-09-10 00:00:44 +08:00