Commit Graph
489 Commits
Author SHA1 Message Date
chengyongru 31b193236f fix(cli): reject misplaced gateway instance selectors (#6229)
* fix(cli): inherit gateway instance selectors in subcommands

* fix(cli): reject misplaced gateway instance selectors

* test(cli): strip ANSI styling from gateway usage assertions
2026-10-16 01:24:50 +08:00
akinolurandchengyongru 9d2762a4f1 feat(provider): langfuse tracing for codex (#5520)
* 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>
2026-10-16 00:44:17 +08:00
chengyongru 2ad0da786d fix(session): serialize compaction with active turns 2026-10-15 10:43:02 +08:00
chengyongru 152abe7949 feat(webui): expand MCP service presets (#6216)
* 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
2026-10-14 22:41:55 +08:00
David KlaperandCopilot 2732e2b3ce fix(webui): send same-origin cookies with uploads
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-14 16:12:50 +08:00
chengyongru cd2a863710 feat(skills): explain nanobot usage from bundled documentation (#6176)
* feat(skills): add nanobot documentation guide with bundled docs

* docs: prefer graphical setup and align bundled guides with runtime

* docs: lead provider setup with built-in endpoint defaults

* fix: preserve documentation packaging and lookup across install paths

* fix(skills): narrow documentation loading to relevant sections

* refactor(skills): keep documentation guidance concise

* fix(docs): complete first-use workflows and clarify runtime boundaries

* style(docs): remove manual paragraph wrapping

* docs: guide first-run users to conversational setup help

* docs: fold README installation alternatives and details

* docs: separate README alert marker from its body

* docs: clarify README onboarding and runtime boundaries
2026-10-13 00:44:25 +08:00
Xubin Renandchengyongru 23941355a8 feat(images): reuse named connections and image request settings
Preserve the reviewed tree while removing obsolete stacked branch history.

Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-10-12 21:22:35 +08:00
Xubin Ren b89ef23df5 fix(webui): make pairing recovery explicit and retryable 2026-10-12 17:38:43 +08:00
Xubin Ren 2aa98677c6 fix(feishu): restore assistant creation and pairing recovery
Refs NAN-239
2026-10-12 17:38:43 +08:00
Xubin Ren cfb0f51e78 fix(webui): complete restarts independently in each tab 2026-10-12 17:30:53 +08:00
Xubin Ren 77660ea8e5 fix(webui): keep settings restarts out of chat history 2026-10-12 17:30:53 +08:00
Xubin Ren 7a3a0559c4 fix(webui): place web proxy with web access settings 2026-10-12 17:24:04 +08:00
Xubin Ren d4b01285a9 feat(models): add per-preset request overrides 2026-10-12 17:17:02 +08:00
chengyongru bdfc8f7bd4 fix(image): use standalone Codex Images API (#6177)
* fix(image): use standalone Codex Images API

* docs(image): keep Codex setup focused on user actions
2026-10-12 17:05:38 +08:00
chengyongru 73af08efab fix(webui): allow switching Default permissions back to Full Access (#6175)
* fix(webui): allow authenticated access mode switching

* refactor(webui): remove constant full access eligibility helpers

* refactor(webui): remove obsolete full access policy parameter

* docs(webui): remove redundant access switching paragraph

* refactor(webui): remove obsolete full access capability
2026-10-12 15:39:33 +08:00
chengyongru 61fa3aa83c fix(channels): remove retired outbound metadata compatibility (#6169)
* docs(channels): remove expired entry-point migration notice

* fix(channels): remove retired outbound metadata compatibility
2026-10-12 11:36:25 +08:00
chengyongru 41f2eeb7ba fix(webui): support WSL browser launch and clearer startup output (#6150)
* feat(webui): add local first-run access setup

* feat(webui): defer password setup until network access

Keep generated local credentials and provide the full browser login link in every launch mode. Require a chosen password when enabling network access, preserve existing authentication, and show pending listener changes until restart.

Remove mandatory first-run initialization gates and simplify startup output while retaining gateway warnings and errors.

* fix(webui): align access settings with channel contracts

* fix(webui): clarify startup guidance and spacing

* fix(webui): keep setup guidance readable in narrow terminals

* fix(webui): clarify startup and preserve remote password access

* fix(webui): move access explanations into settings hints

* fix(webui): require strong ASCII passwords and reject malformed auth

* fix(webui): simplify access password character rules

* test(webui): reflect pending restart after password save

* fix(webui): open Windows browser from WSL

* fix(webui): clarify public access copy

* refactor(webui): focus on WSL launch and startup output

* fix(webui): preserve platform browser fallback
2026-10-12 10:53:11 +08:00
Xubin Ren da02daaa1d test(agent): guard workspace context prompt prefixes 2026-10-11 17:06:39 +08:00
Xubin Ren 1d69f630d7 fix(agent): provide current workspace access before model requests 2026-10-11 17:06:39 +08:00
Xubin Ren e79a0099f6 fix(my): report current workspace access in self-inspection 2026-10-11 17:06:39 +08:00
chengyongru 9261e731ce feat(webui): improve model and provider settings UX (#6145)
* 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
2026-10-11 04:30:43 +08:00
chengyongru 50256940be docs: remove manual paragraph line wraps (#6131)
* docs: remove manual paragraph line wraps

* docs: preserve GitHub alert marker line breaks
2026-10-10 11:48:50 +08:00
chengyongru 36c36a1324 feat(cli): add --home instance directory selector (#6128)
* feat(cli): add --home instance directory selector

* refactor(cli): keep instance home selection command-line only

* fix(cli): clarify WebUI channel confirmation

* docs: condense multiple-instance setup guide

* docs(cli): shorten instance home option help

* docs: remove manual paragraph wrapping
2026-10-10 11:16:53 +08:00
chengyongru d808dbdb44 fix(providers): remove obsolete DeepSeek hosted search
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.
2026-10-10 01:33:02 +08:00
chengyongru 1df2df6823 refactor(providers): separate API capabilities from registry 2026-10-10 01:33:02 +08:00
chengyongru 10a979ab00 fix(webui): show custom provider API controls directly 2026-10-10 01:33:02 +08:00
chengyongru 87a1e36833 feat(webui): explain API settings on hover 2026-10-10 01:33:02 +08:00
chengyongru 9aff0787ff docs: focus API configuration on user workflows 2026-10-10 01:33:02 +08:00
chengyongru 130fbcb842 fix(webui): move API settings into advanced options 2026-10-10 01:33:02 +08:00
chengyongru f49fe0ef66 fix(providers): preserve DeepSeek Flash proxy routing 2026-10-10 01:33:02 +08:00
chengyongru 432c044f8e docs(providers): align recipes with API declarations 2026-10-10 01:33:02 +08:00
chengyongru 7e2e804b5c refactor(providers): migrate legacy API selector at input boundary 2026-10-10 01:33:02 +08:00
chengyongru 34fd4ed75a feat(providers): declare supported APIs for custom connections 2026-10-10 01:33:02 +08:00
chengyongru 73a27e0726 feat(webui): show resolved Auto API in preset selector 2026-10-10 01:33:02 +08:00
chengyongru 994ce51502 feat(models): declare provider APIs and simplify preset configuration 2026-10-10 01:33:02 +08:00
b5808e47de feat(models): declare request APIs per preset
Bind API support and preference to the preset's provider and model. Carry the
API declaration through factory selection, fallback chains, hot reload and
WebUI persistence. Use Copilot endpoint metadata for automatic routing and
keep reasoning replay and compaction defaults in provider capability profiles.

Consolidate Responses follow-ups from #5906, #5935, #6020, #6051 and #5834;
acknowledge equivalent contributions in #6105 and #5863.

Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
Co-authored-by: kkkhoo <128304090+kkkhoo@users.noreply.github.com>
Co-authored-by: pei711 <199601925+pei711@users.noreply.github.com>
Co-authored-by: Steven Huang <134844631+remote-controlled-man@users.noreply.github.com>
Co-authored-by: Louis Yue <179701714+selfucker@users.noreply.github.com>
Co-authored-by: iuiuiu <92971770+iuiu-py@users.noreply.github.com>
2026-10-10 01:33:02 +08:00
Xubin Ren 24a5c6dd56 fix(webui): keep stop immediate without command metadata 2026-10-09 12:28:32 +08:00
Xubin Ren 5cf629963d fix(webui): queue slash-prefixed chat text during responses 2026-10-09 12:28:32 +08:00
Xubin Ren 7e00d6a944 fix(commands): keep slash-prefixed paths in normal chat 2026-10-09 12:28:32 +08:00
chengyongru 3fb9417daf fix(providers): prepare inline image batches and recover Codex transport (#6107)
* fix(codex): prepare image batches and recover WebSocket transport

* fix(providers): share image preparation across API adapters
2026-10-08 23:26:21 +08:00
chengyongru fb605ddc7b fix(webui): compact saved locations and remove directory shortcuts 2026-10-08 20:33:15 +08:00
chengyongru b33b1e4ae5 fix(webui): unify picker layout and directory navigation 2026-10-08 20:33:15 +08:00
chengyongru 56ad142e79 fix(webui): preserve picker views and refine folder controls 2026-10-08 20:33:15 +08:00
Xubin Ren f78a0994c8 fix(webui): preserve picker compatibility and column keyboard navigation 2026-10-08 20:33:15 +08:00
chengyongru 8a795b428e refactor(webui): remove obsolete native workspace picker paths 2026-10-08 20:33:15 +08:00
chengyongru d5dc59ea76 fix(webui): keep workspace selection in one dialog 2026-10-08 20:33:15 +08:00
chengyongru 63e172b2b1 docs(webui): keep guide structure and concise feature notes 2026-10-08 20:33:15 +08:00
chengyongru ee7eda3084 fix(webui): reveal favorite stars on hover and trim user guide 2026-10-08 20:33:15 +08:00
chengyongru 66c8d41f66 feat(webui): add a host directory picker and refine composer controls 2026-10-08 20:33:15 +08:00
chengyongru 6646f5fbee fix(webui): upload TUI and WebUI attachments over binary HTTP (#5980)
* feat(webui): add bounded binary attachment staging

* feat(webui): bridge binary HTTP bodies alongside websocket listener

* fix(webui): deliver attachments over authenticated binary HTTP

* fix(webui): bound incomplete upload headers and preserve staging markers

* test: reflect aiohttp runtime dependency for binary uploads

* fix(webui): relay binary uploads and retain rejected drafts

* refactor(webui): remove obsolete attachment transport errors

* refactor(websocket): own binary attachment transport

* fix(websocket): allow bounded uploads over slow connections

* test(webui): restore upload timeout before retry

* docs(websocket): focus attachment guide on client usage
2026-10-08 11:55:13 +08:00