- Replace old event types with V2 content.delta, item.started/completed, request.opened/resolved
- Use RuntimeSessionId, ThreadId, TurnId, RuntimeItemId, RuntimeRequestId branded IDs
- Add payload objects for all event types
- Use CanonicalItemType and CanonicalRequestType for item/request classification
- Include providerRefs on all emitted events
Co-authored-by: Julius Marminge <[email protected]>
- Replace old event types (message.delta, tool.started, etc.) with V2 types
- Emit content.delta, item.started/completed, request.opened/resolved
- Add reasoning, plan, command output, and file change delta mappings
- Add turn.plan.updated support
- Use RuntimeSessionId, ThreadId, TurnId, RuntimeItemId branded IDs
- Include providerRefs and raw envelope on all events
Co-authored-by: Julius Marminge <[email protected]>
- message.delta → content.delta with payload.streamKind/delta
- tool.started → item.started with payload.itemType/status/title/detail
- tool.completed → item.completed with payload.itemType/status/title/detail
- approval.requested → request.opened with payload.requestType/detail
and RuntimeRequestId instead of ApprovalRequestId for event requestId
- turn.started now includes payload: {}
- turn.completed uses payload.state instead of top-level status
- runtime.error uses payload.message instead of top-level message
- Activity kind assertions (approval.requested, tool.started, etc.) left unchanged
Co-authored-by: Julius Marminge <[email protected]>
- Import RuntimeSessionId; use string casts for ProviderSessionId vs
RuntimeSessionId comparisons and 'as unknown as ProviderSessionId'
for assignments
- Replace event.status with event.payload.state for turn.completed
- Remove checkpoint.captured handler (event removed from V2 union);
turn.completed already triggers captureCheckpointFromTurnCompletion
- Remove checkpoint.captured from stream event filter
- Update test file: use RuntimeSessionId, ThreadId, TurnId for runtime
events; replace status with payload.state; add payload field to
turn.started events; convert checkpoint.captured tests to
turn.completed equivalents
Co-authored-by: Julius Marminge <[email protected]>
- Replace global reasoning constants with provider-scoped effort options/defaults
- Update ChatView to use Codex-specific reasoning effort types and default lookup
- Expand model contract tests for provider-specific reasoning effort behavior
- Restructure runtime events around a shared base plus typed payloads
- Add runtime-branded IDs and new event types (plan, item, request, user-input)
- Remove legacy canonical event names from docs and add schema decode/rejection tests
- Add Cursor ACP raw source types to `RuntimeEventRaw.source`
- Define canonical mappings for ACP lifecycle, updates, permissions, and errors
- Expand cross-provider equivalence table to include Cursor ACP and renumber sections
- Switch plan from `agent -p` stream-json to `agent acp` JSON-RPC transport
- Document ACP session, permission, event-mapping, and interrupt/recovery behavior
- Update implementation phases, tests, and delivery checklist for ACP-first design
- add `scripts/cursor-acp-probe.mjs` to run ACP protocol probing scenarios
- update `package.json` scripts for probe execution
- include generated probe summaries/transcripts under `.tmp/acp-probe/`
- Accept `cursor` as a first-class provider in orchestration, persistence, and session directory flows
- Update model/provider inference and normalization to handle Cursor model aliases
- Revamp chat provider/model picker with Cursor-specific trait controls and add coverage in tests
- add per-session `sessionSequence` on provider runtime events and persist activity `sequence`
- migrate `projection_thread_activities` with nullable `sequence` column + index
- sort server/web activity projections by sequence fallback to timestamp/id
- allow provider sessions/turns to start before a real threadId is emitted
- Default Claude sessions to bypass permissions when approval policy is `never`, while preserving explicit `permissionMode`
- Hide/send reasoning effort only for providers that support it in ChatView
- Add coverage for Claude permission-mode derivation and precedence, and update runtime event model docs
- Preserve active turn state when `session.started`/`thread.started` arrive mid-turn
- Emit `message.delta` from assistant text when stream deltas are missing, then complete the message
- Add Claude native SDK NDJSON observability logging and wire its log path in server layers
- Expand ingestion/adapter tests to cover mid-turn lifecycle and delta fallback behavior
- Do not pass `resumeCursor` when restarting a session after changing providers
- Treat synthetic Claude thread IDs (`claude-thread-*`) as unscoped during runtime ingestion
- Add tests covering provider-switch restart behavior and Claude turn lifecycle acceptance
- Stop synthesizing `resume` from generated thread IDs
- Persist resume session ID from query messages when available
- Validate resume/sessionId values as UUIDs before reuse
- Add tests for valid UUID resume passthrough and no synthesized resume
- Replace manual prompt async iterator with `Stream.fromQueue(...).toAsyncIterable`
- Use `Ref` for shared session context in tool approval callbacks
- Simplify timestamp/ID generation and close sessions via queue shutdown
- add `@anthropic-ai/claude-agent-sdk` dependency for `apps/server`
- replace placeholder Claude adapter with live session/query/event handling
- add comprehensive adapter tests for runtime events, approvals, resume, rollback, and model overrides
- introduce `ClaudeCodeAdapter` service and live layer wiring
- map runtime/session/request failures into provider adapter error types
- add coverage for validation, session-not-found mapping, lifecycle forwarding, and event passthrough
- Add per-provider model options, defaults, and slug aliases
- Add provider-aware model normalization/resolution helpers
- Preserve Codex-only constants/functions for backward compatibility
- Extend tests to cover Claude aliases and provider-specific fallback behavior
- Write projected attachments under the thread directory using `messageSegment-fileName`
- Avoid nested per-message folders while preserving unique, deterministic file paths
- Update projection pipeline tests to match new attachment URLs and on-disk paths
- Make projection attachment writes use last-write-wins per file path
- Always write attachment files so updated message attachments replace stale bytes
- Add regression test covering same message/attachment index update behavior
- Treat `attachments: []` as an explicit update instead of dropping the field
- Add regression test covering attachment clearing for an existing thread message