Commit Graph
4305 Commits
Author SHA1 Message Date
chengyongru f37ba60ed4 refactor(agent): remove context block budget override (#5668)
* refactor(agent): remove context block budget override

* test: drop redundant retired config field assertions
2026-09-05 21:39:14 +08:00
chengyongru 5229989f28 feat: make context compaction visible in channels (#5656)
* feat: surface context compaction lifecycle

* fix: complete and simplify context compaction notifications
2026-09-05 20:21:54 +08:00
Xubin Ren 455533169d fix(tui): distinguish fenced code blocks
Give retained Markdown code blocks a quiet theme-aware rail and fixed content gap while preserving OpenTUI's in-place streaming renderer. Keep the rail decorative so copied code remains unchanged.
2026-09-05 00:32:27 +08:00
Xubin Ren ba9f40090f fix(tui): inherit markdown foreground colors
Pass the active transcript foreground into retained Markdown renderables so unhighlighted fenced code remains visible on light terminal backgrounds. Update existing renderables during theme changes and cover the history hydration path that exposed the regression.
2026-09-05 00:32:27 +08:00
Xubin Ren b66e61c16f fix(pairing): avoid duplicate pending requests 2026-09-05 00:32:27 +08:00
Xubin Ren cb13a15780 fix(tui): preserve streamed code on completion 2026-09-05 00:32:27 +08:00
Xubin Ren 5ec4b16863 fix(webui): center project session labels 2026-09-05 00:32:27 +08:00
chengyongru e93b92c2d0 refactor(webui): extract outbound wire encoding (NAN-102) 2026-09-04 17:09:45 +08:00
chengyongru e2df7df9f4 fix(websocket): isolate slow clients from outbound fanout (#5655)
* fix(websocket): isolate slow outbound clients

* fix(websocket): preserve thin dispatch boundary
2026-09-04 15:39:59 +08:00
chengyongru 6b82d642fc feat(webui): visualize context usage by logical round (#5649)
* feat(webui): visualize per-request context reuse

* refactor(webui): report usage by logical round

* fix(webui): align context chart with logical rounds

* refactor(webui): derive turn usage from logical rounds

* fix(webui): polish context usage details
2026-09-04 15:13:17 +08:00
Yao 8fb7bc34ec fix(webui): keep every concurrently loaded channel locale registered
loadChannelLocale() captured the per-channel translation map before
awaiting the locale loader and re-registered it afterwards. Because
initializeI18n() loads the fallback and initial locales concurrently,
two calls per channel each created their own Map and the one resolving
last replaced the other's registration, silently dropping one locale
from every channel for any user whose stored locale is not en.

Create and register the map synchronously, before any await, so
concurrent loads append to a single shared Map.

Add a regression test that loads two locales concurrently against a
fresh registry instance.
2026-09-04 13:46:42 +08:00
chengyongru 3d40ed8f76 fix(webui): preserve hero model preset on chat creation 2026-09-04 10:41:01 +08:00
Xubin Ren b04aeeac0e fix(channels): harden message split boundaries 2026-09-04 01:39:41 +08:00
chengyongru 8509432dcf fix(channels): avoid blank boundary chunks
Signed-off-by: chengyongru <2755839590@qq.com>
2026-09-04 01:39:41 +08:00
PP1 01760b7385 fix(channels): preserve indentation across message splits
Signed-off-by: PP1 <74917296+pengpengyi92@users.noreply.github.com>
2026-09-04 01:39:41 +08:00
Lanre Shittu a8cbcc1c81 fix(matrix): propagate stream delivery failures
Signed-off-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
2026-09-04 01:23:11 +08:00
chengyongru 6c0f6bf0ee fix(webui): show language names only in their native form (#5646)
* fix(webui): show native language names only

* test(webui): assert native language names positively
2026-09-04 00:08:56 +08:00
Xubin Ren 236185d4f5 fix(matrix): bind and bound SAS requests 2026-09-03 23:49:20 +08:00
dajiaohuang 04aeec6c0f fix(matrix): complete Element SAS request flow 2026-09-03 23:49:20 +08:00
KDB f5a4fb8c39 fix(fallback): normalize exception metadata before retry decisions
Provider exceptions may expose numeric error_type or error_code values. Convert those fields at the response boundary before fallback consumers apply string operations, and cover the behavior with a regression test.
2026-09-03 18:31:35 +08:00
KDB 480c8dd744 fix(providers): preserve retry metadata for raised errors 2026-09-03 18:31:35 +08:00
KDB b321c63e1a test(fallback): classify authentication exception messages 2026-09-03 18:31:35 +08:00
KDB 18d1a325b6 fix(providers): apply fallback policy to raised errors 2026-09-03 18:31:35 +08:00
qtds 0ec6aee621 fix(signal): honor wildcard in inbound allowlists 2026-09-03 18:10:39 +08:00
Oxygen56 67f0f26b04 fix(webui): clear stale stream state after reconnect 2026-09-03 17:58:45 +08:00
Pengyi Peng b909793784 fix(agent): observe session reply timeout task failures 2026-09-03 17:45:13 +08:00
LostInTwilight eddfa0dd6b fix(tool_hints): respect max_length for plain (non-path/non-command) tool values
Plain tool values (grep patterns, web_search/x_search queries, find_files
globs) were never truncated by format_tool_hints(), so long arguments
overflowed tool_hint_max_length and were pushed to chat/UI verbatim.

Add a hard-truncation fallback for the plain branch, mirroring the existing
truncation used by abbreviate_path / _abbreviate_command. This completes the
same class of fix started in 99209a80 for is_path tools.

Adds 4 regression tests to tests/agent/test_tool_hint.py.
2026-09-03 17:18:21 +08:00
Lanre Shittu 816a999cac fix(sdk): preserve queued events on stream close
Signed-off-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
2026-09-03 16:47:23 +08:00
chengyongru 972cdde8da fix(provider): preserve Codex prompt cache affinity 2026-09-03 16:09:51 +08:00
Lanre Shittu 30509b6d99 fix(channels): bound origin reply fingerprint cache
Signed-off-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
2026-09-03 15:37:22 +08:00
Xubin Ren 588be51d8c fix(webui): preserve sidebar control alignment 2026-09-03 13:38:21 +08:00
Xubin Ren 38e3bca2ad fix(webui): tighten native settings spacing 2026-09-03 13:38:21 +08:00
Xubin Ren ea57b80fb5 fix(webui): honor native host chrome 2026-09-03 13:38:21 +08:00
Xubin Ren fd67f5594c refactor(webui): remove obsolete native title inset 2026-09-03 13:38:21 +08:00
Xubin Ren a841b10bc0 fix(webui): align native sidebar controls 2026-09-03 13:38:21 +08:00
chengyongru d81aa5a4ab refactor(agent): let runner own context compaction (#5568)
* refactor(agent): consolidate accepted history under pressure

* fix(agent): align provider and session compaction

* refactor(agent): simplify runner context compaction

* refactor(agent): remove background token consolidation

* fix(agent): keep injected transcript messages distinct

* refactor(agent): unify native compaction summaries

* fix(agent): preserve native compaction boundary

* fix(agent): unify context compaction paths

* fix(agent): preserve exact compaction request boundaries
2026-09-02 18:05:54 +08:00
Xubin Ren da96c5c6eb fix(webui): activate existing model presets safely 2026-09-02 16:25:07 +08:00
Xubin Ren 7ba4bc02f0 fix(webui): make new preset row clickable 2026-09-02 16:25:07 +08:00
Xubin Ren 6b385a1da6 fix(webui): balance preset editor spacing 2026-09-02 16:25:07 +08:00
Xubin Ren 56699d4888 fix(webui): make preset names immediately saveable 2026-09-02 16:25:07 +08:00
Xubin Ren 0274c11bfb fix(webui): keep schema defaults out of model presets 2026-09-02 16:25:07 +08:00
Xubin Ren 94d62f86a0 fix(webui): nudge model setup on blocked submit 2026-09-02 16:25:07 +08:00
Xubin Ren 6b07c91aa2 fix(webui): migrate brand logos to default on 2026-09-02 16:25:07 +08:00
Xubin Ren a3e043cf6f style(webui): show third-party logos by default 2026-09-02 16:25:07 +08:00
Xubin Ren 05100b70ad refactor(webui): open models directly for first-run setup 2026-09-02 16:25:07 +08:00
Xubin Ren 1c1f746903 style(webui): refine first-run model prompt 2026-09-02 16:25:07 +08:00
Xubin Ren 138bf3c0b8 fix(webui): simplify unconfigured model badge 2026-09-02 16:25:07 +08:00
Xubin Ren 9a4781982e fix(webui): route first-run model setup choices 2026-09-02 16:25:07 +08:00
Xubin Ren b47f0980f1 feat(webui): add first-run AI setup flow 2026-09-02 16:25:07 +08:00
Kail Tianandchengyongru 042f96f6ba fix(webui): delete unpersisted pane sessions (#5624)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-09-02 13:05:36 +08:00