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.
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.
* fix(deepseek): preserve vision for legacy Flash aliases
* fix(deepseek): expose validated model catalog capabilities
* fix(deepseek): retain explicit off control with live reasoning levels
* docs: clarify provider-specific model guidance
Adds `whatsapp_agent`, an additive channel that connects nanobot to the
official WhatsApp Agent Platform API (https://api.whatsapp.com/agent/v1).
It authenticates with a per-agent API token and long-polls `GET /updates`
instead of linking a device, so it is the officially supported interface
rather than the Neonize linked-device protocol used by the existing
`whatsapp` channel.
The existing `whatsapp` channel is unchanged; both can run at once under
different names.
Design notes:
- The poll cursor, dedup window, and creator identifier live in one
atomically replaced state file. A message id is recorded before it is
handled, so a crash re-reads the batch without answering twice, and the
cursor is only accepted after the batch is processed.
- The first poll omits `offset`, which resolves the head and never replays
up to 30 days of history into an auto-replying agent.
- A changed token resets the cursor, because `next_offset` is only valid
for the agent that issued it.
- Each API method is paced below its own rolling 60-second limit, and
progress/tool-hint messages default to off because they spend the shared
12-per-minute send budget.
- Retries are limited to confirmed non-delivery (`429`, `503`/`131016`).
A `500` or read timeout is ambiguous, so it is not retried unless
`retryAmbiguousSends` is set; a duplicate is worse than a missed reply.
- Inbound media is downloaded through the shared SSRF guard, size-capped,
and verified against the reported digest. Outbound media is validated
before upload.
- Reactions are receive-only, matching the API. The token is never logged
or persisted; state stores only a SHA-256 fingerprint.
Docs compare both WhatsApp channels, including the lack of end-to-end
encryption, country availability, and rate limits.
Render recovery decisions only for awaiting_user and failed states so a reload cannot resurrect a resuming banner. Preserve the runtime recovery state and normal running controls.
Refs NAN-260
* fix(webui): wait for sidebar state before persisting edits
* test(webui): load sidebar state in temporary chat fixtures
* fix(webui): preserve sidebar pushes during initial reads
* fix(webui): require successful session reads before pruning
Treat sidebar initialization and session-list completeness as separate permissions. Retain sidebar metadata, workbench panes, activity markers, and workspace overrides when the session list fails or only a partial reload cache is available.
Add integration coverage for recovery with and without cached sessions, successful deletion reconciliation, and successful empty session lists.
* test(webui): align sidebar recovery fixture with current schema
Remove obsolete preview and timestamp settings from the raw API fixture. Assert supported view preferences while retaining exact metadata and workbench comparisons.
---------
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
* fix(webui): resume queued prompts after turn completion
Persist the lifecycle turn each queued prompt waits for and use canonical completion identities to resume after navigation or reconnect. Release one entry at a time, and retain stopped or rejected entries for manual sending.
* fix(webui): drain temporary chat prompts on live completion
* perf(webui): resume queued prompts from live completion
* feat(webui): expand MCP service presets
* refactor(webui): load MCP presets from JSON
Validate and package the static service catalogue while preserving existing preset definitions. Pass Redis connection URLs through the official CLI option to retain target, TLS, database, and credential settings.
* docs(mcp): include all built-in service presets
* refactor(webui): organize shared components with an internal gallery
* refactor(webui): decouple views and expand component gallery
* fix(docker): include channel sources in WebUI build
* refactor(webui): cover all channel interfaces in gallery
* docs(webui): remove manual paragraph wrapping