Commit Graph
5178 Commits
Author SHA1 Message Date
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
chengyongru e71bc95364 fix(webui): prevent inline math overlap in markdown tables 2026-11-03 15:13:49 +08:00
chengyongruandPratik Parmar cc4dd1cebf fix(whatsapp): report libmagic dependency failures
Co-authored-by: Pratik Parmar <steveparmar6nov2011@gmail.com>
2026-11-03 14:17:51 +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
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
Xubin Ren 7eacc789d4 docs: add nanobot WeChat community QR entry 2026-10-30 14:32:46 +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
Orrin Witt 8a989d5adf feat(matrix): per-room group policy overrides (groupPolicyOverrides) (#6287) 2026-10-29 11:52:57 +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
Orrin Wittandchengyongru b1cc89e922 feat(matrix): add "listen" group policy (observe room, reply on mention) (#6289)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-10-28 23:17:05 +08:00
chengyongru 55210eb9f1 docs: refresh README news and WebUI gallery 2026-10-28 22:20:10 +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 8f7a7d1759 fix(build): fetch locked WebUI packages from npm registry 2026-10-28 17:28:59 +08:00
Xubin Ren 18ffa65550 docs: reconcile 0.4.0 with obsolete upgrade wizard removal 2026-10-28 16:54:41 +08:00
Xubin Ren 8268910a4f ci: bound Windows persistence test contention 2026-10-28 16:54:41 +08:00
Xubin Ren 2165173e1f test(release): cover Windows polling on Python 3.12 2026-10-28 16:54:41 +08:00
Xubin Ren 76cb13c8cd test(release): provision CJK fonts for native Linux acceptance 2026-10-28 16:54:41 +08:00
Xubin Ren 3f5ca7e896 fix(tui): resolve readable macOS CJK fonts for native diagrams 2026-10-28 16:54:41 +08:00
Xubin Ren 4a6ed1a673 test: await busy-session batch completion instead of polling 2026-10-28 16:54:41 +08:00
Xubin Ren d6ca89908c fix(tui): identify unavailable native font faces 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
Xubin Ren 8ee81cc78a test(release): exercise exact native terminal packages across platforms 2026-10-28 16:54:41 +08:00
Xubin Ren 2cfb2b6d2c test(release): verify retained-volume upgrades from the real Docker release 2026-10-28 16:54:41 +08:00
Xubin Ren 656f124fe9 test(release): resolve real historical baseline dependencies 2026-10-28 16:54:41 +08:00
Xubin Ren 91972b0e4f fix(release): preserve candidate source across artifact transport 2026-10-28 16:54:41 +08:00
Xubin Ren 89d35863d9 fix(webui): reinstall locked dependencies when rebuilding source upgrades 2026-10-28 16:54:41 +08:00
Xubin Ren 897c8b013f ci(release): verify exact candidate wheels on all five native targets 2026-10-28 16:54:41 +08:00
Xubin Ren 30c66c1719 test(release): make native macOS acceptance reproducible 2026-10-28 16:54:41 +08:00
Xubin Ren 428b5fb619 chore(release): refresh PDF image and Git runtime dependencies 2026-10-28 16:54:41 +08:00
Xubin Ren b2dd9053a6 test: seed disposable environments on Homebrew Python 2026-10-28 16:54:41 +08:00
Xubin Ren 19c18aaafd fix(release): verify final candidates and refresh SVG parser 2026-10-28 16:54:41 +08:00
Xubin Ren 4574a9b859 fix(release): support zero-patch candidates in upgrade acceptance 2026-10-28 16:54:41 +08:00
Xubin Ren f93e926182 chore(release): prepare 0.4.0 2026-10-28 16:54:41 +08:00
chengyongru 32ee2810a1 chore(skills): remove obsolete update-setup skill 2026-10-28 14:37:52 +08:00
chengyongruandsnailak c758ce8f40 fix(runtime): stop Windows identity polling memory leak
Reuse the FILETIME structure and cached kernel32 bindings rather than creating a new ctypes pointer type for every identity query. Python before 3.14 retains those types in its global pointer cache, so idle WebUI and gateway polling could accumulate gigabytes.

Keep each identity query live and preserve the native HANDLE signatures and handle cleanup. Add a native Windows regression that checks identity stability and a bounded set of pointer types, including on Python 3.14 where ctypes no longer retains the types globally.

Fixes #6506

Co-authored-by: snailak <141750781+snailak@users.noreply.github.com>
2026-10-28 11:49:26 +08:00
chengyongru b07b3eac24 fix(webui): retain history touch gestures across message replacement 2026-10-27 21:05:32 +08:00
chengyongru 927eba89ea fix(websocket): abort disconnected HTTP handshakes before sending (#6348) 2026-10-27 20:46:47 +08:00
chengyongru aacc780084 docs: clarify contribution policy and issue author credit 2026-10-27 20:38:16 +08:00