Commit Graph
5026 Commits
Author SHA1 Message Date
chengyongru d5cf09d738 fix(webui): preserve cross-session provenance at display persistence (#6379)
* fix(session): bind internal input identity before acceptance

* fix(webui): bind cross-session display writes at persistence boundary

* fix(webui): simplify session messages to current-target display writes

* chore: trim redundant session message comments
2026-10-22 01:24:18 +08:00
chengyongru b37a23698d fix(webui): admit history without dropping live output (NAN-311) 2026-10-22 01:22:49 +08:00
chengyongru df63526ddf fix(webui): remove Mermaid preparation status text (#6380)
* fix(webui): remove Mermaid preparation status text

* fix(webui): remove remaining Mermaid preparation copy and locales
2026-10-22 00:12:15 +08:00
chengyongru 67fc220c8a ci: scope native acceptance and bind release candidate artifacts (#6378)
* ci: scope native acceptance and bind release candidate artifacts

* ci: isolate Windows installers and use portable Git tree fixtures

* test: preserve installer subprocess diagnostics on timeout
2026-10-21 23:50:58 +08:00
chengyongru 4dc695ca76 fix(webui): keep version checks on the gateway event loop (#6376)
* fix(webui): keep version checks on the gateway event loop

* fix(webui): keep update channel failures factual

Note: CI failed, but it’s not related to this PR.
2026-10-21 23:08:35 +08:00
chengyongru 29d1600837 fix(webui): synchronize neutral Ring sidebar activity indicators (#6371)
* fix(webui): synchronize neutral Trace sidebar activity indicators

* fix(webui): use the requested Ring activity indicator

* fix(webui): synchronize running rings before their first frame
2026-10-21 21:40:39 +08:00
Xubin Renandchengyongru fbb61a373f feat(update): integrate managed installs and recoverable in-app updates (#6168)
Add owner-aware Stable and Preview updates with explicit consent, verified release plans, protected process handoff and bounded service recovery. Keep configuration and conversations separate from program rollback.

Include the compact About controls, Windows long-path support, native package recovery checks and optional macOS Dock lifecycle integration. Preserve documented guidance for installations owned by other managers.

This code integration does not publish packages, enable signing or advance the public update channel.

Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
2026-10-21 19:16:56 +08:00
chengyongru 76da55994b fix(webui): preserve answer checkpoints and stream order (#6368)
* fix(webui): preserve answer checkpoints and stream order

* fix(stream): close hosted-tool answer segments at the producer
2026-10-21 18:30:52 +08:00
chengyongru d2ab462b42 fix(webui): render cross-session inputs as left-aligned bubbles (NAN-317) (#6369)
* fix(webui): render cross-session inputs as left-aligned bubbles (NAN-317)

* fix(webui): place source handles above session bubbles
2026-10-21 18:03:37 +08:00
chengyongru b32b1327ce refactor(session): unify model and display history storage (#6336)
* refactor(session): persist display history in SQLite

* fix(session): preserve new fork activity timestamps

* test(agent): use SQLite-owned model failure recovery fixture

* test(agent): isolate session slash routing from loop shutdown

Exercise the real inbound dispatcher and await its session worker. Keep response deadlines and behavioral assertions, while leaving full SQLite cleanup to the existing async fixture rather than an unrelated two-second shutdown deadline.

* fix(webui): admit direct deliveries to display history

* docs: clarify session history migration guidance
2026-10-21 16:13:59 +08:00
chengyongru d617b723aa test(webui): respect history top-edge tolerance (#6362)
* fix(webui): wait for native scrolling before loading history

* test(webui): align loading checks with the top-edge tolerance
2026-10-21 15:10:09 +08:00
chengyongru f284749d2f ci: reduce Python test overhead and Windows latency (#6357)
* test: merge overlapping semantic contract coverage

Consolidate the six confirmed NAN-310 overlap groups while preserving replay, usage, generation kwargs, archive metadata, inspect fields, and subagent crash/redelivery assertions.

* test: lighten history seeds and layer runner progress rules

* ci: defer test storage setup and record phase timings

Close each listener-owned binary bridge before waiting for its TCP server; retain active upload and undecided-connection regressions. Avoid consuming readiness twice and run the repository import scan once in its static gate. NAN-310.

* test: scope filesystem mocks and observe consumed socket prefixes

* test: publish subprocess readiness files atomically

* ci: isolate external tool discovery and use three Windows workers
2026-10-21 14:47:55 +08:00
chengyongru 743c51e81f fix(webui): stabilize earlier-history loading and reclaim space (#6349)
* fix(webui): retain smoothly revealed history loading headers

* refactor(webui): simplify history loading feedback

* fix(webui): keep retained history headers clear of preceding text

* fix(webui): reclaim completed history loading space

* refactor(webui): group history projection handoff with navigation

* test(webui): synchronize history motion observations

* fix(webui): collapse history completion geometry handoff
2026-10-21 13:10:05 +08:00
chengyongru 73a55e0b2f fix(gateway): request graceful Windows shutdown (#6353)
* fix(gateway): request graceful Windows shutdown

* docs(cli): simplify Windows gateway stop guidance

* test(gateway): compare native Windows owner SIDs
2026-10-21 11:05:30 +08:00
chengyongru fd30fda8a2 fix(webui): stabilize transcript while typing multiline drafts 2026-10-21 10:50:03 +08:00
Xubin Ren 28f6c26946 fix(webui): recover model failures and align chat controls 2026-10-21 02:34:09 +08:00
chengyongru 688976bcb9 fix(agent): skip subagent sessions during idle compaction (#6339)
Refs: NAN-304
2026-10-20 22:26:49 +08:00
chengyongru 14d9e6ed0d fix(webui): show skeleton while conversation history loads 2026-10-20 22:01:40 +08:00
chengyongru 85bee83247 fix(qq): preserve settings and onboarding credentials 2026-10-20 21:55:17 +08:00
chengyongru 3ba93ba8e3 fix(qq): add gateway-free QR connection gallery preview 2026-10-20 21:55:17 +08:00
bingqilinweimaotaiandClaude Code 6741acb391 feat(qq): add QR scan connection for QQ bots
Scan the official QQ Bot binding page from Channels → QQ or
`nanobot channels login qq`; the returned AppID and encrypted secret are
decrypted locally, saved to config, and the channel is enabled by the
existing post-connect flow. The WebUI keeps manual entry of AppID and
Secret in Advanced, restores every QQ setup field there, and warns that
scanning again rotates the App Secret and invalidates the previous one.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-20 21:55:17 +08:00
chengyongru 9adbcc2cef feat(tui): render Mermaid diagrams as terminal images (#6320)
* feat(tui): render Mermaid diagrams as terminal images

* perf(tui): streamline Mermaid rendering and resource ownership

* fix(tui): clarify diagram navigation hints

* fix(tui): release viewer layout leases and retain retry targets

* docs(tui): keep Mermaid guide focused on usage
2026-10-20 17:28:36 +08:00
chengyongru 9b5d552f40 test(webui): synchronize touch composer typography snapshots 2026-10-20 17:27:35 +08:00
chengyongru f80956966b fix(webui): hide exhausted history hints at rest
Refs NAN-300
2026-10-20 17:04:29 +08:00
chengyongru e44ebb164d fix(webui): keep zoomed Mermaid images sharp 2026-10-20 16:59:18 +08:00
chengyongru ae5cb64e9e fix(webui): localize the component gallery 2026-10-20 16:52:44 +08:00
chengyongru 282839cc65 feat(webui): add reading text size preferences (#6325)
* feat(webui): add reading text size preferences

* fix(webui): align loading skeletons with reading typography
2026-10-20 16:33:05 +08:00
chengyongru 816c9221a0 fix(webui): add spring feedback at the history boundary (#6322)
* fix(webui): add spring feedback at the history boundary

Refs NAN-287.

* fix(webui): refine history boundary states and retry feedback

* fix(webui): share history loading states with subagents
2026-10-20 15:32:21 +08:00
chengyongru a1bca7dc50 fix(webui): restore full-project typechecking 2026-10-20 14:47:38 +08:00
chengyongru f869212e7d perf(ci): shorten WebUI feedback latency
Run WebUI checks/build and browser regressions on independent runners while preserving the existing webui aggregate check and every acceptance command. Advance the existing invalid-input validation windows with scoped fake timers instead of real sleeps.
2026-10-20 14:38:57 +08:00
chengyongru 11152626f8 fix(webui): refine browser notifications (NAN-227)
Reconcile the original notification fix with the integrated main snapshot.

Group notification settings and simplify localized copy and documentation.
Preserve permission opt-out and notification click routing across app transitions.
Suppress late completion notifications for discarded temporary chats and align
notification settings skeletons with the loaded layout.
2026-10-20 13:45:04 +08:00
Xubin Ren 7b2af031c0 fix(webui): make browser notification failures actionable 2026-10-20 13:45:04 +08:00
chengyongru 909b277e7a fix(webui): recognize typed session handles as references (#6311)
* fix(webui): recognize typed session handles as references

Refs NAN-286

* refactor(webui): simplify session reference handling

* fix(webui): recognize mentions after punctuation

* docs(webui): focus topic references on usage
2026-10-20 01:05:11 +08:00
chengyongru 1f8e49c70a fix(webui): align provider parameter row typography 2026-10-19 21:30:37 +08:00
chengyongru 125d9221d0 fix(webui): merge consecutive waiting messages (#6309)
* fix(webui): merge consecutive waiting messages

* fix(webui): retain legacy draft session targets on refresh
2026-10-19 21:06:46 +08:00
chengyongru 8778c69774 test(webui): await rendered canonical reconciliation 2026-10-19 17:42:04 +08:00
chengyongru f57018aa7f feat(webui): render Mermaid diagrams with Pele (#6302)
* feat(webui): render Mermaid diagrams with Pele

* fix(webui): reserve diagram replacement capacity

* fix(webui): prebundle lazy diagram worker dependencies

* fix(webui): account diagram capacity by encoded size

* fix(webui): use shared hover hints for diagram actions

* docs(webui): focus diagram guide on usage
2026-10-19 17:16:20 +08:00
chengyongru 0f3b47bc3a fix(webui): isolate transcript replay from live observers (#6306)
* fix(webui): isolate transcript replay from live observers

* docs(webui): shorten chat subscription ownership notes
2026-10-19 17:13:12 +08:00
chengyongru dca49c258a fix(tools): refine DeepSeek search credentials and query validation
Require a configured Search API key while preserving explicit ${VAR_NAME} references.
Reject overlong Unicode queries locally instead of silently truncating them.
Keep the shared Settings flow and condense the configuration documentation.
2026-10-19 16:50:17 +08:00
moran e5b469ebd4 feat(tools): add DeepSeek Search as a web_search provider
Add a standalone `deepseek` search backend that calls the DeepSeek Search
API (POST https://api.deepseek.com/v1/tools/search), following the
provider layout used by AnySearch (#5607) and Bocha (#4182).

This is a search-only integration. It does not touch the DeepSeek LLM
provider, does not inject a `web_search` tool into model requests, and
does not implement the Fetch endpoint.

- Trim and truncate queries to the API's 128 Unicode-character limit
  locally, rejecting whitespace-only queries without a network call.
- Clamp `count` to the API's 1-50 range and always send
  `need_content: false` so page bodies stay out of the model context.
- Format results from `summary`, falling back to `snippet` when a summary
  is missing or blank, and include `date` when present. Cap each result's
  text at 500 characters: live responses reach ~4,500 characters, so ten
  uncapped results cost roughly 10k tokens per call.
- Return actionable 401 and 402 messages; retry 408/429/5xx once after
  1.0s like the Brave provider; surface `error.message` for other 4xx,
  tag-stripped because the upstream body is untrusted. Unexpected
  transport errors report the exception type only, with the detail
  logged when tool log content is allowed.
- Read the key from `tools.web.search.apiKey` or `DEEPSEEK_API_KEY` and
  fall back to DuckDuckGo when neither is set, like other keyed
  providers. The key is never logged or echoed in errors.
- Register the provider for the CLI wizard and WebUI settings, and reuse
  the bundled DeepSeek brand asset.
2026-10-19 16:50:17 +08:00
chengyongru 5d886fbb20 fix(webui): show route-aligned skeletons from first paint (#6303) 2026-10-19 15:57:32 +08:00
chengyongru af68da3280 perf(webui): reuse versioned history navigation snapshots 2026-10-19 13:45:04 +08:00
chengyongru 103840171b fix(docker): preserve explicit config selectors during bootstrap
Only initialize the Compose default instance when no --config/-c selector is present. Preserve all CLI-supported selector spellings and cover gateway/API startup against selected persisted settings in the Docker smoke test.
2026-10-19 13:02:26 +08:00
chengyongru b079522fa1 style(api): keep model setup error on one line 2026-10-19 13:02:26 +08:00
chengyongru 3ab8082118 test(docker): read persisted configuration as UTF-8 on Windows 2026-10-19 13:02:26 +08:00
chengyongru de8fbc3ad2 fix(api): keep unconfigured services running and preserve Docker onboarding 2026-10-19 13:02:26 +08:00
chengyongru e20737a509 fix(docker): validate and atomically save first-boot configuration 2026-10-19 13:02:26 +08:00
LuckVd ef2cd0c8c7 Activate the api profile in the compose privilege-boundary check
The boundary assertion materializes gateway, api and cli from the merged
compose config; with nanobot-api now under the api profile it must opt in
explicitly or the lookup raises KeyError.
2026-10-19 13:02:26 +08:00
LuckVd ddd22a26f8 Bootstrap a working Docker Compose config on first boot so the WebUI works out of the box
A fresh 'docker compose up' started with no config (the entrypoint only
bootstrapped for Render), so every published port was unreachable: the
gateway and WebSocket channel defaulted to a container-local 127.0.0.1
bind, and nanobot-api exited into a restart loop because serve refuses a
non-loopback host without an api_key.

Bootstrap config.json for container runs (NANOBOT_DOCKER_BOOTSTRAP, set
by docker-compose.yml) from a committed docker-config.json with binds
that survive the container boundary, baking the WebUI token and API key
at first boot (env value if provided, generated otherwise, printed to
the log). Move nanobot-api under the 'api' profile since it cannot
serve before a provider is configured. Install curl in the image and
document the new first-boot flow.

Fixes #6165
2026-10-19 13:02:26 +08:00
chengyongru 53e0edf709 fix(session): prevent consumed follow-ups from replaying after restart (#6299)
* fix(session): atomically acknowledge consumed follow-ups

* refactor(webui): drop legacy follow-up replay compatibility
2026-10-19 11:31:19 +08:00