This reverts commit cb3ba45317.
Keep JSONL history and legacy proxy migration available throughout 0.4.x. Mark their removal for 0.5.0 in code and release guidance, preserving later context graph, archive and recovery changes.
Keep workspace changes at the authenticated owner boundary. Queue follow-up inputs separately when their tool scope differs from the active run.
Co-authored-by: Tenable Research <152317477+tenbbughunters@users.noreply.github.com>
Preserve configured tool settings when building subagent registries while retaining the effective workspace restriction.
Co-authored-by: BillDwyer <BillDwyer@users.noreply.github.com>
* fix(compaction): retain native state across retry and recovery
Accept successful native compaction before generation, checkpoint its durable continuation, and reuse it across provider retry and fallback scopes. Preserve pending tool pairs and temporary-session ownership boundaries.
Resolves NAN-404
* test: fix native compaction regression imports
* fix(webui): stream model status and usage during active turns
* fix(webui): keep live rounds and active-run status consistent
* fix(webui): reuse existing run indicators without extra status text
* fix(webui): preserve live activity and batch durable delivery
Cancel and drain sibling tools when progress notifications fail, retain balanced checkpoints, and keep model telemetry separate from answer provenance.
Group-commit already queued activity at the channel delivery boundary while preserving FIFO, generation ownership, per-envelope admission, and commit-before-fanout semantics. Isolate invalid members without dropping valid neighboring events.
Retain tool detail lazy grouping and cover scheduling, cancellation, persistence, encoding failures, and projection regressions.
* test(webui): separate standard-library imports in batch regression
* test: tighten live execution checks and clarify contracts
* refactor: remove redundant live execution comments
* refactor: settle tool results through one output path
* 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.
* fix(recovery): preserve complete checkpoints and refresh cancellation drafts
Retain earlier tool rounds and consumed follow-ups until the transcript is committed, and classify a fresh session after cancelling active recovery. Keep history and follow-up acknowledgement atomic through the session owner.
* test(recovery): cover completion during cancellation handoff
* fix(gateway): preserve failure exit status after runtime crashes
Report uncaught gateway runtime failures as exit code 1 after the existing cleanup, just like startup failures. Remove the startup-only guard without changing controlled shutdown or supervisor policy.
Reuse lifecycle regression coverage for startup/runtime failure diagnostics and cleanup, and update runtime fault fixtures to expect failure.
Refs: NAN-394
* fix(recovery): make interrupted tool outcomes explicit
* fix(mcp): avoid unsafe replays and retain error states
Recover stale connections before non-replayable tool submissions, and report unknown outcomes without replaying calls after transport loss. Preserve structured error results for resource and prompt wrappers.
NAN-393
NAN-395
* test(recovery): assert unknown outcome guidance
* fix(runtime): revalidate replay contracts and preserve recovery input identity
Bind replay safety to each request session, adopt the rediscovered contract, and stop automatic replay when it loses its safety declaration. Treat cumulative checkpoints as uncommitted deltas rather than deduplicating independent inputs by text, retaining legacy single-batch recovery compatibility.
Extend the existing reconnect and same-text follow-up regressions, and align MCP privacy/proxy fixtures with preflight and explicitly safe replay without relaxing their privacy or routing assertions.
* fix(mcp): report unknown outcomes after submitted tool timeouts
Real HTTP response-loss probing with Codex exposed that the MCP SDK can surface a lost response as a timeout. Preserve preflight timeout semantics, but report possible completed effects after a non-replayable request has started. Never replay or weaken task cancellation.
* fix(webui): keep saved topics bound to their project
Lock the project as soon as the session exists, independently of loaded history. Validate both explicit updates and message admissions against the persisted directory while retaining same-project permission changes.
Related to #6505.
Co-authored-by: Xiaoyu-hub <17346801517@163.com>
* test(agent): retain goal shutdown failure stacks
Use the existing stop_loop diagnostic without changing the five-second teardown deadline or the goal assertions. The Windows failure on #6509 reached session shutdown but did not capture its worker stacks.
* test(cron): await rearm tick completion instead of disk timing
The Windows run completed the first and last jobs correctly, but rescheduling took over three seconds inside a two-second timeout. Await the original timer task, detect an early exit before callback entry, and preserve job-order, cancellation, persistence and rearming assertions. Keep real disk writes and all parameterized cases.
Also place the goal-shutdown diagnostic import in the existing first-party group.
---------
Co-authored-by: Xiaoyu-hub <17346801517@163.com>
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.
* feat(attachments): support local files and video attachments
Share gateway inspection and send validation for borrowed local paths while preserving binary uploads, original-file ownership, and existing limits.
Related to NAN-284. Native provider video input remains outside this change.
* test: make cross-platform verification fixtures self-contained
* test(webui): align typed fixtures with runtime contracts
* fix(webui): preserve uploaded video playback during history sync
* test(tui): preserve local attachment drafts across resizes
* perf(attachments): preserve upload caches and release video previews
* docs(webui): keep attachment guidance user-focused
* chore: remove redundant dependency comment
* test(providers): make stream idle renewal timing deterministic
* fix(attachments): keep upload byte limits out of local references
Validate common format/count rules separately from upload byte budgets. Keep local inspection and send-time checks metadata-only, and exclude local references from composer and pending-upload totals. Explain upload size rejections with actual size and maximum in all ten locales. Related to NAN-284.
* fix(attachments): retain image references and draft order
* fix(attachments): close local reference UX and authorization gaps
* fix(attachments): preserve focus during asynchronous path confirmation
Add owner-aware Stable and Preview updates with explicit consent, verified release plans, protected process handoff and bounded service recovery. Keep configuration and conversations separate from program rollback.
Include the compact About controls, Windows long-path support, native package recovery checks and optional macOS Dock lifecycle integration. Preserve documented guidance for installations owned by other managers.
This code integration does not publish packages, enable signing or advance the public update channel.
Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
* 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
* test: merge overlapping semantic contract coverage
Consolidate the six confirmed NAN-310 overlap groups while preserving replay, usage, generation kwargs, archive metadata, inspect fields, and subagent crash/redelivery assertions.
* test: lighten history seeds and layer runner progress rules
* ci: defer test storage setup and record phase timings
Close each listener-owned binary bridge before waiting for its TCP server; retain active upload and undecided-connection regressions. Avoid consuming readiness twice and run the repository import scan once in its static gate. NAN-310.
* test: scope filesystem mocks and observe consumed socket prefixes
* test: publish subprocess readiness files atomically
* ci: isolate external tool discovery and use three Windows workers