* feat(mcp): configure OAuth client names in management
* fix(mcp): use a short OAuth callback for Figma
* fix(mcp): narrow catalog changes and remove Figma remote
* test(mcp): drop unpublished Figma remote compatibility contract
* fix(webui): align MCP catalog skeleton with card body
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.
* feat: trace Codex requests via Langfuse native SDK
Codex has no OpenAI SDK client for Langfuse's usual swap trick, so
log one generation per request through langfuse's native SDK
instead. Tracing failures never affect the returned Codex response.
* docs: note Codex Langfuse tracing support
* fix: trace every Codex request, close every generation
- Move the Langfuse generation inside _send so the compaction
sub-request gets its own trace too, not just the main request.
- Derive traced model/input from the wire body (post extra_body
override, post response-item-ID stripping) instead of the
pre-normalized one.
- Wrap package detection in the same try/except as the SDK call, so
a broken find_spec() can't turn a valid Codex request into an error.
- Make generation finalization idempotent and cancellation-safe via
try/except/else/finally, so update() failures or a cancelled
request no longer leave a generation open.
- Add tests for compaction tracing, update() failures, and
cancellation.
* docs: fix cli-reference.md langfuse plugin row
* fix: don't trace a rejected compaction as success
- Add a validate hook to _send so a transport-successful compaction
reply with no usable item traces as an error, not a success.
- Add regression tests for a find_spec() failure, for the traced
model/input matching the actual wire body (extra_body override,
ID-stripped replayed items), and for the rejected-compaction case.
* fix: convert LLMUsage to dict for Langfuse usage_details
LLMResponse.usage is now the LLMUsage dataclass upstream, not a
plain dict - Langfuse's usage_details param needs the latter.
* fix: satisfy basedpyright strict on compaction items
* fix(providers): normalize Codex Langfuse cache usage
* fix(providers): migrate Langfuse tracing to SDK 4
---------
Co-authored-by: chengyongru <chengyongru.ai@gmail.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
* feat(webui): improve model and provider settings UX
* refactor(webui): organize provider forms and model picker interactions
* fix(webui): separate OAuth credentials from provider configuration
* fix(webui): stabilize shared combobox navigation
* refactor(config): store provider connections as sparse entries
* fix(webui): preserve provider validation and isolate catalog tests
* refactor(config): manage explicit provider connections
* refactor(webui): decouple settings UX from provider removal
* fix(webui): select current combobox options during rapid input
* feat(webui): refine model preset and provider management
* style(webui): refine preset footer actions
* fix(webui): align model settings with responsive layout rules
* refactor(webui): finalize preset dialogs and simplify provider state
* fix(webui): keep fallback heading stable while sorting presets
Animate card dimensions without changing layout height and keep the section heading outside sortable cards. Remove proxy normalization from this PR.
* docs: update WebUI model and provider setup instructions
* docs: start model setup from new preset
* docs: remove duplicate WebUI model setup instructions
Keep nanobot web_search available on DeepSeek Responses, including old saved hosted-tool settings, and remove the switch and user-facing claims.
Preserve legacy API_TYPE and APITYPE environment selectors during OpenAI connection migration.
* fix(channels): drop compaction notices on channels without an in-place affordance
QQ's C2C/group message API has no edit or recall endpoint, so the
compaction lifecycle reached the chat as two permanent standalone
messages. Add a show_compaction_notices capability that defaults to
true (Telegram/Discord/WebSocket keep their in-place lifecycle) and
opt QQ out, with a per-channel showCompactionNotices config override.
Fixes#5784
* fix(qq): keep compaction-notice suppression inside the QQ channel
Per review on #5799: drop ContextCompactionEvent in QQChannel.send()
based on a QQ-local QQConfig.show_compaction_notices (default false,
camel alias showCompactionNotices) instead of a cross-channel
BaseChannel capability plus manager-level configuration and dispatch
policy. BaseChannel, ChannelManager and the manager compaction test
return to their upstream shape.
Also adds the missing zh-TW locale copy (plus es/id/ko/vi so all ten
QQ locales carry the new setup field) and QQ-level tests covering the
default drop, the enabled path, ordinary-message passthrough, and the
camelCase config override.
Keep temporary work inside the granted workspace instead of exposing host scratch trees, enforce read-only roots, and pin the system sandbox launcher before PATH lookup. Preserve documented network access and the narrow system paths needed by shell and Git.
Add native macOS containment and launcher regressions plus shared backend contract coverage. Document scratch and custom-tool requirements without changing existing bwrap or Windows behavior.
`tools.exec.sandbox` only supported bubblewrap, which depends on Linux
kernel namespaces, so macOS had no process-level isolation for shell
commands: SECURITY.md told macOS users the sandbox was simply
unavailable.
Add a `seatbelt` backend that generates an SBPL profile for
sandbox-exec(1) with the same policy bwrap applies. The workspace is
read-write, the media directory is read-only, the workspace's parent is
unreadable so config.json and its API keys stay hidden, and everything
else is denied by default.
Two macOS details the profile has to get right, both found by running
the generated command rather than by reading the SBPL reference:
- sh(1) reads `/` while resolving a path, and `(subpath "/usr")` does
not cover the root itself. Without `(literal "/")` every wrapped
command aborts during shell startup.
- Denying the parent directory also blocks traversal into the
workspace, so commands fail with ENOTDIR before they run. The
ancestors of every allowed path are therefore re-allowed for
`file-read-metadata` only: they stay searchable, but the config
directory still cannot be listed or read.
Paths are SBPL-escaped so a quote or backslash in a workspace path
cannot terminate a literal early and widen the rules that follow it.
Network access stays unrestricted to match bwrap, which does not pass
`--unshare-net`. Windows keeps its existing warn-and-run-unsandboxed
path, and selecting `seatbelt` on Linux fails loudly on the missing
sandbox-exec(1) exactly as selecting `bwrap` does on macOS today.
Verified on macOS 26.6.2 against the real sandbox-exec(1): workspace
writes, media reads and /tmp scratch succeed, while writing media,
reading config.json, listing the config directory, writing outside the
workspace and reading ~/.ssh are all denied.
Refs #1448
Refs #2569