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.
* 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
* 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.
* 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
* 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
* 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.
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>
* 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
* 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
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
The settings picker mirrored GET /v1/models without reading shutdown_date,
so retired chat-latest snapshots stayed selectable until a turn failed.
Co-authored-by: Cursor <cursoragent@cursor.com>
* 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