Commit Graph
310 Commits
Author SHA1 Message Date
Xubin Ren 259c05e747 Register ShengSuanYun as a standard provider 2026-11-14 20:44:28 +08:00
Xubin Ren ebb8419ddf refactor(providers): register shared setup templates 2026-11-14 20:44:28 +08:00
Xubin Ren 221e121387 fix(settings): use a setup template for ShengSuanYun 2026-11-14 20:44:28 +08:00
Xubin Ren eb1df4d7b1 fix(providers): preserve existing ShengSuanYun connections 2026-11-14 20:44:28 +08:00
Xubin Ren cc57c35014 feat(providers): add ShengSuanYun gateway 2026-11-14 20:44:28 +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 c7a1eb910d fix(webui): prevent single-dollar math from crossing code spans (#6646) 2026-11-13 14:04:05 +08:00
chengyongru 25ed91ffeb refactor: drop unreferenced dead code
Every removed symbol has no reference anywhere in the tree (Python AST and
TypeScript identifier scans over all tracked files, including tests, docs,
WebUI/TUI clients, and JSON/YAML data):

- nanobot/webui/settings_api.py: four aliases with no importer and no
  in-module use; the helpers that tests still import stay.
- nanobot/sdk/types.py: snapshot_from_payload had no caller since session
  restore moved to snapshot_from_session.
- nanobot/session/jsonl_migration.py: INTRODUCED_VERSION and
  LAST_SUPPORTED_RELEASE_LINE duplicated the module docstring.
- nanobot/providers/transcription.py: StepFunTranscriptionProvider._DEFAULT_URL
  was superseded by _resolve_stepfun_asr_url.
- nanobot/channels/whatsapp_agent/protocol.py: CODE_MISSING_AUTH is neither
  exported nor compared; validation still checks the wire value 190.
- webui/src/lib/canonical-run-snapshot.ts: canonicalRunSnapshot had no caller.
- webui/src/components/icons/product-icons.tsx: SendIcon and RunningTaskIcon
  are not rendered anywhere.
- webui/src/components/thread/AgentActivityCluster.tsx: drop an unused
  isAgentActivityMember re-export and its import.
- webui: drop the unused micromark-util-decode-string dependency.

Framework-dispatched code (Typer commands, pydantic validators, pytest hooks
and fixtures, channel runtime classes, ast visitor hooks) was excluded from
the scans, so the change removes only code nothing references.
2026-11-12 22:54:51 +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 b49218b6a3 fix(webui): avoid phantom reasoning on empty streams 2026-11-12 17:34:07 +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
Xubin Renandchengyongru e6b0aec2a8 refactor(sessions)!: retire the global shared session (#6621)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-11-12 09:55:55 +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 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
Xubin Ren 220d5e6970 refactor(api)!: remove the standalone API server (#6614) 2026-11-10 10:46:14 +08:00
chengyongruandchengyongru 9257383bec refactor: remove unreachable internal code paths
Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
2026-11-09 13:38:39 +08:00
chengyongru 4212ad726d fix(webui): retain system context graph after compaction (#6608) 2026-11-09 13:20:46 +08:00
Xubin Ren 44d567e37c fix(webui): name the gateway sandbox launcher in setup guidance 2026-11-08 14:29:46 +08:00
Xubin Ren f5e5bd6ea0 feat(webui): guide sandbox launcher recovery from chat 2026-11-08 14:29:46 +08:00
Xubin Ren 5b84b78cac feat(settings): check sandbox launchers and configure protected paths 2026-11-08 14:29:46 +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 f5c359476b fix(webui): distinguish unknown history from exhaustion 2026-11-06 16:10:03 +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 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
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
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 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 9b3af7b66c feat(webui): keep delegated work within reach (#6443) 2026-10-26 13:16:44 +08:00
chengyongru eed7b47753 feat(webui): refine attachment galleries and file cards (#6457)
* feat(webui): refine attachment galleries and file cards

* fix(webui): align attachment tests and Escape handling
2026-10-25 22:39:44 +08:00
Xubin Ren ef8271b2c0 feat(webui): refine appearance and add custom reading sizes 2026-10-25 22:14:58 +08:00
chengyongru e821144c7e feat(webui): search loaded message text in Ctrl+K 2026-10-25 21:03:35 +08:00
chengyongru 8af6313c56 fix(webui): refresh pairing prompts on gateway changes (#6401) 2026-10-25 20:16:51 +08:00
chengyongru 5ae49a43e7 fix(webui): share sidebar and Composer run state (#6337) 2026-10-24 00:43:34 +08:00
chengyongru cf0a0276a7 feat(webui): add a compact composer workspace toolbar (#6256)
* feat(webui): add a compact composer workspace toolbar

* refactor(webui): simplify composer workspace access control

* feat(webui): add a draggable workspace access capsule

* refactor(webui): simplify composer permission controls

* fix(webui): align mobile workspace permissions and stabilize CI test
2026-10-23 21:09:21 +08:00
chengyongru 254f94b068 feat(attachments): support local files and video attachments (#6321)
* feat(attachments): support local files and video attachments

Share gateway inspection and send validation for borrowed local paths while preserving binary uploads, original-file ownership, and existing limits.

Related to NAN-284. Native provider video input remains outside this change.

* test: make cross-platform verification fixtures self-contained

* test(webui): align typed fixtures with runtime contracts

* fix(webui): preserve uploaded video playback during history sync

* test(tui): preserve local attachment drafts across resizes

* perf(attachments): preserve upload caches and release video previews

* docs(webui): keep attachment guidance user-focused

* chore: remove redundant dependency comment

* test(providers): make stream idle renewal timing deterministic

* fix(attachments): keep upload byte limits out of local references

Validate common format/count rules separately from upload byte budgets. Keep local inspection and send-time checks metadata-only, and exclude local references from composer and pending-upload totals. Explain upload size rejections with actual size and maximum in all ten locales. Related to NAN-284.

* fix(attachments): retain image references and draft order

* fix(attachments): close local reference UX and authorization gaps

* fix(attachments): preserve focus during asynchronous path confirmation
2026-10-22 18:32:18 +08:00
chengyongru 169062be11 fix(webui): offer restart in installed channel rows (NAN-334) (#6392)
* fix(webui): offer restart in installed channel rows (NAN-334)

* fix(webui): align channel restart icon and hover hint

* fix(webui): explain channel installs blocked by restart
2026-10-22 17:03:02 +08:00
chengyongru 08ca3b4525 refactor(webui): use native link actions and remove website previews (#6391)
* refactor(webui): remove website previews and custom link menus

* docs(webui): focus guide on product-specific usage
2026-10-22 16:34:54 +08:00
chengyongru bc5c58d239 feat(webui): distinguish context compaction reasons (NAN-324) (#6389)
* feat(webui): distinguish context compaction reasons (NAN-324)

* fix(webui): describe idle compaction cancellation as interruption

* docs: omit compaction notice details from configuration guide

* fix(i18n): make compaction notices read naturally

* fix(i18n): keep CJK compaction notices concise

* fix(i18n): describe idle compaction as unfinished
2026-10-22 16:13:25 +08:00
chengyongru 084b6bb394 feat(network): centralize proxy settings and add MCP routing (NAN-315) (#6372)
* feat(network): share proxy settings across features and MCP (NAN-315)

* fix(network): address shared proxy review regressions

* test(network): align rebased OAuth fixtures with runtime admission

* fix(webui): configure shared proxy without leaving connection drafts

* feat(webui): add optional shared proxy authentication editor

* fix(webui): align proxy save tests and loading skeleton
2026-10-22 15:49:27 +08:00
chengyongru be43d2a5f8 fix(compaction): align native lifecycle and reconcile replay notices
Refs: NAN-326, NAN-327
2026-10-22 14:39:30 +08:00
chengyongru 130f4edefe fix(qq): clarify QR binding states and setup actions (#6340)
* fix(qq): clarify QR binding states and setup actions

* fix(qq): confirm rebinding instead of showing a persistent warning

* fix(qq): make rebind credential warning conditional

* docs(qq): align rebind guide with conditional warning
2026-10-22 01:55:20 +08:00
chengyongru b37a23698d fix(webui): admit history without dropping live output (NAN-311) 2026-10-22 01:22:49 +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