Commit Graph
100 Commits
Author SHA1 Message Date
chengyongru 843dc20121 fix(webui): underline focused sidebar titles instead of boxing the row (#6750) 2026-11-22 17:32:41 +08:00
chengyongru b65c3ac7fa fix(webui): let users turn off failed channels (#6748) 2026-11-22 14:00:14 +08:00
chengyongru 09384cab26 feat(webui): collapse long user messages exceeding half viewport height (#6739) 2026-11-20 22:36:30 +08:00
chengyongru db0306b404 feat(webui): redesign goal island as floating vibrancy platter (#6737) 2026-11-20 18:43:34 +08:00
chengyongru 16e573fe18 feat(webui): refine composer slash, skill, and mention palettes (#6738) 2026-11-20 18:24:19 +08:00
chengyongru cd75dbfaac fix(chat): preserve routing for side-channel command replies (#6736) 2026-11-20 16:47:07 +08:00
chengyongru 3e9024ea04 fix(webui): restore keyboard focus after pointer use (#6735)
* fix(webui): restore focus rings for file and image shortcuts

* test(webui): wait for the welcome composer before opening model options
2026-11-20 16:12:24 +08:00
chengyongruandhoufukude 341fd37c0c fix(webui): prevent sign-in autofill in channel credentials (#6733)
Co-authored-by: houfukude <houfukude@gmail.com>
2026-11-20 16:11:25 +08:00
chengyongru c6fd1b3ecb fix(webui): gate focus indicators on keyboard navigation modality (#6734) 2026-11-20 15:55:03 +08:00
chengyongru cb95277098 fix(webui): confirm linked automation deletion in untimed toast (#6731)
* fix(webui): confirm linked automation deletion in untimed toast

* feat(webui): add linked automation dropdown and session exclude in delete toast

* style(webui): align toast automation dropdown and refine visual polish
2026-11-20 15:05:23 +08:00
chengyongru 7935176eb7 fix(webui): theme the custom reasoning effort picker (#6730) 2026-11-20 13:02:44 +08:00
chengyongru 51fa1a7f74 refactor: remove unreachable code and redundant tests (#6729)
* refactor: prune unreachable runtime and WebUI paths

* test: drop duplicate cases and assertions for obsolete selectors
2026-11-20 11:11:00 +08:00
chengyongru 5537bdabd3 refactor(webui): separate gateway mutations and UI state (#6727) 2026-11-19 22:22:51 +08:00
chengyongru ce12bfdd0d fix(webui): open the preset for blocked image input (#6724) 2026-11-19 18:39:00 +08:00
chengyongru 607de63fb4 docs: improve readability and remove internal technical details from user docs (#6725)
* docs: improve readability and remove internal technical details from user docs

* docs: expand user-doc cleanup to remote instances, deployment, providers, MCP presets, my-tool, and add concept diagrams

* docs: streamline root README and SECURITY guide for readability

* docs: move Why nanobot before Start Here and highlight lightweight footprint and WebUI
2026-11-19 16:48:17 +08:00
chengyongru 2ca8b72eea fix(webui): use live turns for queued messages (#6726) 2026-11-19 16:27:45 +08:00
chengyongruandMark Zhang 085521823e fix(security): reject malformed hostnames before DNS resolution (#6716)
Reject control characters before parsing and whitespace in the parsed hostname before resolving the destination.

Co-authored-by: Mark Zhang <122280878+atlasmarkz@users.noreply.github.com>
2026-11-19 16:12:35 +08:00
chengyongru 094bac0dc3 fix(webui): reconcile running turns on reconnect (#6715)
* fix(webui): reconcile running turns on reconnect

* test(webui): verify only the current turn-sync policy
2026-11-19 16:08:20 +08:00
chengyongru b453de9cf6 feat(webui): show when the agent picks up queued messages (#6719) 2026-11-19 16:03:16 +08:00
chengyongru 3025a01cf0 fix(session): replay user images from stored attachments (#6720) 2026-11-19 15:53:57 +08:00
chengyongru 488b657ee1 feat(agent): identify response inputs on model request start (#6721) 2026-11-19 15:07:22 +08:00
chengyongru 32bba3a16c fix(webui): anchor floating surface animations (#6722)
* fix(webui): anchor floating surface animations

* test(webui): assert the dispatched file menu click coordinate
2026-11-19 15:05:42 +08:00
chengyongru eb82ab84cc fix(webui): skip confirmation for undoable topic deletion (#6723)
* fix(webui): skip confirmation for undoable topic deletion

* refactor(webui): rely on gateway for linked automation confirmation
2026-11-19 15:05:00 +08:00
chengyongru f9052884ba fix(session): preserve literal assistant replies in history (#6717)
<87817976+master1018@users.noreply.github.com>
2026-11-19 14:38:04 +08:00
chengyongru d7e30b403e perf(webui): avoid redundant diff bundle assets (#6711) 2026-11-19 00:10:38 +08:00
chengyongru 995f9e36c1 fix(webui): restore startup flow while keeping recovery batching (#6712)
* fix(webui): restore startup flow while keeping recovery batching

Keep the two restart recovery scans from #6708. Withdraw the browser preload and launcher changes until they can be measured independently against the Windows first-send regression.

* fix(webui): skip graph layout measurement in reduced motion

A zero-duration shared layout still measured the panel while the 500-node graph was mounting. Disable the shared-layout link in reduced motion and start the browser budget after the initial graph paints. Keep the existing 150ms limit and all 500 node checks.
2026-11-18 23:40:49 +08:00
chengyongru cab49a1c66 feat(webui): expand long drafts and refine chat scrollbars (#6709)
* feat(webui): expand long drafts and refine chat scrollbars

* test(webui): synchronize browser setup and isolate locale cases

* test(webui): wait for the About fixture before measuring layout
2026-11-18 23:28:36 +08:00
chengyongru db430df3f6 fix(webui): style focus after sidebar topic rename (#6710) 2026-11-18 22:56:37 +08:00
chengyongru 273582916b perf(webui): batch startup recovery and authenticate before React (#6708) 2026-11-18 22:47:44 +08:00
chengyongru d1e1d7bc5e fix(webui): keep the reasoning slider visible while levels load (#6707) 2026-11-18 18:28:01 +08:00
chengyongru f6f49ccca5 fix(webui): scroll search and archive with sidebar topics (#6706) 2026-11-18 17:46:55 +08:00
chengyongru 7e04670461 fix(webui): round Codex speed controls to match the reasoning slider (#6703) 2026-11-18 16:44:27 +08:00
chengyongru 74d070f699 feat(memory): add progressive wiki and drain Dream history (#4477) 2026-11-18 16:28:43 +08:00
chengyongru 9ccf3b6214 fix(webui): make action feedback easier to notice (#6702)
* fix(webui): make action feedback easier to notice

* fix(webui): preserve undo and report confirmed action results

* refactor(webui): trim toast preview and redundant coverage

* test(webui): advance the undo window for the last topic deletion
2026-11-18 16:10:02 +08:00
chengyongru 0f45d74fec feat(webui): add session-scoped reasoning effort (#6441)
* feat(webui): add session-scoped model options

Extend the composer preset menu with inherited reasoning effort and Codex Fast mode overrides. Persist choices with ordinary inputs, isolate captured runtimes, and restore browser preferences without changing shared presets.

Add regression coverage for pending preset ordering, settings initialization, session and host isolation, queue edits, Codex request mapping, and narrow-screen controls.

* feat(webui): refine session model options and add Codex Ultrafast

Fit the composer options into a compact single row and preview reasoning effort only during a drag. Add Fast/Ultrafast controls for eligible Codex models, preserve explicit session choices across reloads, and document the speed tiers.

* fix(webui): add Codex speed control to the component gallery

* fix(webui): preserve saved model options after preset rename

Use the session options for display when a browser preference no longer matches the preset. Omit model options from the next message unless the browser has a matching choice, so stale preferences cannot overwrite options the gateway already saved.
2026-11-18 15:46:16 +08:00
chengyongru 2b232c9133 feat(webui): unify the Apps catalog (#6700)
* feat(webui): unify the Apps catalog

* fix(webui): serve all channel branding locally

* fix(webui): refine Apps navigation and sidebar
2026-11-18 15:05:57 +08:00
chengyongru 5997a714f2 refactor(agent): centralize session execution ownership (#6699) 2026-11-18 13:49:41 +08:00
chengyongru 966ed5e0bd fix(webui): refine reasoning shell activity copy across locales (#6689) 2026-11-17 17:22:25 +08:00
chengyongru b77e9592af fix(webui): separate agent plugins from CLI apps (#6687)
* fix(webui): separate agent plugins from CLI apps

* fix(webui): preserve plugin payload row typing
2026-11-17 15:20:55 +08:00
chengyongru e767174450 fix(webui): open ready apps by default (#6685)
* fix(webui): open ready apps by default

* test(webui): select apps when checking catalog cache
2026-11-17 11:21:26 +08:00
chengyongru 7782095a85 perf(ci): speed up full WebUI regression gates (#6684)
* perf(ci): speed up full WebUI regression gates

* perf(ci): balance browser shards with measured hosted timings
2026-11-17 10:26:45 +08:00
chengyongru e91906bc3a feat(webui): support custom background images (#6674) 2026-11-16 22:08:55 +08:00
chengyongru 92d23d2d2b feat(webui): anchor prompts while replies stream (#6679) 2026-11-16 17:58:49 +08:00
chengyongru 4ebd75623f fix(webui): preserve inferred file reference text (#6672) 2026-11-15 20:30:07 +08:00
chengyongruandsseepsse 96eb1ace6f feat(image): support MiniMax H3 image models (#6671)
Co-authored-by: sseepsse <5190941+sseepsse@users.noreply.github.com>
2026-11-15 19:54:18 +08:00
chengyongru 12a86eaa86 fix(goal): make cancellation a user-only control (#6667) 2026-11-14 23:48:13 +08:00
chengyongru efec4a608d fix(webui): keep history loading until content is ready (#6659)
* fix(webui): keep history loading until content is ready

* fix(webui): preserve history content and retry state

Share final activity filtering with history readiness and retain completion and fork metadata across bookkeeping pages. Route boundary retries to the failed cursor and publish navigation pages synchronously so concurrent trace details are preserved. Cover real retry gestures, metadata traversal, batched details, and fork boundaries in both directions.

* fix(webui): reduce history admission work and release retry pages
2026-11-14 22:52:44 +08:00
chengyongru 40e4e8a3fd docs: align README with current project (#6666) 2026-11-14 22:36:01 +08:00
chengyongru d35b755fc2 fix(webui): keep activity header stable when toggling (#6664)
* fix(webui): keep activity header stable when toggling

* fix(webui): keep activity spacing compact
2026-11-14 17:04:52 +08:00
chengyongruandNabil Abu-Hadba 13279f4f2b fix: remove retired OpenAI image models from options (#6663)
Co-authored-by: Nabil Abu-Hadba <nabilabuhadba@gmail.com>
2026-11-14 16:15:09 +08:00
chengyongru 5e9810c1ad fix(webui): scope remote health checks to visible demand (#6657)
* fix(webui): scope remote health checks to visible demand

* fix(webui): simplify demand-driven health polling
2026-11-14 00:32:10 +08:00
chengyongru 3f65a8f86c fix(models): route image input by preset capability (#6651)
* fix(providers): preserve images across retries and recovery

Remove destructive text-only retries and validate tool image media at the boundary. Keep image identity across native transport preparation and compaction, and stop incomplete fallback or continuation without replaying tools.

Resolves NAN-442

* fix(models): route image input by preset capability

Replace the expanded image recovery and tool-format changes with an explicit supportsImages preset setting, capability-aware fallback selection, and an Image input switch in model settings. Keep original messages on retry and fail on actual non-transient image errors.

* docs(models): introduce image input settings positively

* test(agent): align image request fixtures with preset routing

Cover successful image requests and direct validation errors when attributing model responses. Configure the image-capability check for the existing text-only provider mocks so governance and override-reuse tests exercise their scripted primary/fallback paths.
2026-11-13 18:16:58 +08:00
chengyongru 6a24b17629 feat(webui): refresh the empty chat welcome (#6650)
* feat(webui): refresh the empty chat welcome

* fix(webui): keep empty chat accessible in split panes

* chore(webui): remove unused fixture test id
2026-11-13 17:12:18 +08:00
chengyongru c7a1eb910d fix(webui): prevent single-dollar math from crossing code spans (#6646) 2026-11-13 14:04:05 +08:00
chengyongruandxiong-wei1 8cce73465b fix(tools): validate arguments with jsonschema without coercion (#6648)
Co-authored-by: xiong-wei1 <2318942410@qq.com>
2026-11-13 13:32:12 +08:00
chengyongru eb8546c321 perf(subagent): read saved task history by loaded turns (#6634) 2026-11-12 21:37:08 +08:00
chengyongru e6b23c7356 feat(webui): show the full token-usage picture in settings (#6638) 2026-11-12 18:13:06 +08:00
chengyongru 0ce10533d3 fix(webui): preserve session caches during history revalidation (#6636) 2026-11-12 16:08:48 +08:00
chengyongru 1046a37be1 fix(webui): correlate chat requests and cancel stale reconnects (#6617)
* fix(webui): correlate chat requests and cancel stale reconnects

* refactor(webui): remove chat request capability negotiation

* docs(webui): clarify version pairing and cover HTTP startup

* test(webui): focus lifecycle coverage and clarify support policy
2026-11-12 14:44:38 +08:00
chengyongru c37af82e3f fix(webui): keep completed subagent results with loaded prompts (#6630) 2026-11-12 10:34:57 +08:00
chengyongru 28d73b6942 perf(webui): streamline model preset saves (#6631)
* perf(webui): streamline model preset saves

* fix(webui): type optional settings usage payload
2026-11-11 22:02:42 +08:00
chengyongru 3c61bcfdf0 fix(webui): preserve oversized turn history with record pagination (#6586) 2026-11-11 17:32:47 +08:00
chengyongru e3a1af2ed3 fix(webui): add a close control to the expanded context panel (#6629) 2026-11-11 17:06:45 +08:00
chengyongru 394a78e82d fix(sessions): preserve cross-session input ownership and history (#6613)
* fix(webui): reconcile cross-session history by message ID

* fix(sessions): preserve target authority and input ownership

Resolve cross-session follow-ups through the target route, carry stable input IDs through admission and recovery, and associate live and replayed answers with the inputs actually consumed.

Keep ordinary input scope isolation and omit historical anomaly repair. Resolves NAN-430.

* fix(sessions): complete input identity integration across boundaries

Carry input identity explicitly in projected input events, keep runner annotations out of public history, and reuse the canonical WebUI session parser during recovery.

Type validated recovery metadata and align existing channel and subagent regressions with explicit response ownership. All nine failed compatibility cases and adjacent recovery coverage pass in a focused 58-test run.

* fix(sessions): unify input recording and block remote commands

* fix(webui): keep input ownership checks page-bounded

Look up referenced inputs through the existing identity index before invoking transcript backfill. Complete pages no longer scan the full prompt history, including answers whose inputs live on earlier pages.

Cover cold-cache pagination and cross-turn ownership in existing regressions. Focused pagination, replay and follow-up recovery checks: 88 passed.

* fix(webui): preserve response ownership during history replay

* fix: resolve strict typing in response replay

* fix: preserve continuation ownership during recovery

* test: diagnose stuck gateway asyncio shutdown

* test: retain gateway thread stack diagnostics

* test(webui): stabilize native autoscroll browser setup
2026-11-11 10:46:44 +08:00
chengyongru 62c05e7f7e test(ci): isolate flaky scenarios and retain failure diagnostics (#6622)
* test(ci): isolate HTTP stubs and retain failure diagnostics

* test(agent): scope compaction watchdogs to each phase

* test(webui): isolate settings skeleton scenarios

* test(webui): await rendered rail content before scroll checks
2026-11-10 13:53:51 +08:00
chengyongruandovo-agentx 5c72ced2fe fix(webui): respect middle-click autoscroll (#6612)
* fix(webui): respect middle-click autoscroll

Co-authored-by: ovo-agentx <351813579+ovo-agentx@users.noreply.github.com>

* fix(webui): arbitrate scrolling from actual viewport movement

Remove the middle-button gesture model. Attribute actual viewport movement at
the camera write boundary so native scrolling yields ownership without
predicting browser gesture state or nested scroll targets. Exclude layout
clamping, preserve application navigation, and reconcile pending scrolls before
geometry, animation, or history-anchor writes can overwrite them.

Co-authored-by: ovo-agentx <351813579+ovo-agentx@users.noreply.github.com>

---------

Co-authored-by: ovo-agentx <351813579+ovo-agentx@users.noreply.github.com>
2026-11-09 18:34:48 +08:00
chengyongru bbbc5329bb fix(webui): preserve pasted paths when attachment detection fails (#6610) 2026-11-09 14:07:15 +08:00
chengyongruandzhang-li-cs 82cc42aee7 fix(feishu): receive files attached to rich-text messages (#6604)
Co-authored-by: zhang-li-cs <zhang_li_cs@yeah.net>
2026-11-09 14:06:30 +08:00
chengyongru 4212ad726d fix(webui): retain system context graph after compaction (#6608) 2026-11-09 13:20:46 +08:00
chengyongru f62dfe0ee8 fix(webui): show latest button for hidden content (#6605)
* fix(webui): show latest button for hidden content

* fix(webui): preserve latest navigation after focus scroll
2026-11-09 10:56:26 +08:00
chengyongruandovo-agentx 12c7d116a0 fix(webui): follow browser language on first visit (#6591)
Co-authored-by: ovo-agentx <351813579+ovo-agentx@users.noreply.github.com>
2026-11-07 00:46:09 +08:00
chengyongru 94bfd3ff7d perf(webui): reduce file activity layout work (#6587) 2026-11-06 23:21:48 +08:00
chengyongru 1a89a25abd perf: reduce memory copies across files, sessions, and model requests (#6581) 2026-11-06 17:50:25 +08:00
chengyongru 3a37269f3f refactor(webui): unify code and diff highlighting (#6412)
* refactor(webui): unify code and diff highlighting

Replace Prism with shared Highlights tokens and Pierre read-only diffs, retaining rare grammars through lazy Shiki and preserving source, copy, preview and diff controls.

Restore single-session Composer ownership inside the conversation column while retaining the shared multi-pane footer. Keep the measured large-diff scroll regression explicit during review.

* fix(webui): contain highlighting errors and retain diff selections

Refs NAN-343

* test(webui): align pane fixtures after main rebase

* chore(webui): update highlighting dependencies

Keep grammar fallback coverage on a language that still requires Shiki, and align reading-size assertions with main.
2026-11-06 16:41:12 +08:00
chengyongru fdd30e6dc9 perf(ci): reduce WebUI browser test overhead (#6580)
* perf(ci): reduce WebUI browser test overhead

* revert(ci): keep the runner package mirror

* perf(webui): use available CI browser workers
2026-11-06 15:09:03 +08:00
chengyongru 519ed81132 feat(webui): inspect file context in a live graph sidebar (#6562)
* feat(webui): inspect file context in a live graph sidebar

* refactor(webui): place preview controls in the shared sidebar header

* fix(webui): synchronize npm lockfile for graph dependencies

* fix(webui): preserve compacted context and refine graph inspection

* fix(context): harden provenance, request usage, and drawer lifecycle

* fix(webui): align source skeleton and browser fixtures

* perf(context): reuse source analysis and capture request graphs once

* perf(webui): compact graph history and render graph motion on canvas

* fix(webui): remove redundant context sidebar header

* style(webui): clarify context replay icon

* perf(webui): pace context replay on an adaptive timeline

* feat(webui): briefly reveal labels for new context nodes

* fix(webui): reveal new labels only for loaded context files

* fix(webui): restart graph animation clock after idle

* fix(webui): reveal labels when replay reverses node exit

* refactor(context): project file-use facts without retention tracking

* refactor(context): observe file reads outside agent execution

* fix(webui): animate context sidebar closing

* refactor(context): remove unused graph and usage panel code

* refactor(context): isolate prompt observation from execution metadata

* fix(webui): clarify cache rate and show context token usage

* fix(webui): abbreviate context token counts in thousands

* fix(webui): omit token unit from context usage details

* fix(webui): restore large source preview highlighting and panel elevation

* fix(webui): distinguish modifier scrolling from keyboard focus

* fix(webui): align preview tab and panel corner radii

* fix(webui): attach file tabs to the header divider

* fix(webui): use one action to toggle file preview mode

* fix(webui): use hover hint for context replay

* fix(webui): share composer layout between graph and file sidebars

* fix(webui): align sidebar bottom with composer surface

* fix(webui): restore mobile graph drawing and touch file details

* test(webui): align legacy cache assertions with current label

* perf(context): retain source analysis and bound graph animation work

* style(webui): add light elevation to user messages

* test(webui): await lazy graph scene before replay assertions

* fix(webui): align preview skeleton and browser contracts
2026-11-05 17:09:20 +08:00
chengyongru e6127aa324 style(webui): refine Markdown reading typography (#6568)
* style(webui): refine Markdown reading typography

* fix(webui): stabilize composer and typography checks
2026-11-05 15:54:17 +08:00
chengyongru 0c92d5bb03 feat(webui): surface composer shortcut hints (#6567) 2026-11-05 13:32:55 +08:00
chengyongru 34bab234b5 fix(compaction): retain native state across retry and recovery (#6558)
* fix(compaction): retain native state across retry and recovery

Accept successful native compaction before generation, checkpoint its durable continuation, and reuse it across provider retry and fallback scopes. Preserve pending tool pairs and temporary-session ownership boundaries.

Resolves NAN-404

* test: fix native compaction regression imports
2026-11-04 16:28:45 +08:00
chengyongru 8ff04aad2b fix(webui): update usage and tool progress during active turns (#6553)
* fix(webui): stream model status and usage during active turns

* fix(webui): keep live rounds and active-run status consistent

* fix(webui): reuse existing run indicators without extra status text

* fix(webui): preserve live activity and batch durable delivery

Cancel and drain sibling tools when progress notifications fail, retain balanced checkpoints, and keep model telemetry separate from answer provenance.

Group-commit already queued activity at the channel delivery boundary while preserving FIFO, generation ownership, per-envelope admission, and commit-before-fanout semantics. Isolate invalid members without dropping valid neighboring events.

Retain tool detail lazy grouping and cover scheduling, cancellation, persistence, encoding failures, and projection regressions.

* test(webui): separate standard-library imports in batch regression

* test: tighten live execution checks and clarify contracts

* refactor: remove redundant live execution comments

* refactor: settle tool results through one output path
2026-11-04 16:27:24 +08:00
chengyongru 8632940a99 fix(webui): cache tool catalogs across settings navigation (#6552)
* fix(webui): cache tool catalogs across settings navigation

* refactor(webui): remove unreachable catalog invalidation condition
2026-11-04 00:30:33 +08:00
chengyongruandchengyongru 62c2ed4e7e refactor(goal): sustain one ReAct run until the goal closes (#6538)
* refactor(goal): sustain one ReAct run until the goal closes

Keep active goals in the same runner beyond the ordinary iteration limit, with a final answer after successful closure. Remove cross-turn goal handoffs, continuation allowances and rollback bookkeeping while preserving input authorization, recovery, cancellation and terminal lifecycle ownership.

Contributes to NAN-392

Co-authored-by: chengyongru <chengyongru.ai@gmail.com>

* test(goal): consolidate sustained-run regression coverage

Retain lifecycle, history, usage, provider-state privacy and checkpoint cancellation assertions in the existing long-run scenarios. Remove duplicate smoke cases and parameter combinations that do not exercise distinct behavior; keep real Gateway, authorization and generation regressions.
2026-11-03 22:47:00 +08:00
chengyongru 3545539128 fix(providers): update compaction retries in place (#6549)
* fix(providers): keep compaction retries in one status lifecycle

* refactor(providers): avoid redundant lifecycle copy on state reset
2026-11-03 18:17:45 +08:00
chengyongru 80ac41b1f4 refactor(sessions): persist archive state in SQLite (#6536)
* feat(webui): add archived chat management

* fix(webui): keep archived chats in the sidebar

* feat(webui): scope archived topics to sidebar groups

* fix(webui): reuse group dissolve label

* fix(webui): fail fast when adding panes

* refactor(sessions): persist archive state in SQLite

* refactor: limit archive changes to SQLite storage

* perf(sessions): avoid redundant archive I/O and read barriers

* fix(sessions): archive only persisted conversations
2026-11-03 15:58:41 +08:00
chengyongruandKDB 58a05ea3e0 fix(providers): prevent image retries from bypassing required compaction (#6548)
Co-authored-by: KDB <937925477@qq.com>
2026-11-03 15:36:36 +08:00
chengyongruandhellocodepy 36094bcf2c fix(whatsapp): update Neonize for current clients (#6545)
Co-authored-by: hellocodepy <hellocodelinux@gmail.com>
2026-11-03 13:51:49 +08:00
chengyongru 384b763830 fix(runtime): preserve recovery history and prevent unsafe MCP replays (#6537)
* fix(recovery): preserve complete checkpoints and refresh cancellation drafts

Retain earlier tool rounds and consumed follow-ups until the transcript is committed, and classify a fresh session after cancelling active recovery. Keep history and follow-up acknowledgement atomic through the session owner.

* test(recovery): cover completion during cancellation handoff

* fix(gateway): preserve failure exit status after runtime crashes

Report uncaught gateway runtime failures as exit code 1 after the existing cleanup, just like startup failures. Remove the startup-only guard without changing controlled shutdown or supervisor policy.

Reuse lifecycle regression coverage for startup/runtime failure diagnostics and cleanup, and update runtime fault fixtures to expect failure.

Refs: NAN-394

* fix(recovery): make interrupted tool outcomes explicit

* fix(mcp): avoid unsafe replays and retain error states

Recover stale connections before non-replayable tool submissions, and report unknown outcomes without replaying calls after transport loss. Preserve structured error results for resource and prompt wrappers.

NAN-393
NAN-395

* test(recovery): assert unknown outcome guidance

* fix(runtime): revalidate replay contracts and preserve recovery input identity

Bind replay safety to each request session, adopt the rediscovered contract, and stop automatic replay when it loses its safety declaration. Treat cumulative checkpoints as uncommitted deltas rather than deduplicating independent inputs by text, retaining legacy single-batch recovery compatibility.

Extend the existing reconnect and same-text follow-up regressions, and align MCP privacy/proxy fixtures with preflight and explicitly safe replay without relaxing their privacy or routing assertions.

* fix(mcp): report unknown outcomes after submitted tool timeouts

Real HTTP response-loss probing with Codex exposed that the MCP SDK can surface a lost response as a timeout. Preserve preflight timeout semantics, but report possible completed effects after a non-replayable request has started. Never replay or weaken task cancellation.
2026-11-02 17:55:14 +08:00
chengyongru c1ed649b81 fix(webui): avoid remounting outgoing conversations (#6540)
* fix(webui): avoid remounting outgoing conversations

Reset subtask disclosure state within its session scope instead of keying the entire transcript before the stream message handoff. Cover the outgoing DOM lifecycle and disclosure reset with unit and browser regressions.

Resolves NAN-396

* fix(webui): reset transcript UI on message ownership changes

Keep the selected conversation separate from the owner of currently rendered messages. Reset the message subtree only when its owner changes, so cached and forked conversations get fresh UI state without remounting outgoing diffs.

Extend the history-only caller and cover cached fork activity isolation while retaining the outgoing-DOM regression.
2026-11-02 17:42:16 +08:00
chengyongru a4d2430140 refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00
chengyongru cb3ba45317 refactor: remove legacy history and proxy migrations (#6518) 2026-10-29 18:28:44 +08:00
chengyongru acc3750c28 refactor(channels): move tool hint rendering out of core (#6498)
* refactor(channels): move tool hint rendering out of core

* test: align progress privacy check with structured tool events
2026-10-29 10:37:29 +08:00
chengyongruandXiaoyu-hub 4a14faa47e fix(webui): keep saved topics bound to their project (#6509)
* fix(webui): keep saved topics bound to their project

Lock the project as soon as the session exists, independently of loaded history. Validate both explicit updates and message admissions against the persisted directory while retaining same-project permission changes.

Related to #6505.

Co-authored-by: Xiaoyu-hub <17346801517@163.com>

* test(agent): retain goal shutdown failure stacks

Use the existing stop_loop diagnostic without changing the five-second teardown deadline or the goal assertions. The Windows failure on #6509 reached session shutdown but did not capture its worker stacks.

* test(cron): await rearm tick completion instead of disk timing

The Windows run completed the first and last jobs correctly, but rescheduling took over three seconds inside a two-second timeout. Await the original timer task, detect an early exit before callback entry, and preserve job-order, cancellation, persistence and rearming assertions. Keep real disk writes and all parameterized cases.

Also place the goal-shutdown diagnostic import in the existing first-party group.

---------

Co-authored-by: Xiaoyu-hub <17346801517@163.com>
2026-10-28 21:37:23 +08:00
chengyongru 927eba89ea fix(websocket): abort disconnected HTTP handshakes before sending (#6348) 2026-10-27 20:46:47 +08:00
chengyongru 219c8bb2bc fix(agent): preserve streamed replies after model failures (#6494)
* fix(agent): preserve streamed replies after model failures

* test(webui): settle lazy imports and async settings saves

* test(agent): synchronize estimation checks at the operation boundary

* docs(webui): explain retained replies after stream failures
2026-10-27 16:22:33 +08:00
chengyongru 164ddadd8e fix(webui): align chat links with edit filename colors (#6484) 2026-10-27 13:05:32 +08:00
chengyongru 69d2fd87b0 fix(webui): check explicit file links before enabling previews (#6483) 2026-10-27 09:40:44 +08:00
chengyongru 7e5dcb79e0 feat(webui): complete bang commands and literal output (NAN-291) (#6173)
* feat(webui): complete direct bang shell commands

Reuse the gateway user-shell side channel, retain failed drafts without reconnect replay, and preserve literal output across live delivery and history. Highlight the bang prefix before and after sending.

NAN-291

* fix(clients): preserve literal shell output through display metadata
2026-10-26 23:35:26 +08:00
chengyongru f23a6d1485 refactor: remove verified unused internals (#6460)
* refactor: remove verified unused internals

* test(linear): synchronize webhook shutdown with writer join
2026-10-26 21:45:36 +08:00
chengyongru 9b3af7b66c feat(webui): keep delegated work within reach (#6443) 2026-10-26 13:16:44 +08:00
chengyongru 83b6112843 fix(webui): crossfade theme changes as one page (#6459)
* fix(webui): crossfade theme changes as one page

* test(webui): align selection highlight motion checks

Follow the shared CSS transition contract instead of obsolete Tailwind utilities. Verify normal geometry easing and reduced-motion theme paint in the browser without changing accepted theme behavior or relaxing CI gates.
2026-10-25 23:54:06 +08:00