chengyongru
eb3fc07087
fix(webui): allow custom context window token budgets ( #5901 )
...
* fix(webui): allow custom context window token budgets
* fix(i18n): translate context window hints in all locales
* fix(webui): accept context window K and M shorthand
* fix(webui): shorten context window hints
* refactor(webui): simplify context window validation
2026-09-24 18:26:03 +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
Kail Tian
a724ad4fcd
fix(providers): backfill missing reasoning history for deepseek-flash
2026-09-24 16:14:14 +08:00
chengyongru
d898998c47
feat(webui): invite returning users to star nanobot ( #5895 )
...
* feat(webui): invite returning users to star nanobot
* fix(webui): place About Star link in settings list
* fix(webui): use neutral About repository label
* fix(webui): add localized Star link to About footer
* fix(webui): align Star invitation with existing dialog styling
* fix(webui): shorten and localize Star invitation copy
* fix(webui): skip Star invitation after user interaction
* fix(webui): align Star invitation meaning across locales
* fix(webui): clarify Star reminder dismissal errors
2026-09-24 15:37:18 +08:00
Xubin Ren
05bee21b10
feat(webui): unify file preview actions
2026-09-24 15:17:05 +08:00
Xubin Ren
af5acabb33
fix(webui): restore session-scoped file previews
2026-09-24 15:17:05 +08:00
chengyongru
1457904e8d
fix(cli): shorten session storage startup guidance
2026-09-24 13:38:57 +08:00
chengyongru
839992630c
fix(cli): explain session storage conflicts before startup
2026-09-24 13:38:57 +08:00
chengyongru
80c246744f
refactor(webui): clear turns only through the owner registry
2026-09-24 13:09:12 +08:00
chengyongru
06dd977838
refactor(api): use typed application state consistently
2026-09-24 13:08:36 +08:00
chengyongru
a4a733d965
refactor(tools): remove unused global file state compatibility
2026-09-24 13:08:08 +08:00
chengyongru
ad52fa97c2
fix(cli): reuse WebUI model discovery in onboarding
2026-09-24 13:07:42 +08:00
Kail Tian
8cc5748464
fix(providers): preserve image inputs for deepseek-flash
2026-09-24 10:27:32 +08:00
chengyongru
c5f78bbd5c
fix(mcp): handle OAuth interruptions through Loguru
2026-09-23 18:29:52 +08:00
chengyongru
b4b7d340cf
test: allow Windows CI time for WebUI turn completion
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
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
d3f90e0944
test(utils): make atomic_write_lines directory fsync tests Windows-safe
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
27b3e81434
refactor(tools): build grep context pages incrementally
2026-09-23 14:39:41 +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
a721806a50
fix(files): treat BOM-only text as empty
2026-09-23 00:29:52 +08:00
Zihan Xu
7355b35055
test(documents): cover BOM-marked text extraction
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
chengyongru
12a9a8a692
fix: keep logging available when rotation is blocked
2026-09-21 17:36:24 +08:00
chengyongru
3a353aa2d9
fix: enforce background log size limit
2026-09-21 17:36:24 +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
804e4c4ea6
fix(webui): cancel Copilot sign-in while loading device prompt
2026-09-21 00:13:46 +08:00
Xubin Ren and chengyongru
a44f28e656
fix(webui): complete Copilot device sign-in in the browser
...
Reuse the device-flow adapter from #5498 , expose its prompt in the existing OAuth dialog, and keep credential persistence scoped to uncancelled completion.
Co-authored-by: chengyongru <chengyongru.ai@gmail.com >
2026-09-21 00:13:46 +08:00
Xubin Ren
448767d147
fix(webui): identify OAuth reauthentication behind fallback replies
2026-09-21 00:13:46 +08:00
Xubin Ren
024fe8f636
fix(webui): surface OAuth model catalog authorization failures
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
chengyongru
db675a43b6
refactor(webui): unify live and replay event projection ( #5819 )
...
* refactor(webui): unify live and replay event projection
* chore(webui): mark legacy projection cleanup
* fix(webui): rewrite streamed replay media URLs
2026-09-20 13:52:43 +08:00
chengyongru
3d4200ff0d
refactor: remove expired write_stdin compatibility
2026-09-20 13:22:41 +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
e9414da243
feat(channels): add native Linear agent channel
...
Add OAuth installation, signed webhook ingestion, durable event handling, native Agent Session activities, WebUI setup, localized copy, and an end-to-end configuration guide.
2026-09-19 01:24:27 +08:00
chengyongru
078e35f317
fix(agent): run explicit recovery continuations
2026-09-18 18:07:03 +08:00
AlfredChaos
24c41a6af0
fix(channels): drop compaction notices on channels without an in-place affordance ( #5799 )
...
* fix(channels): drop compaction notices on channels without an in-place affordance
QQ's C2C/group message API has no edit or recall endpoint, so the
compaction lifecycle reached the chat as two permanent standalone
messages. Add a show_compaction_notices capability that defaults to
true (Telegram/Discord/WebSocket keep their in-place lifecycle) and
opt QQ out, with a per-channel showCompactionNotices config override.
Fixes #5784
* fix(qq): keep compaction-notice suppression inside the QQ channel
Per review on #5799 : drop ContextCompactionEvent in QQChannel.send()
based on a QQ-local QQConfig.show_compaction_notices (default false,
camel alias showCompactionNotices) instead of a cross-channel
BaseChannel capability plus manager-level configuration and dispatch
policy. BaseChannel, ChannelManager and the manager compaction test
return to their upstream shape.
Also adds the missing zh-TW locale copy (plus es/id/ko/vi so all ten
QQ locales carry the new setup field) and QQ-level tests covering the
default drop, the enabled path, ordinary-message passthrough, and the
camelCase config override.
2026-09-18 00:45:58 +08:00