chengyongru
519ed81132
feat(webui): inspect file context in a live graph sidebar ( #6562 )
...
* feat(webui): inspect file context in a live graph sidebar
* refactor(webui): place preview controls in the shared sidebar header
* fix(webui): synchronize npm lockfile for graph dependencies
* fix(webui): preserve compacted context and refine graph inspection
* fix(context): harden provenance, request usage, and drawer lifecycle
* fix(webui): align source skeleton and browser fixtures
* perf(context): reuse source analysis and capture request graphs once
* perf(webui): compact graph history and render graph motion on canvas
* fix(webui): remove redundant context sidebar header
* style(webui): clarify context replay icon
* perf(webui): pace context replay on an adaptive timeline
* feat(webui): briefly reveal labels for new context nodes
* fix(webui): reveal new labels only for loaded context files
* fix(webui): restart graph animation clock after idle
* fix(webui): reveal labels when replay reverses node exit
* refactor(context): project file-use facts without retention tracking
* refactor(context): observe file reads outside agent execution
* fix(webui): animate context sidebar closing
* refactor(context): remove unused graph and usage panel code
* refactor(context): isolate prompt observation from execution metadata
* fix(webui): clarify cache rate and show context token usage
* fix(webui): abbreviate context token counts in thousands
* fix(webui): omit token unit from context usage details
* fix(webui): restore large source preview highlighting and panel elevation
* fix(webui): distinguish modifier scrolling from keyboard focus
* fix(webui): align preview tab and panel corner radii
* fix(webui): attach file tabs to the header divider
* fix(webui): use one action to toggle file preview mode
* fix(webui): use hover hint for context replay
* fix(webui): share composer layout between graph and file sidebars
* fix(webui): align sidebar bottom with composer surface
* fix(webui): restore mobile graph drawing and touch file details
* test(webui): align legacy cache assertions with current label
* perf(context): retain source analysis and bound graph animation work
* style(webui): add light elevation to user messages
* test(webui): await lazy graph scene before replay assertions
* fix(webui): align preview skeleton and browser contracts
2026-11-05 17:09:20 +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
lenin
9650f4fd5b
fix(agent): recheck idle expiry after acquiring session lock
...
Reload settled activity inside the existing session lock before an idle
archive delegates to the consolidator. A fresh turn restarts the idle
interval; manual compaction keeps its existing behavior.
Cover both scheduling orderings and later genuine idleness, and give
existing direct idle-archive fixtures explicit idle preconditions.
2026-10-25 13:18:39 +08:00
chengyongru
bc5c58d239
feat(webui): distinguish context compaction reasons (NAN-324) ( #6389 )
...
* feat(webui): distinguish context compaction reasons (NAN-324)
* fix(webui): describe idle compaction cancellation as interruption
* docs: omit compaction notice details from configuration guide
* fix(i18n): make compaction notices read naturally
* fix(i18n): keep CJK compaction notices concise
* fix(i18n): describe idle compaction as unfinished
2026-10-22 16:13:25 +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
67742b2880
refactor(command): declare session queue policy at registration ( #6170 )
...
* refactor(command): distinguish handled commands without replies
* refactor(command): declare session queue scheduling at registration
2026-10-12 13:38:14 +08:00
Xubin Ren
a27f294f52
perf(agent): trim workspace access context without changing scope
2026-10-11 17:06:39 +08:00
Xubin Ren
c1fc6171b6
test: distinguish public history in compaction commands
2026-10-11 17:06:39 +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
Arthur K.
0b402d0414
fix: stop sending context compaction notifications
2026-09-30 13:44:42 +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
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
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
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
L4XB
a068de8068
fix(channels): keep the compaction outcome visible, gate only the start notice
...
Rework after review: compaction changes the context of every later turn,
so its outcome (compacted / failed / cancelled) is always delivered,
whether the user or the scheduler started it. Only the transient
"Compressing context…" start notice follows the channel's send_progress
setting, so a channel with progress off receives one notice per
compaction instead of two. The manual flag is gone.
2026-09-11 11:15:57 +08:00
L4XB
92f151ae67
fix(channels): make automatic compaction notices follow send_progress
...
Idle auto-compaction emitted "Compressing context…" / "Context compacted."
as standalone messages even when the channel had sendProgress: false, so
routine maintenance kept interrupting Discord chats after scheduled turns.
Gate ContextCompactionEvent notices in the outbound dispatch loop on the
channel's send_progress like other progress text. Two cases stay visible
regardless of the setting: a user-requested /compact (the event now
carries manual=True, set by cmd_compact through compact_idle_session)
and a failed compaction.
Fixes #5719
2026-09-11 11:15:57 +08:00
chengyongru
3548aec576
fix: use summary checkpoints for all compaction triggers ( #5694 )
...
* fix: exclude archived history after manual compaction
* refactor: share summary checkpoints across compaction paths
* fix: use summary checkpoints for every compaction trigger
* test: assert replay starts at the archived boundary
* fix: preserve nothing summaries without raw fallback
* test: assert compaction results positively
* test: verify checkpoint continuation after session reload
2026-09-08 13:16:45 +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