chengyongru and chengyongru
62c2ed4e7e
refactor(goal): sustain one ReAct run until the goal closes ( #6538 )
...
* refactor(goal): sustain one ReAct run until the goal closes
Keep active goals in the same runner beyond the ordinary iteration limit, with a final answer after successful closure. Remove cross-turn goal handoffs, continuation allowances and rollback bookkeeping while preserving input authorization, recovery, cancellation and terminal lifecycle ownership.
Contributes to NAN-392
Co-authored-by: chengyongru <chengyongru.ai@gmail.com >
* test(goal): consolidate sustained-run regression coverage
Retain lifecycle, history, usage, provider-state privacy and checkpoint cancellation assertions in the existing long-run scenarios. Remove duplicate smoke cases and parameter combinations that do not exercise distinct behavior; keep real Gateway, authorization and generation regressions.
2026-11-03 22:47:00 +08:00
chengyongru
a4d2430140
refactor: remove redundant comments and docstrings ( #6527 )
...
* refactor: remove redundant comments and docstrings
* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00
chengyongru
ce885fa31e
fix(agent): preserve goal continuation lifecycle
2026-10-24 19:25:34 +08:00
chengyongru
b32b1327ce
refactor(session): unify model and display history storage ( #6336 )
...
* refactor(session): persist display history in SQLite
* fix(session): preserve new fork activity timestamps
* test(agent): use SQLite-owned model failure recovery fixture
* test(agent): isolate session slash routing from loop shutdown
Exercise the real inbound dispatcher and await its session worker. Keep response deadlines and behavioral assertions, while leaving full SQLite cleanup to the existing async fixture rather than an unrelated two-second shutdown deadline.
* fix(webui): admit direct deliveries to display history
* docs: clarify session history migration guidance
2026-10-21 16:13:59 +08:00
Xubin Ren
508cedff31
fix(channels): retain scheduled results across pre-send outages
2026-10-17 12:49:03 +08:00
Xubin Ren
61db036cee
test(cron): narrow delivery review to saved-chat routing
2026-10-17 12:49:03 +08:00
Xubin Ren
9c1b16b3cc
fix(channels): retain scheduled results across pre-send outages
2026-10-17 12:49:03 +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
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
chengyongru
6ff96f2a8f
feat(subagent): add session-owned task messaging and cancellation ( #5985 )
...
let's go!
2026-10-05 05:16:33 +08:00
Xubin Ren
7644d845b4
fix(channels): preserve explicit compaction feedback and silent delivery
2026-09-30 13:44:42 +08:00
Arthur K.
0b402d0414
fix: stop sending context compaction notifications
2026-09-30 13:44:42 +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
Xubin Ren
8d0430c761
feat(webui): show persisted fallback preset on replies (NAN-133)
2026-09-20 15:16:35 +08:00
chengyongru
b581a496a6
fix(ui): surface model retry status (NAN-34) ( #5504 )
2026-09-07 15:12:39 +08:00
chengyongru
192e2e90dc
refactor(events): unify scoped runtime notifications across clients ( #5670 )
...
* refactor(events): unify scoped runtime notifications across clients
* style(tests): sort auto-compaction event imports
* refactor(events): scope connections and remove retry callback plumbing
* docs: remove runtime notification design write-up
* refactor(bus): route operation events through the message bus
* fix(channels): isolate outbound sends by destination
* style(events): group shared notification imports
* refactor(events): converge runtime and hook delivery on MessageBus
* test(events): migrate fixtures to unified message bus
2026-09-06 02:11:19 +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
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
chengyongru
9895c23cb5
refactor(providers): define typed usage contract
2026-08-25 01:04:25 +08:00
Xubin Ren
4391bbf4da
feat(tui): add agent interaction workflows
2026-08-17 20:56:10 +08:00
Xubin Ren
731b8fc2ed
fix(models): synchronize canonical runtime selection
2026-08-16 11:50:56 +08:00
chengyongru
757ad9c764
refactor: enforce BasedPyright strict type checking ( #5158 )
2026-07-29 21:37:11 +08:00
chengyongru
e6baecafcd
fix(agent): close length recovery lifecycle gaps
2026-07-27 01:39:46 +08:00
chengyongru
27a00c7a4f
fix(webui): merge length recovery stream segments
2026-07-27 01:39:46 +08:00
chengyongru
66690fdb0c
fix(webui): deliver late subagent results as new turns ( #4992 )
2026-07-22 23:04:36 +08:00