* fix(webui): reconcile cross-session history by message ID
* fix(sessions): preserve target authority and input ownership
Resolve cross-session follow-ups through the target route, carry stable input IDs through admission and recovery, and associate live and replayed answers with the inputs actually consumed.
Keep ordinary input scope isolation and omit historical anomaly repair. Resolves NAN-430.
* fix(sessions): complete input identity integration across boundaries
Carry input identity explicitly in projected input events, keep runner annotations out of public history, and reuse the canonical WebUI session parser during recovery.
Type validated recovery metadata and align existing channel and subagent regressions with explicit response ownership. All nine failed compatibility cases and adjacent recovery coverage pass in a focused 58-test run.
* fix(sessions): unify input recording and block remote commands
* fix(webui): keep input ownership checks page-bounded
Look up referenced inputs through the existing identity index before invoking transcript backfill. Complete pages no longer scan the full prompt history, including answers whose inputs live on earlier pages.
Cover cold-cache pagination and cross-turn ownership in existing regressions. Focused pagination, replay and follow-up recovery checks: 88 passed.
* fix(webui): preserve response ownership during history replay
* fix: resolve strict typing in response replay
* fix: preserve continuation ownership during recovery
* test: diagnose stuck gateway asyncio shutdown
* test: retain gateway thread stack diagnostics
* test(webui): stabilize native autoscroll browser setup
* 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.
* 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
* refactor(agent): unify runner request fitting
* fix(agent): fit every runner model request
* fix(agent): count resumed state during request fitting
* refactor(agent): consolidate request fitting state
* refactor(agent): defer transcript assembly to runner
Keep persisted history and the fresh turn as explicit inputs until the Runner assembles the provider transcript. Preserve ContextBuilder and direct AgentRunner compatibility while making the save boundary structural.
Refs NAN-81.
* fix(providers): preserve mixed adjacent user content