* 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
* fix(cli): require compatible terminal prompt dependencies
Require prompt-toolkit 3.0.52 for Windows VT100 input flushing and Questionary 2.1.1 for compatibility with its prompt layout. Keep the existing major-version bounds and Python minimum.
* refactor(cli): use Questionary for onboarding selection
Delegate menu navigation, selection and scrolling to questionary.select. Retain the existing back/cancel contract, palette and position feedback through a thin adapter and exercise real prompt keyboard behavior instead of viewport arithmetic.