Commit Graph
2393 Commits
Author SHA1 Message Date
Xubin Ren 7b38d3c814 test(exec): capture nonstandard sandbox launcher behavior 2026-11-08 14:29:46 +08:00
Xubin Ren cdaae66c89 chore(release): prepare 0.4.1 (#6570)
Prepare version 0.4.1 and document the retained legacy upgrade path.

Avoid false busy update handoffs from disabled or not-yet-due idle scans. Keep real work, maintenance, lease and data-protection checks intact.

Retain safe package-failure diagnostics and cancellable test-controller progress checks. Reduce Windows installer startup contention without changing command deadlines or behavioral assertions.

Validated on the reviewed head with all required PR checks and the exact five-platform candidate. Historical package and recovery coverage remains as documented in the release acceptance record. Publication is separate; this merge does not create a tag, release, upload or feed change.
2026-11-06 20:48:57 +08:00
chengyongru 1a89a25abd perf: reduce memory copies across files, sessions, and model requests (#6581) 2026-11-06 17:50:25 +08:00
chengyongru 92e6608e6e fix(webui): preserve unmigrated workspace history ownership 2026-11-06 11:19:04 +08:00
chengyongru 812b92d734 Revert "refactor: remove legacy history and proxy migrations (#6518)"
This reverts commit cb3ba45317.

Keep JSONL history and legacy proxy migration available throughout 0.4.x. Mark their removal for 0.5.0 in code and release guidance, preserving later context graph, archive and recovery changes.
2026-11-06 10:58:10 +08:00
Xubin Ren 3918ece17f test: separate preparation responsiveness from persistence timing 2026-11-06 10:31:35 +08:00
Xubin Ren 475b045b6f test(ci): remove Docker output and stdin timing races 2026-11-06 09:01:58 +08:00
Xubin Ren 112ea9d174 test(skills): verify source identity across public API and browser 2026-11-06 00:26:32 +08:00
Xubin Ren 70eca8343b fix(skills): distinguish marketplace installation sources 2026-11-06 00:26:32 +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 2b44088413 refactor(commands): own trusted Shell completion outside agent loop 2026-11-05 16:39:09 +08:00
Xubin Ren 955b1edd99 test(cron): allow durable late-result routing under CI load 2026-11-05 12:13:58 +08:00
Xubin Ren 9e161673bb test(webui): allow durable checkpoint setup under CI load 2026-11-05 12:13:58 +08:00
Xubin Ren 382f1b12e8 test(agent): allow storage shutdown to finish during cleanup 2026-11-05 11:33:08 +08:00
Xubin Ren ef9409dc89 ci: run Windows gateway stop checks with serial coordination 2026-11-05 11:33:08 +08:00
Xubin Ren 72e4297c7a test(channels): keep retry checks independent of scheduling speed 2026-11-05 11:33:08 +08:00
Xubin Ren 2841706fea test(cron): bound async progress separately from persistence 2026-11-05 11:33:08 +08:00
Xubin Ren 8075397a01 test(agent): guard maintenance transitions separately 2026-11-05 10:49:42 +08:00
Xubin Ren 215f0754e2 fix(agent): keep idle scans off the inbound consumer 2026-11-05 10:49:42 +08:00
Xubin Ren ce3aa50e70 test(rg): use native paths for mocked sandbox launchers 2026-11-04 23:33:49 +08:00
Xubin Ren 3a8dc82251 test(shell): use native paths in sandbox platform fixture 2026-11-04 23:33:49 +08:00
Xubin RenandTenable Research 219dd13fd8 fix(webui): enforce workspace authority across queued inputs
Keep workspace changes at the authenticated owner boundary. Queue follow-up inputs separately when their tool scope differs from the active run.

Co-authored-by: Tenable Research <152317477+tenbbughunters@users.noreply.github.com>
2026-11-04 23:33:49 +08:00
Xubin RenandTenable Research 4dd3fbecb6 fix(exec): confine selected shells behind the sandbox launcher
Co-authored-by: Tenable Research <152317477+tenbbughunters@users.noreply.github.com>
2026-11-04 23:33:49 +08:00
c8dba74fc5 fix(codex): fail closed on TLS certificate errors
Keep certificate and hostname verification enabled for HTTP and WebSocket requests. Honor explicit CA trust without changing configured proxy routing.

Co-authored-by: Wu Shuwen <mikewushuwen@outlook.com>
Co-authored-by: Xubin Ren <52506698+Re-bin@users.noreply.github.com>
2026-11-04 23:33:49 +08:00
chengyongruandBillDwyer 84d96d8a1e fix(subagent): inherit parent tool configuration
Preserve configured tool settings when building subagent registries while retaining the effective workspace restriction.

Co-authored-by: BillDwyer <BillDwyer@users.noreply.github.com>
2026-11-04 18:26:47 +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 006a535537 fix(webui): preserve MCP ready state after plugin toggles 2026-11-04 16:20:09 +08:00
Xubin Ren 65b6fd03ce ci(release): share manual and opt-in daily candidate preparation 2026-11-04 13:58:24 +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
chengyongruandXubin Ren 8b37976d36 fix(providers): tighten tool calls and compatibility fallbacks
Require structured tool calls and explicit unsupported-feature errors.
Preserve supported SDK compaction requests and add compatibility coverage.

Co-authored-by: Xubin Ren <52506698+Re-bin@users.noreply.github.com>
2026-10-31 11:55:13 +08:00
chengyongru 3e40684112 refactor(agent): delegate recovery channel eligibility to admission 2026-10-30 18:31:05 +08:00
chengyongruandchengyongru 29d0023fca fix(tools): correct DeepSeek Search rate-limit guidance
Remove stale quota details from the 429 diagnostic and configuration guide. Point users to DeepSeek for current account limits.

Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
2026-10-30 18:19:23 +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
chengyongruandB Rishabh Rao 1c28b20c7e fix(gateway): reuse Windows-safe atomic lease I/O
Adopt the read_atomic_bytes/replace_atomic integration proposed by
balabommablock-cpu, preserving UTF-8 decoding and the existing lease locks.
Exercise a real snapshot reader across an actual replacement instead of
only checking helper calls.

Adapted-from: https://github.com/balabommablock-cpu/nanobot/commit/8d671457935e44579f37ceffe6dbaf61b36b00be
Related to HKUDS/nanobot#6514

Co-authored-by: B Rishabh Rao <262621052+balabommablock-cpu@users.noreply.github.com>
2026-10-29 13:11:21 +08:00
chengyongruandBBTAN-bot 2853287ed7 perf(gateway): avoid unchanged client lease writes
Keep status snapshots read-only and only persist monitor cleanup when
client records change, while retaining atomic orphan shutdown decisions.

Related to HKUDS/nanobot#6514

Co-authored-by: BBTAN-bot <255698778+BBTAN-bot@users.noreply.github.com>
2026-10-29 13:11:21 +08:00
chengyongruandOrrin Witt c5cee9f204 feat(matrix): make non-threaded reply quoting optional
Add replyToMessage, enabled by default, so deployments can turn off automatic room-level reply quotes without changing thread relations or streaming replacements. Expose the setting in the channel contract and all locales, document it, and cover both settings in the existing send tests.

Co-authored-by: Orrin Witt <orrin.witt@gmail.com>
2026-10-29 11:18:26 +08:00
chengyongru 4e77d9c3f2 fix(retry): prevent replay amplification and isolate backoff (NAN-313) 2026-10-29 11:13:44 +08:00
davidandchengyongru b6d9009bb4 refactor(sessions): discover target handles through search (#6315)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-10-29 10:38:06 +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
chengyongru 2a3d29ce73 refactor(webui): centralize outbound delivery (NAN-365) 2026-10-28 22:17:53 +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
Xubin Ren 4a6ed1a673 test: await busy-session batch completion instead of polling 2026-10-28 16:54:41 +08:00
Xubin Ren e9532d4100 test(release): preserve PTY exit output and await durable admission 2026-10-28 16:54:41 +08:00