Commit Graph

16 Commits

Author SHA1 Message Date
Sycun d0da169209 refactor(config): align context optimization with upstream Pi policy 2026-11-13 19:54:11 +08:00
Sycun 14c5422901 feat(config): apply context optimization automatically and detect oMLX 2026-11-13 14:41:55 +08:00
Sycun ebc8425f38 perf(pi): reduce DeepSeek input overhead with automatic economy profile 2026-11-13 14:24:10 +08:00
Sycun 0dd997ca01 refactor(runtime): remove Eino and make Pi the sole agent engine 2026-11-11 12:45:32 +08:00
Sycun f895a33eb1 merge: integrate local model profiles with personal gateway headers 2026-11-03 10:17:34 +08:00
Ed1s0nZ 5c5c5e199d fix(openai): preserve provider-specific reasoning disable intent (#366) 2026-10-21 15:43:53 +08:00
Sycun 8b74b33eee fix(ai): harden local context detection and budget previews
- Surface llama.cpp parallel slots via context_slots and a warning instead of treating n_ctx as the per-request window
- Pass max_completion_tokens into detection previews and warn when the output cap is clamped
- Clamp the effective budget to the window and use the assumed local window when clamping output
- Overwrite a stale window on explicit auto-detect so the preview matches the saved value
- Keep the budget-warning test repeatable and document failover/budget semantics
2026-10-21 09:47:03 +08:00
Sycun 0be25994a3 docs: document local model context tuning and runtime window detection 2026-10-21 00:13:01 +08:00
Sycun 470eb5ead1
feat: add runtime storage cleanup with per-category retention (#310) (#313)
Runtime artifacts (agent workspaces, tool-output spill, C2 payloads, chat
uploads, workflow checkpoints, diagnostic logs) previously accumulated
without bound: most were only removed when a conversation or project was
deleted, and tmp/c2 plus workflow checkpoints were never removed at all.

Add a storage cleaner with named per-category tasks (Gitea-style), a
settings page tab, and a background sweep that is off by default so
upgrading never deletes existing data.

Safety properties, since mis-deleting live task data costs far more than
the disk saved:
- dry-run is the default; a real cleanup requires dry_run=false together
  with confirm=true at the API layer, not just a frontend dialog
- sessions active within active_grace_hours are always skipped, and a
  failed activity lookup skips conservatively (fail closed)
- directories whose conversation/project no longer exists are reclaimed
  as orphans after orphan_grace_days
- scanners never follow symlinks and every candidate path is confined to
  its category root; deletion renames to a .tmp-for-deletion marker first
  so a crash leaves recoverable residue instead of a half-deleted dir
- storage:* permissions are admin-only; without the grantSystemRolePermissions
  skip the default branch would have given operators an irreversible
  file-deletion right

Also fix two confirmed leaks: DeleteConversation left chat_uploads files
on disk (their rows already vanished via ON DELETE CASCADE), and workflow
checkpoints had no deletion path at all.

Co-authored-by: Parallels <parallels@kali-linux-2025-2.localdomain>
2026-09-25 14:46:23 +08:00
Ed1s0nZ 38b96ec67a feat: add TypeSafe Jev as HITL audit backend
Let audit_agent approve or reject with one System One call instead of chat JSON, while keeping the OpenAI-compatible backend as an option.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 21:15:53 +08:00
Ed1s0nZ 94cdf760af feat: persist diagnostic logs with daily rotation and retention 2026-09-08 14:41:46 +08:00
公明 1f66b93866
Add files via upload 2026-08-18 20:41:19 +08:00
公明 f285d47404
Add files via upload 2026-07-23 19:14:09 +08:00
公明 95909ce999
Add files via upload 2026-07-14 11:49:40 +08:00
公明 1cf10981ef
Add files via upload 2026-07-11 11:30:50 +08:00
公明 00802a275c
Add files via upload 2026-07-07 14:04:18 +08:00