| fix: cross-platform Windows compatibility for core runtime
- paths.ts: normalize Windows backslashes and strip drive letters in project IDs
- createBackup/restoreBackup: guard fs.chmod on Windows (no Unix permissions)
- ProjectSessionStorage: sanitize illegal Windows filename characters (:, <, >, ", |, ?, *)
- JsonlTranscriptWriter: use path.join for subagent paths instead of hardcoded /
- BackgroundTaskRuntime: remove platform guard, let Windows use the same runtime
- commandRunner: Windows-compatible process termination (taskkill vs SIGTERM)
- listProjects: platform-aware project ID resolution
- createLocalGateway: sanitize session keys for browser screenshot paths
- pilotPaths.js: sync createLegacyProjectId with paths.ts normalization
- package.json: cross-platform build script using Node.js fs module
Co-authored-by: Cursor <cursoragent@cursor.com>
| 9 天前 |
| fix(session): restrict title parsing to session_metadata lines and show latest user question
The sidebar was incorrectly picking up "title" fields from tool-call
inputs (e.g. AskQuestion) and web-search results, displaying them as
the session title. Now only JSONL lines with "type":"session_metadata"
are scanned for title/aiTitle/tag.
Also switches the fallback summary from the first user prompt to the
last one, so the sidebar always reflects the most recent topic.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 14 天前 |
| feat: add gateway/adapters/context/session and Ink TUI
Introduce the gateway and adapter layers needed to drive PolitDeck from
CLI, TUI, Web and Feishu through a single backend. Gateway exposes a
data-only Gateway interface with InProcessGateway, RemoteGateway and a
local WebSocket server (token auth, /ws upgrade, static UI mount).
Adapters add a Claude Code-style Ink TUI (welcome card, header,
PolitDeck/You/⎿ message labels, ink-text-input prompt, deep-blue
theme), a CLI/TUI remote-first entry that falls back to a local
in-process gateway, and Feishu webhook plus session mapper plugins.
Pull session, transcript and context out of agent into top-level
session/ and context/ modules, including the EdgeClaw memory provider.
Add gateway/adapters config parsing, a Vite/React UI skeleton, an
end-to-end OpenRouter Kimi K2.6 tool-use test plus a TUI recording
script driven by ink-testing-library.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 25 天前 |