| fix(model): deep-clone nested content in cloneMessages
cloneMessages used spread to shallow-copy content blocks, leaving
CanonicalToolResultBlock.content and CanonicalToolCallBlock.input
as shared references between original and clone. Extract a shared
clone utility that deep-copies these nested structures and replace
three duplicate private implementations.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 8 天前 |
| feat: add tool and agent runtime foundations
Build the PolitDeck tool/permission runtime and start the agent loop on canonical model/tool contracts so future refactors can prove parity against legacy behavior.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 26 天前 |
| feat: add tool and agent runtime foundations
Build the PolitDeck tool/permission runtime and start the agent loop on canonical model/tool contracts so future refactors can prove parity against legacy behavior.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 26 天前 |
| refactor: rename Polit/PolitDeck to Pilot/PilotDeck across entire codebase
Automated global rename covering all case variants:
- PolitDeck → PilotDeck, politdeck → pilotdeck, POLITDECK → PILOTDECK
- Polit → Pilot, polit → pilot, POLIT → PILOT, politDeck → pilotDeck
Includes:
- 648 content replacements across 200+ source files
- 24 file renames + 3 directory renames (src/polit→pilot, tests/polit→pilot, docs/polit-config→pilot-config)
- package.json name, bin, env vars updated
- package-lock.json regenerated
- "Politely" in server-manager.ts preserved via placeholder mechanism
- All 587 unit tests pass, tsc --noEmit clean
- E2E tests verified against real OpenRouter API (model, tool-use, context, lifecycle hooks)
Co-authored-by: Cursor <cursoragent@cursor.com>
| 24 天前 |
| fix(context): prevent multimodal content from accumulating in context
Separate PDF binary data from tool_result into supplementalMessages,
enforce a 10-page limit for PDFs without explicit pages parameter,
remove image duplication in projectToolResults, add COMPACTABLE_TOOLS
filtering to MicroCompactionEngine with proper multimodal size
estimation, and strip multimedia before full compaction summarization.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 10 天前 |