Commit Graph
320 Commits
Author SHA1 Message Date
chengyongru 4fa125e134 fix(exec): filter terminal control sequences from shell output 2026-10-16 00:11:21 +08:00
chengyongru 841d2b880c fix(agent): make tool error guidance neutral (#6227)
* fix(agent): make tool error guidance neutral

* refactor(tools): share tool error guidance
2026-10-15 16:58:39 +08:00
chengyongru 1d43b46e54 fix(exec): reject shell paths with unresolved home directories 2026-10-15 09:51:53 +08:00
chengyongru 6b90e400e4 refactor(tools): streamline built-in tool descriptions (#6201)
* refactor(tools): streamline built-in tool descriptions

* refactor(tools): retain actionable schema details
2026-10-14 10:34:07 +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
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 f04ed1c2eb test: align test names with current assertions (#6130)
* test: align test names with current assertions

* test: align suite names and explicit configuration cases
2026-10-10 11:49:32 +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 61ab136e58 fix(webui): let users review a return to the previous task chat 2026-10-07 01:12:23 +08:00
Max Hsu d9ceae15be fix(mcp): let streamable HTTP read timeout cover tool_timeout
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
2026-10-06 01:41:10 +08:00
takiAA 9dc0abae4f fix(documents): read cells beyond declared XLSX dimensions 2026-10-05 22:33:30 +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
RaycarlLei 8052c3a460 fix(tools): scope recursive directory ignores to listed root 2026-10-03 20:40:37 +08:00
Xubin Ren 5e54043492 test(tools): verify nullable enum with multiple union types 2026-10-03 20:03:48 +08:00
Shuhan Si 9ea3268dfb fix: 执行 null 参数的类型和枚举校验 2026-10-03 20:03:48 +08:00
Shuhan Si ae6801d3eb fix(tools): preserve supplied newlines when creating files 2026-10-03 17:38:18 +08:00
Kail Tian 042bcbbe46 fix(tools): preserve indentation in newline-terminated fallback edits 2026-10-03 17:15:11 +08:00
Kail Tian e36a016b6f fix(tools): preserve separator whitespace in inline replacements 2026-10-03 16:57:04 +08:00
Kail Tian 432421bceb fix(tools): preserve valid JSON Schema union arguments 2026-10-03 01:16:54 +08:00
Kail Tian 1535cb1b6b fix(exec): enforce session hard timeouts without polling 2026-10-03 00:22:31 +08:00
chengyongru 54d85059a5 fix(tools): preserve PATH for argument-vector commands 2026-09-30 13:09:30 +08:00
chengyongru b7abbcd70b fix(agent): require subagent consolidator at construction 2026-09-29 15:28:05 +08:00
Kail Tian 4f7479ca64 fix(web): propagate web_fetch failures as structured tool errors 2026-09-28 15:44:56 +08:00
chengyongru e0b8efa0be feat(tools): use installed ripgrep for native file search (#5948)
* feat(tools): expose installed ripgrep through exec

* refactor(tools): launch ripgrep with native argument vectors

* refactor(tools): reuse the fresh exec parameter schema

* fix(tools): select search backend in loader and display rg arguments

* fix(ui): simplify rg previews and localize search completion

* docs: simplify ripgrep configuration note

* docs: keep ripgrep note on one line
2026-09-28 13:44:51 +08:00
chengyongru 932b06f0de fix(providers): preserve tool optionality in Responses requests 2026-09-27 18:47:48 +08:00
Kail Tian f62e0da9f6 fix(mcp): load all pages of server tools before registration 2026-09-26 20:52:14 +08:00
chengyongru 6eccc2859a test: consolidate repetitive cases across the suite 2026-09-25 14:28:21 +08:00
chengyongru c406024b59 test: consolidate redundant compaction and tool tests 2026-09-25 14:28:21 +08:00
chengyongru cab3a360ea fix(tools): make oversized line truncation explicit 2026-09-24 16:24:06 +08:00
FanouZeng-TT f57eba2b07 fix(tools): keep read_file progressing when a single line exceeds the output budget
ReadFileTool stops at the first numbered line that does not fit the
128 KiB budget. When that line is the first one, no line is appended and
the tool returns an empty page that reports lines 2-1 and repeats the
same offset, so the caller can never reach the rest of the file. A long
line further down has the same effect for everything after it.

Emit a bounded prefix of that line and advance the continuation offset
past it, so every read returns content and makes progress.
2026-09-24 16:24:06 +08:00
chengyongru a4a733d965 refactor(tools): remove unused global file state compatibility 2026-09-24 13:08:08 +08:00
chengyongru c5f78bbd5c fix(mcp): handle OAuth interruptions through Loguru 2026-09-23 18:29:52 +08:00
chengyongru f9048dc514 fix(linear): retain issue context and clarify OAuth diagnostics 2026-09-23 18:29:52 +08:00
chengyongru 27b3e81434 refactor(tools): build grep context pages incrementally 2026-09-23 14:39:41 +08:00
chengyongru c8ed6a1209 fix(tools): keep searches scoped and results resumable 2026-09-23 14:04:08 +08:00
chengyongru a721806a50 fix(files): treat BOM-only text as empty 2026-09-23 00:29:52 +08:00
Zihan Xu 6707004a2a test(files): cover BOM-marked Unicode text 2026-09-23 00:29:52 +08:00
Kail Tian d37e2a7a0e fix(tools): handle boolean JSON subschemas during argument validation 2026-09-23 00:06:45 +08:00
Zihan Xu ac89579206 fix(exec): run quoted Windows executables without arguments 2026-09-23 00:04:19 +08:00
Xubin Ren d37d7c07c0 fix(agent): redact private recovery and reconnect diagnostics 2026-09-21 15:24:38 +08:00
Xubin Ren 2640251076 fix(agent): respect temporary chat privacy in tool execution 2026-09-21 15:24:38 +08:00
chengyongru 4e2173c9eb fix(agent): serialize session inbox processing 2026-09-17 22:18:38 +08:00
chengyongru d386ba138e fix(tools): scope file-read dedup to model context (#5775)
* fix(tools): scope file-read dedup to model context

* refactor(tools): narrow file-read context and build results lazily
2026-09-15 16:09:56 +08:00
chengyongru 1c3c68262f refactor(tools): unify edit summaries with shared fast diffs
Return compact, workspace-relative summaries from edit_file and apply_patch.
Compute one RapidFuzz line alignment per file and reuse it for summary counts
and WebUI unified diffs, checking snapshots before reuse. Summarize batched
edits by their final file state.

Warn only when a recorded file version changed, without asking for a read
after an edit has already succeeded. Preserve existing edit errors.

Validate summary and activity reuse, repetitive files, diff formatting,
snapshot changes, file creation, and read-state behavior.
2026-09-15 11:25:01 +08:00
Kail Tian 3a725b35a7 fix(tools): preserve line boundaries when deleting inline suffixes 2026-09-15 11:25:01 +08:00
ggbond 524e96ff68 test(security): keep proxy-clearing fixtures hermetic on hosts with OS-level proxies 2026-09-14 13:21:45 +08:00
chengyongru 73410e0217 fix: stream internal model calls with idle timeouts (#5730)
* fix: stream internal model calls with idle timeouts

* fix(providers): reject streams without terminal events
2026-09-11 13:06:43 +08:00
chengyongru 55093dd75b fix(mcp): refresh expired OAuth tokens automatically (#5573)
* fix(mcp): refresh expired OAuth tokens

* fix(mcp): bind refreshed tokens to OAuth issuer

* fix(mcp): activate OAuth tools before probe cleanup

* fix(webui): preserve failed MCP OAuth status

* fix(mcp): preserve OAuth refresh across discovery retries

* test(mcp): align OAuth issuer fixture with SDK validation
2026-09-10 13:27:50 +08:00
Booty Destroyer 6969 dfed706bc0 fix(exec): preserve UTF-8 across streaming output chunks 2026-09-10 11:36:33 +08:00