* 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.
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>
* 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
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>
* 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.
JSON Schema accepts numbers such as 3.0 as integers, but Python decodes
that representation as float. Tool calls with valid integral arguments
were therefore rejected before execution, including nullable and union
integer schemas.
Share the integer check across schema validation and union matching, then
convert integral floats to int before calling the tool. Keep fractional
values, booleans, and non-finite numbers outside the integer type.
Add schema and registry regressions for integral JSON numbers.
Validation: 144 tool-validation tests; Ruff; BasedPyright;
import-boundary checks; git diff --check.
Keep extracted spreadsheet text unchanged and carry actual cell start offsets into grep headers. Add real workbook GrepTool regressions and plain/empty-cell controls. Focused literal-source extraction/ContentPage replay passes; full GrepTool and required CI remain pending.
* feat(codex): continue sessions over Responses WebSocket
* fix(codex): retain API errors with repeated handshake headers
* test(codex): assert attachment paths before JSON escaping
* refactor(providers): share Responses transport and state backend
* fix(grok): update subscription client version
* docs: keep Codex configuration focused on user settings
The streamable HTTP client used httpx.Timeout(30.0, connect=10.0), so the
read timeout was fixed at 30s regardless of tool_timeout. A server that
stays silent until the result is ready (e.g. FastMCP json_response=True)
hit ReadTimeout after 30s; the tool call then hung until tool_timeout
fired and reported "(MCP tool call timed out after Ns)".
Use the MCP SDK's own httpx defaults (30s, read=300s) and raise the read
timeout to tool_timeout when it is larger. Connect stays at 10s.
Fixes#6065