Commit Graph
178 Commits
Author SHA1 Message Date
Sycun c07b6ac4ac feat(pi): integrate durable assessments, tool discovery and migration controls 2026-11-11 10:06:25 +08:00
Sycun 67683f4266 merge: preserve personal assessment and model profile work in Pi migration 2026-11-11 09:22:23 +08:00
Sycun 43b5ac2da5 feat(runtime): introduce Pi agents and native workflow and retrieval engines 2026-11-11 09:19:14 +08:00
Sycun e4de840086 fix(multiagent): repair interleaved agentic stream indices 2026-11-06 21:26:00 +08:00
Sycun f895a33eb1 merge: integrate local model profiles with personal gateway headers 2026-11-03 10:17:34 +08:00
Sycun 07864b355f feat(assessment): add durable deep assessment workbench independent of chat 2026-11-02 21:17:03 +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 0d97169d07 fix(ai): report the configured budget in context clamp warnings
The warning was computed after the runtime config had already been clamped,
so configured and effective values were identical and the clamp warning was lost.
2026-10-21 00:16:30 +08:00
Sycun d7e8a29dfe feat(ai): add local model context profile and runtime window probe
- Probe Ollama, llama.cpp, LM Studio and vLLM runtime context windows, including reverse-proxy subpaths
- Add context_window and context_profile=local: clamp budgets, compaction triggers, tool-output limits and always-visible tools
- Count tool schemas in the soft input budget and apply a 10% token estimate margin for local tokenizers
- Prefer max_tokens for local requests across agent, attack-chain, FOFA, workflow and HITL paths, and honor channel extra_request_fields
- Recognize local context-overflow errors and retry with aggressive compaction
2026-10-21 00:12:57 +08:00
Sycun 7bf9eb8511 Merge main and reconcile project resume with checkpoint index limits 2026-10-16 11:15:11 +08:00
Sycun ac42b925da Merge remote-tracking branch 'origin/main' into codex/project-resume-reuse 2026-10-16 11:11:04 +08:00
Sycun 0fb5484657 Merge upstream main and resolve context memory asset conflicts 2026-10-16 11:02:49 +08:00
公明 7ad837c636 Merge pull request #354 from Sycun/codex/token-usage-monitoring
feat: add detailed token usage monitoring and cache write metrics
2026-10-16 10:59:00 +08:00
Sycun 6f991167a4 fix: restore project artifacts and test outcomes when resuming tasks 2026-10-15 22:02:22 +08:00
Sycun 16189e0b76 fix: close review findings in context memory, attack chain and blackboard
Attack chain: failure text goes to textContent, so opt out of i18next
interpolation escaping that rendered upstream errors as //";
give regenerate its own message key; keep the summary card expanded across
a 409 refresh; probe for a cached graph before parsing last_react_input so
polling no longer re-reads a multi-megabyte column; hide the card in the
node-details exclusive state and bound it on narrow screens; drop the dead
hardcoded Chinese title from the API payload.

Blackboard: stop mirroring note/context-* keys into the fact body links
section, which get_project_fact returns verbatim without scope filtering;
single-line category and confidence in index rows so a newline cannot inject
a fake row; make the path overview fail closed on an empty index set.

Provenance: reuse fitUserIntentLedgerText when sanitizing a ledger entry so
a single entry cannot exceed its cap by the three ellipsis runes.

The .cjs harness now escapes interpolated values like real i18next, so the
existing XSS test also pins the escapeValue opt-out.
2026-10-12 23:16:33 +08:00
Sycun 983c981b92 fix: preserve human intent through planning and restart while keeping legacy edits
Mark generated execution prompts, populate deterministic user sections from actual human entries, preserve canonical ledger on overflow/transient restarts, fit long human entries under their formatted budget, and keep unchanged historical keys editable. Add real reduction-to-snapshot Cookie recovery and production entry-point regression tests.
2026-10-12 19:34:24 +08:00
Sycun 8149201ef2 fix: carry canonical user ledger through native model-input merging 2026-10-12 18:08:59 +08:00
Sycun b642fc7c83 fix: preserve compaction provenance through resume and harden memory retrieval
Carry allowlisted summary origin and host user ledger across the trace recovery boundary. Keep immutable snapshot links after alias failures, scope legacy padded keys, remove stale indexes under small budgets, reuse retrieval clues for labels, and add cross-platform memory CI.
2026-10-12 17:56:43 +08:00
Sycun 4f0a3049cb fix: recover summary limits and sanitize agentic tool history 2026-10-12 16:49:22 +08:00
Sycun 2c311a6ab1 fix: harden checkpoint provenance, scope and atomic binding 2026-10-12 10:49:23 +08:00
Sycun 015e16457e fix: label generated context provenance in transcript evidence 2026-10-12 10:14:25 +08:00
Sycun 60d76be064 fix: exclude generated summaries from original user intent 2026-10-12 10:10:52 +08:00
Sycun 6b8bbbe91b feat: scope automatic working memory to the current conversation 2026-10-12 09:59:15 +08:00
Sycun 1d2e900e88 feat: simplify snapshot retrieval and add readable timestamps 2026-10-12 00:33:17 +08:00
Sycun e073709e8f fix: preserve evidence across truncated indexes and failed writes 2026-10-11 23:58:07 +08:00
Sycun 68c01d3429 feat: index compaction evidence for targeted context recovery 2026-10-11 23:43:07 +08:00
Sycun 616726d452 feat: persist compaction checkpoints in the project blackboard 2026-10-11 23:08:54 +08:00
Sycun b3d3f48c40 feat: add detailed token usage monitoring and cache write metrics 2026-10-11 22:30:30 +08:00
Ed1s0nZ bbfcb87103 fix: avoid duplicate summarization token limits 2026-09-23 18:02:00 +08:00
Ed1s0nZandCursor 3aa9274675 fix: make Eino exit and transfer work on AgenticMessage state
Official ExitTool still writes classic Message react state, which breaks supervisor delivery on the Agentic path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 10:44:34 +08:00
Ed1s0nZandCursor bf1b23f14b fix: prefer exit final_result over supervisor intro text
When supervisor exits with a short assistant intro, surface exit.final_result in the final response so the audit report is not dropped.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 11:32:59 +08:00
Ed1s0nZ f7882be546 feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
Ed1s0nZ 3a9e5dc7c3 fix: stream summaries and validate completion metadata 2026-09-14 16:16:56 +08:00
Ed1s0nZ 6ad9ea2d13 feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
temp d7581a6373 fix: surface summarization model errors 2026-08-25 18:28:47 +08:00
temp 4c011abb9d fix: bound summarization max tokens for claude models 2026-08-25 16:37:45 +08:00
temp e4441f91ad fix: stabilize eino summarization for deepseek 2026-08-25 14:54:02 +08:00
temp baff533196 fix: disable chat checkpoint resume 2026-08-24 18:42:06 +08:00
temp 474238cfc5 fix: distinguish model original errors 2026-08-24 14:53:02 +08:00
temp b47f8df3b0 fix: avoid inferred retry failure reason 2026-08-24 14:48:37 +08:00
temp a67761e843 fix: surface original Eino retry errors 2026-08-24 14:43:48 +08:00
temp b41596d51f Fix Eino final output fallback capture 2026-08-24 14:32:27 +08:00
temp e218316c55 Add token usage tracking and UI refinements 2026-08-24 00:05:05 +08:00
tempandCursor d88cfea761 fix: 为 Eino agentic 路径补充 tool_call/tool_result 配对防御中间件
agentic 路径(单代理模式)缺少 toolPairReconciler 和 orphanToolPruner,
当 summarization 截断历史破坏配对后,序列化到 OpenAI API 触发 400
"insufficient tool messages following tool_calls message"。

新增 AgenticMessage 版本的 reconciler 和 pruner,与 classic 路径对齐。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 17:24:03 +08:00
公明andCursor 24d06c5220 Fix missing results for parallel Eino tool calls.
Merge streaming tool outputs by CallID with ConcatMessages, pair same-name historical results, and FIFO-match duplicate IDs so concurrent nmap 1/2 and 2/2 stay distinct.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 00:29:12 +08:00
公明 11537713ce Add files via upload 2026-08-18 20:30:18 +08:00
公明 acc2ebd7e2 Add files via upload 2026-08-18 20:29:17 +08:00
公明 5eaddd9e8c Add files via upload 2026-08-18 20:25:43 +08:00
公明 3421d8b047 Add files via upload 2026-08-18 20:23:28 +08:00