Commit Graph
180 Commits
Author SHA1 Message Date
chengyongru 74942bd190 test: replace false-green checks with behavioral coverage (#6282)
* test: replace false-green checks with behavioral coverage

* test: complete behavior-focused audit coverage
2026-10-18 03:16:25 +08:00
chengyongru 742ea48df3 fix(webui): keep CLI Apps reads off the event loop 2026-10-18 00:05:14 +08:00
Gianfranco DemarcoandCursor bd779e9f54 fix(webui): hide provider models past OpenAI shutdown_date
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>
2026-10-17 02:01:19 +08:00
chengyongru 8f6a5594fb refactor(session): centralize state ownership in SQLite (#5943)
* fix(session): move persistence off event loop

* refactor(session): isolate async persistence boundary

* refactor(session): keep a single session manager

* refactor(session): use stateless async adapters

* fix(session): serialize local persistence without file-lock contention

* refactor(session): own async persistence and snapshot commits

* refactor(session): narrow persistence changes to async adapters

* refactor(session): remove redundant async forwarding helpers

* fix(command): offload compact session persistence

* fix(session): adapt idle compaction to current main

* fix(webui): offload session metadata persistence

* refactor(session): centralize state ownership in SQLite

* fix(session): skip storage for non-recoverable followups

* test(webui): honor the full gateway event deadline

* perf(session): persist incremental changes and reuse owner snapshots

* test(agent): allow durable worker shutdown in burst test

* fix(gateway): drain session storage on Windows console shutdown

* fix(session): enforce bounded ownership and lifecycle-safe persistence

* fix: reject unresolved home paths and stabilize platform tests

* fix(session): preserve request context compatibility and owner-backed tests

* docs: focus configuration guide on user-facing behavior

* fix(session): adapt goal admission to async ownership after rebase

* fix(session): integrate current gateway and subagent contracts

* fix(session): align rebased workspace admission and async tests

* fix(session): support compatible SQLite schema evolution

* test(agent): use session owner in workspace context regressions

* test: stabilize Windows lifecycle and browser checks

* refactor(session): remove premature JSONL file export

* ci: bound Windows full-suite worker concurrency

* chore: remove session state refactor notes

* fix(session): queue writes and retain worker connections

* perf(webui): read detached metadata for session and task lists

* perf(agent): bound prompt preparation and local token counting

* docs: remove internal session storage guide

* perf(session): skip archived transcripts during idle scans

* fix(session): coordinate turns and isolate legacy session data

Bind WebUI input generations to the execution session and serialize idle
and SDK compaction with turns. Keep turn drafts through preparation so the
latest channel route persists.

Move imported workspace JSONL and checkpoints to durable private backups
before gateway admission, resuming cleanup after interruptions. Remove
committed child sessions when task creation is cancelled.

Validation: focused Python and frontend regressions, Ruff, BasedPyright,
import boundaries, WebUI build, and isolated gateway/browser flows.

* fix(agent): keep cancellation hooks independent of prompt preparation

* fix(session): preserve admission, delivery, and migration contracts

* fix(agent): preserve cancellation settlement after rebase

* fix(session): preserve request attribution through async ownership
2026-10-16 17:28:47 +08:00
chengyongru 6310a39bac fix(shell): separate wait, idle, and runtime limits (#6228)
* fix(shell): separate wait, idle, and runtime limits

* fix(shell): separate wait, idle, and runtime limits

* fix(exec): preserve settings aliases and reclaim completed sessions

* fix(webui): make shell runtime limits explicit
2026-10-16 13:44:15 +08:00
chengyongru aeca1c0f1a fix(webui): avoid blocking the gateway on skill loading 2026-10-16 11:21:28 +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
Kail Tian 3881ed7dd1 fix(providers): preserve supported Kimi K3 reasoning efforts 2026-10-14 18:00:21 +08:00
chengyongru 328e933d36 refactor: isolate runtime contracts and enforce import boundaries (#6166)
* test: enforce Python import ownership boundaries

* test: protect client import boundaries and rehome shared UI contracts

* refactor: remove gateway and client dependency inversions

* fix: detect dynamic imports in conditional expressions

* refactor(tools): keep configuration contracts with their owners

* docs: keep design guidance focused on ownership and checks

* fix: preserve default threaded turn delivery
2026-10-13 13:56:28 +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
chengyongru 105b772203 refactor(agent): compose image tools in application runtimes (#6172)
* refactor(agent): move image configuration ownership into tools

* refactor(agent): compose image tools in application runtimes
2026-10-12 17:42:45 +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 7a3a0559c4 fix(webui): place web proxy with web access settings 2026-10-12 17:24:04 +08:00
Xubin Ren 1066adb10b fix: isolate preset requests and confirm parameter saves 2026-10-12 17:17:02 +08:00
Xubin Ren d4b01285a9 feat(models): add per-preset request overrides 2026-10-12 17:17:02 +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
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 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
chengyongru 592f0559a9 fix(webui): complete preset API translations
Keep request API keys aligned across all locales and read the persisted settings fixture as UTF-8 on Windows.
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
chengyongru 8a795b428e refactor(webui): remove obsolete native workspace picker paths 2026-10-08 20:33:15 +08:00
Xubin Ren 3865bde3fe fix(webui): correct SkillHub skill detail links 2026-10-08 13:24:19 +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
chengyongru 5be1e589f2 feat(providers): share Responses backend with Codex WebSocket continuation (#6096)
* 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
2026-10-08 11:54:23 +08:00
Xubin Ren ab614478a0 fix(automations): unify chat replies and preserve explicit sends 2026-10-07 01:12:23 +08:00
Xubin Ren 5719ed6e16 fix(webui): link automation history to the recorded chat 2026-10-07 01:12:23 +08:00
Xubin Ren c932720b20 fix(webui): keep automation review stable and share complete task details 2026-10-07 01:12:23 +08:00
Xubin Ren 845afe9215 feat(webui): persist reviewed automation chat changes 2026-10-07 01:12:23 +08:00
chengyongru b0d28af321 feat(webui): show commit and prefill bug report diagnostics (#6080)
* feat(webui): show gateway commit in About settings

* feat(webui): prefill revision in bug reports

* fix(webui): use parentheses for commit details

* feat(webui): prefill gateway diagnostics in bug reports

* docs: remove About settings explanation

* fix(webui): prefill dedicated issue diagnostic fields

* fix(docker): include revision helper in dependency build layer
2026-10-06 18:53:50 +08:00
chengyongru 42f06ab1dc test: isolate Star invitation state and stabilize late-result waits (#6076)
* test: isolate Star invitation state and relax late-result deadline

* test: keep invitation fixtures outside test workspaces
2026-10-06 02:49:50 +08:00
chengyongru 6ff96f2a8f feat(subagent): add session-owned task messaging and cancellation (#5985)
let's go!
2026-10-05 05:16:33 +08:00
chengyongru 4904305450 refactor(session): decouple history tools from WebUI replay (#6017)
* refactor(session): decouple history tools from WebUI replay

* test(oauth): make callback expiry independent of thread scheduling
2026-10-03 17:43:55 +08:00
Xubin Ren c734f6b6f9 test(remote): isolate gateway smoke from frontend build artifacts 2026-10-02 11:36:34 +08:00
Xubin Ren 2330bfc5a5 fix(remote): simplify connection mutations and preserve host state 2026-10-02 11:36:34 +08:00
Xubin Ren 5aa91b66cc feat(remote): serve local WebUI with an explicit host contract 2026-10-02 11:36:34 +08:00
Xubin Ren 02ce0cfb6f fix(remote): replace failed routes without duplicate-instance errors 2026-10-02 11:36:34 +08:00
Xubin Ren fd9681ef8b fix(remote): preserve pairing on failed forget and respect asset cache policy 2026-10-02 11:36:34 +08:00
Xubin Ren 49eb3a27f9 test(remote): read renamed profile fixtures as UTF-8 on Windows 2026-10-02 11:36:34 +08:00
Xubin Ren 4fd4dc522d perf(remote): reuse guarded SSH transports and cache static assets 2026-10-02 11:36:34 +08:00
Xubin Ren 719a5c3fcf feat(remote): rename servers without interrupting host sessions 2026-10-02 11:36:34 +08:00
Xubin Ren 450e455b57 fix(remote): group verified instances without dropping authorizations 2026-10-02 11:36:34 +08:00
Xubin Ren af847165a5 fix(remote): preserve moved pairing state and Windows test coverage 2026-10-02 11:36:34 +08:00
Xubin Ren 192ca6e49e feat(webui): complete remote pairing and connection recovery 2026-10-02 11:36:34 +08:00
Xubin Ren 11889c018e feat(webui): connect to existing remote nanobot instances (NAN-157) 2026-10-02 11:36:34 +08:00
Xubin Ren ab6d5f1d3c feat(channels): add inherited global compaction notice policy 2026-09-30 13:44:42 +08:00
chengyongru f18423800e refactor(tui): organize source by feature boundaries (#5975)
* refactor(tui): group source files by feature

* refactor(tui): split app and gateway responsibilities
2026-09-29 16:57:36 +08:00
chengyongru 6eccc2859a test: consolidate repetitive cases across the suite 2026-09-25 14:28:21 +08:00