Commit Graph
662 Commits
Author SHA1 Message Date
Kail Tian 5825e15a6f fix(agent): clear stale failure state when resuming runner iterations 2026-10-03 01:01:30 +08:00
Kail Tian f2737ae813 fix(agent): preserve explicitly empty tool registries 2026-10-02 23:52:09 +08:00
chengyongru 6ecb74aea9 refactor: remove unused runtime and WebUI helpers (#5999)
* refactor: remove unused runtime and WebUI helpers

* fix: preserve exported agent helper methods
2026-10-02 01:41:05 +08:00
Arthur K. 0b402d0414 fix: stop sending context compaction notifications 2026-09-30 13:44:42 +08:00
chengyongru 99ba062a97 fix(tui): accept goal requests during active turns (#5981)
* fix(tui): accept goal requests during active turns

* fix(goal): reuse live input routing and remove busy guards

* test(goal): cover followup streams across iteration budgets

* refactor(goal): expand slash commands into hidden agent input

* fix(goal): keep generated input permission scoped to users

* refactor(agent): encapsulate goal input permission scope

* refactor(goal): preserve task text without prompt wrapper

* test(goal): consolidate coverage and exercise restart recovery

* test(goal): wait for recovery reply without task registry race
2026-09-30 13:08:13 +08:00
Carmelo Campos 663ba82f00 fix(providers): honor configured fallbacks on "insufficient credits"
An OpenAI-compatible gateway can report exhausted credits as HTTP 400 with
the message "You have insufficient credits to make this request". The
arrearage marker lists cover "insufficient_quota", "insufficient balance"
and "out of credits", but not "insufficient credits", so
is_arrearage_response() returned False and _should_fallback() fell through
to its blanket HTTP-400 short-circuit. Configured fallbackModels were then
silently skipped and the raw provider error was returned to the user.

Add the missing phrasing to both the text-marker tuple and the structured
token frozenset. Arrearage detection already runs first inside
_should_fallback(), so recognizing the phrasing is enough to restore
failover; a plain malformed-request 400 keeps its existing non-fallback
behavior.

Refs #5967
2026-09-30 09:55:31 +08:00
chengyongru 66f5f2df15 fix(my): scope subagent snapshots to the current session (#5976)
* fix(my): scope subagent snapshots to the current session

* test(my): reuse runtime fixture in session isolation checks
2026-09-29 17:44:37 +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 5294dc2e3f fix(webui): restore Codex title generation and diagnose API failures (#5952)
* fix(webui): restore Codex title generation and diagnose API failures

* refactor(logging): keep title diagnostics out of provider contracts

* fix(webui): defer title reasoning to model defaults

* refactor(webui): inline default title reasoning argument
2026-09-28 14:50:21 +08:00
chengyongru 4a7ad00e4f fix(tokens): warm fallback tokenizer in background (#5861)
* fix(tokens): keep fallback token estimation offline

* fix(tokens): warm fallback tokenizer in background

* test(tokens): isolate agent fixtures from tokenizer readiness

* test(tokens): keep Codex pressure fixtures within byte budget

* docs: remove manual wrapping from troubleshooting prose
2026-09-28 13:50:55 +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 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
Xubin Ren 62aa6ba6a3 test(agent): cover background failure while draining shutdown 2026-09-24 19:55:21 +08:00
yu-xin-c aa117e7271 fix(agent): report background task failures 2026-09-24 19:55:21 +08:00
chengyongru ad52fa97c2 fix(cli): reuse WebUI model discovery in onboarding 2026-09-24 13:07:42 +08:00
chengyongru b4b7d340cf test: allow Windows CI time for WebUI turn completion 2026-09-23 18:29:52 +08:00
chengyongru c75192975c fix(agent): preserve state for required Codex compaction (#5883)
* fix(agent): preserve state for required Codex compaction

* fix(codex): keep pending tool exchanges after compaction

* refactor(agent): simplify compaction context forwarding and strengthen tests
2026-09-23 18:13:27 +08:00
chengyongru e68afef670 fix(agent): log mid-turn injected messages (#5878)
* fix(agent): log messages consumed by mid-turn injection

* fix(agent): log injected batches after appending to transcript

* fix(agent): narrow injection metadata dictionary types

* refactor(agent): keep injection logging preview inline
2026-09-23 14:58:26 +08:00
chengyongru 3fe109bf01 test(utils): simplify atomic write tests and remove stale note 2026-09-23 14:48:29 +08:00
Frank_zhu 23de1f1e34 refactor(utils): dedupe atomic JSONL write helper
Extract atomic_write_lines so history.jsonl, session JSONL saves, and
WebUI transcript rewrites share unique temp files, optional fsync, and
BaseException cleanup.

Closes #5290
2026-09-23 14:48:29 +08:00
chengyongru d149232621 fix: isolate maintenance-session compaction notifications (#5874)
* fix: keep heartbeat compaction notices off user channels

* refactor: centralize maintenance session identity
2026-09-23 14:05:54 +08:00
chengyongru c8ed6a1209 fix(tools): keep searches scoped and results resumable 2026-09-23 14:04:08 +08:00
chengyongru 8a7ca8a654 fix: improve log reliability and correlation 2026-09-21 17:36:24 +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
Xubin Ren 448767d147 fix(webui): identify OAuth reauthentication behind fallback replies 2026-09-21 00:13:46 +08:00
chengyongru a478c96bde test(agent): provide history consolidator in response source test 2026-09-20 22:48:35 +08:00
chengyongru 0983762fe5 refactor(webui): remove legacy message projection (#5823)
* refactor(webui): defer oversized replay traces as events

* fix(webui): type deferred trace index set

* refactor(webui): remove legacy message projection

* fix(webui): type event protocol boundaries

* test(webui): assert canonical thread events
2026-09-20 16:48:13 +08:00
chengyongru 29ba4c7f2d fix(agent): remove local context tail truncation (#5820)
* fix(agent): remove local context tail truncation

* fix(agent): defer subagent type annotations

* fix(agent): require context consolidator for runner

* refactor(agent): minimize consolidator contract diff
2026-09-20 16:00:44 +08:00
Xubin Ren 8d0430c761 feat(webui): show persisted fallback preset on replies (NAN-133) 2026-09-20 15:16:35 +08:00
Xubin Ren fa754c2204 test(agent): verify stopped followups stay canceled across restarts 2026-09-20 10:38:08 +08:00
yu-xin-c 1127b3ea20 fix(agent): discard stopped follow-up recovery journal 2026-09-20 10:38:08 +08:00
chengyongru 078e35f317 fix(agent): run explicit recovery continuations 2026-09-18 18:07:03 +08:00
chengyongru a0a99f24da test(agent): consolidate session inbox coverage 2026-09-17 22:18:38 +08:00
chengyongru 5f378c9aff fix(session): keep compaction continuations out of later turns 2026-09-17 22:18:38 +08:00
chengyongru 28d9721bfd fix(agent): complete automation cancelled before execution 2026-09-17 22:18:38 +08:00
chengyongru b669c2036c refactor(agent): unify session message admission 2026-09-17 22:18:38 +08:00
chengyongru 7208fb663f fix(agent): preserve queued turn semantics and completion 2026-09-17 22:18:38 +08:00
chengyongru b15a5e8cb4 test(agent): await session inbox admission 2026-09-17 22:18:38 +08:00
chengyongru 4e2173c9eb fix(agent): serialize session inbox processing 2026-09-17 22:18:38 +08:00
chengyongru 56f7afcfe4 fix(agent): preserve per-session message order 2026-09-17 22:18:38 +08:00
Xubin Ren 122a0f5d6f fix(memory): sanitize raw history before lossless chunking 2026-09-17 21:13:23 +08:00
dajiaohuang d4e23dec12 fix(memory): preserve full consolidation input 2026-09-17 21:13:23 +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
Xubin Ren 8c4eb2c807 fix(session): bound retained history search results across pages
Discard raw replay pages after filtering, retaining only the requested latest matches while counting pages for stable global message indexes. Cover raw-page release and durable-source precedence across index rebuilds and restart.
2026-09-15 14:11:59 +08:00
beemines 151173c8ba fix(session): search older pages of persisted conversation history 2026-09-15 14:11:59 +08:00
chengyongru f4843ba11e fix(memory): recover archive tool calls before raw fallback (#5774)
* fix(memory): recover archive tool calls

* refactor(memory): reuse provider state controller
2026-09-15 11:55:12 +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