Commit Graph
845 Commits
Author SHA1 Message Date
Julius Marmingeandcodex 05f4cb216b chore: restore cursor acp probe artifacts on cursor stack
Co-authored-by: codex <[email protected]>
2026-03-05 22:02:29 -08:00
Julius Marminge e06782cb9f refactor: restore cursor provider surface on stacked branch\n\nCo-authored-by: codex <[email protected]> 2026-03-05 22:02:00 -08:00
Julius Marmingeandcodex e3c98ba52a Restore Cursor adapter on stacked branch
Co-authored-by: codex <[email protected]>
2026-03-05 22:02:00 -08:00
Julius Marmingeandcodex 12d7a5c411 chore: move cursor acp probe artifacts to cursor stack
Co-authored-by: codex <[email protected]>
2026-03-05 22:01:38 -08:00
Julius Marminge daf4b31fbf refactor: move cursor provider surface out of core\n\nCo-authored-by: codex <[email protected]> 2026-03-05 21:55:05 -08:00
Julius Marminge 7d5b896962 sync lock 2026-03-05 21:40:32 -08:00
Julius Marmingeandcodex a535aec704 split: move Claude SDK and plan doc to sibling stack
Co-authored-by: codex <[email protected]>
2026-03-05 21:36:46 -08:00
Julius Marmingeandcodex ef976af7cd split: move Claude provider surface to sibling stack
Co-authored-by: codex <[email protected]>
2026-03-05 21:27:30 -08:00
Julius Marmingeandcodex 02132281da model: move Claude catalogs out of core
Co-authored-by: codex <[email protected]>
2026-03-05 21:16:30 -08:00
Julius Marmingeandcodex 0789b38663 contracts: move Claude schemas out of core
Co-authored-by: codex <[email protected]>
2026-03-05 21:10:33 -08:00
Julius Marminge 8d9bc7c2cf Show unavailable providers as coming-soon placeholders
- Keep Claude Code and Cursor in provider list as disabled options
- Remove unused Claude agent SDK dependency from server
- Delete stale plan-mode deep-dive doc
2026-03-05 21:07:08 -08:00
Julius Marminge a2ee346b78 sync lock 2026-03-05 21:02:12 -08:00
Julius Marminge a01aaa305a rm tmp 2026-03-05 21:01:58 -08:00
Julius Marmingeandcodex 6df3c425f0 test: move Claude coverage out of core PR
Co-authored-by: codex <[email protected]>
2026-03-05 20:54:50 -08:00
Julius Marmingeandcodex d4f823f58d Remove Claude adapter from stack base
Co-authored-by: codex <[email protected]>
2026-03-05 20:00:52 -08:00
Julius Marmingeandcodex bf0712219e Remove Cursor adapter from stack base
Co-authored-by: codex <[email protected]>
2026-03-05 20:00:02 -08:00
Julius Marminge 576dc73d5f Add GPT-5.4 to Codex model options
- include `gpt-5.4` in Codex app model option coverage
- only keep truly custom Cursor models in the custom model option list
2026-03-05 19:51:58 -08:00
Julius Marminge 7d2e2b381d Plumb Codex model options through orchestration and composer
- Replace ad-hoc `effort` handling with provider `modelOptions` across decider/reactor/adapters
- Map Codex `reasoningEffort` and `fastMode` to turn/session params (`effort`, `serviceTier`)
- Persist runtime/interaction/model selections from composer and sync them before sending turns
- Move model normalization/helpers into `@t3tools/shared/model` with updated contracts/tests
2026-03-05 19:40:41 -08:00
Julius Marmingeandcodex 0c4999b764 Fix post-rebase typecheck regressions
Co-authored-by: codex <[email protected]>
2026-03-05 18:20:21 -08:00
Julius Marminge 3f503ccaf0 Prune internal contract exports and remove checkpoint RPC schemas
- Stop exporting internal-only schema constants/types across contracts modules
- Remove unused provider checkpoint list/revert/diff RPC contract schemas
- Keep public contract surface focused on externally consumed types
2026-03-05 18:17:21 -08:00
Julius Marminge da30070d9e style 2026-03-05 18:17:21 -08:00
Julius Marminge ede96cebf0 Persist proposed plans as first-class thread projection data
- Add `thread.proposed-plan-upserted` orchestration flow from ingestion through decider/projector
- Store proposed plans in a dedicated projection table and include them in snapshot queries
- Update provider runtime/web handling and tests to use proposed plans instead of assistant message wrappers
2026-03-05 18:17:21 -08:00
Julius Marminge 8572ca2d05 Add plan interaction mode and user-input request handling
- Wire Codex plan mode through turn start, including collaboration settings
- Track and answer pending `requestUserInput` prompts instead of auto-empty responses
- Persist/project thread `interactionMode` (schema, migration, queries) and update tests/contracts
2026-03-05 18:15:55 -08:00
Julius Marminge 1f9ea614d2 Migrate provider runtime/session flow to thread-scoped IDs
- Replace provider session-id centric plumbing with thread-id based runtime handling across server orchestration and provider layers
- Update persistence repositories/migrations and contracts for threadless runtime semantics
- Refresh integration/unit tests and web session/store types to match the new runtime model
2026-03-05 18:13:42 -08:00
Julius Marminge 13c113fcbb Improve session restart handling and server logging
- add structured lifecycle logs for Codex thread open/resume and provider session restarts
- introduce persistent server file logging layer and tighten WebSocket server startup/finalizer ordering
- preserve env-based boolean overrides in dev runner and stop forcing WS event logging in dev
- enrich provider session listing from persisted bindings and fix Claude rate-limit/task-id event mapping
- update orchestration and dev-runner tests for runtime-mode restart and env-flag behavior
2026-03-05 18:13:42 -08:00
Julius Marmingeandcodex 9a115a8055 Persist thread runtime mode and handle mode-switch session restarts
- Add `thread.runtime-mode.set` -> `thread.runtime-mode-set` flow in decider/reactors/projectors
- Persist runtime mode on thread/session projections with new DB migrations
- Update provider and Codex integration tests to verify thread continuity across mode changes

Co-authored-by: codex <[email protected]>
2026-03-05 18:13:42 -08:00
Julius Marminge 1d4ccdbe45 Clarify Cursor plan-mode semantics and ACP extension mapping
- Define Cursor operating mode as binary `default | plan`
- Document mapping for `cursor/ask_question`, `cursor/create_plan`, and `cursor/update_todos`
- Update capability and fallback guidance based on docs plus probe evidence
2026-03-05 18:13:20 -08:00
Julius Marminge ed2c4bd856 Rewrite plan-mode deep dive as implementation blueprint
- Reframe doc into a provider-agnostic implementation plan for Codex, Claude, and Cursor
- Define canonical mode, plan, and structured user-input models plus capability-driven UI behavior
- Add concrete orchestration, adapter, frontend, and test work items for rollout
2026-03-05 18:13:20 -08:00
Julius Marminge b5d5b3905d Add runtime mode tracking across provider orchestration pipeline
- extend provider and orchestration contracts for runtime mode-aware events
- persist runtime mode fields in projection thread session storage and migration 006
- update adapters, reactors, projections, websocket/web session logic, and tests
- add plan mode deep dive docs and probe artifacts for ACP behavior
2026-03-05 18:13:20 -08:00
Julius Marminge b39480a3fb Handle session.state.changed in provider runtime ingestion
- Map runtime session state transitions to orchestration session status
- Persist error reasons from `session.state.changed` error events
- Add coverage for waiting/error/stopped/ready transition handling
2026-03-05 18:13:20 -08:00
Julius Marminge 0ccc40a4b5 Support provider custom models and fix runtime event mapping
- add per-provider custom model settings/options in web settings and chat picker
- preserve Codex request type on `serverRequest/resolved` events
- validate empty Cursor prompts before turn start and keep tool-call item types consistent
- add tests for new adapter and model-settings behavior
- add PR event review checklist document
2026-03-05 18:13:20 -08:00
Julius Marminge d715c3a03e Inject native event loggers into provider adapters
- allow Claude/Cursor adapters to accept an injected native event logger
- make native event writes effectful/non-blocking so logging cannot break message handling
- update adapter tests to assert native observability events via in-memory loggers
- fix runtime session ID conversion when resolving canonical event thread IDs
2026-03-05 18:13:19 -08:00
Julius Marminge 7c5a543fff Normalize runtime events and tighten orchestration approval flow
- migrate fixtures/tests/adapters to canonical provider runtime event payloads
- route checkpoint capture off `turn.completed` only and drop legacy `checkpoint.captured` path
- stop faking approval resolution when provider reports stale/unknown pending requests
2026-03-05 18:13:19 -08:00
Julius Marminge 196f3312ba Handle stale approval responses and cover Cursor resume IDs
- Catch provider approval response failures and emit `provider.approval.respond.failed`
- Auto-resolve approvals when provider reports unknown pending request IDs
- Add tests for Cursor ACP resume via `resumeCursor.acpSessionId` and legacy `sessionId`
2026-03-05 18:13:19 -08:00
Julius Marminge 78e6125cfe Normalize approval request kinds and persist draft provider state
- map canonical approval request types to `requestKind` across ingestion and web pending approvals
- auto-approve Cursor permission requests when approval policy is `never`
- persist per-thread composer provider selection in draft store and use it in ChatView
- disable Cursor traits picker while model selection is locked
2026-03-05 18:13:19 -08:00
Julius Marminge d096cb85e1 Respect provider model-switch limits and canonical runtime events
- Add provider capability plumbing for `sessionModelSwitch` and use it in session/turn routing
- Keep Cursor sessions stable when in-session model switching is unsupported
- Ingest canonical runtime events (`content.delta`, `item.*`, `request.*`) with legacy-shape compatibility
2026-03-05 18:13:19 -08:00
Julius Marminge 43b64bf17d Fix effort and provider handling in thread turn start
- Only include `effort` in start command when a value is selected
- Persist effort selection via composer draft state and hide picker when unavailable
- Add optional `provider` to `ClientThreadTurnStartCommand`
- Simplify thread model fallback selection in `ChatView`
2026-03-05 18:13:19 -08:00
Julius Marminge 4f47f33ec5 Scope composer draft reasoning effort to Codex options
- Switch draft store types to `CodexReasoningEffort`
- Validate and default effort using Codex-specific option/default constants
2026-03-05 18:13:19 -08:00
Julius Marminge fd65a358e6 Unify provider runtime events and add Cursor adapter layer
- migrate Claude/Codex/registry adapters to canonical runtime event types and payload shapes
- add Cursor layer adapter plus tests and wire it through server layers
- update provider contracts/runtime schemas and related adapter tests
2026-03-05 18:13:19 -08:00
Julius Marminge e80564813e Scope reasoning effort defaults and options by provider
- 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
2026-03-05 18:13:19 -08:00
Julius Marminge 7c0ccb54ff Introduce v2 provider runtime event schema and validation tests
- 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
2026-03-05 18:13:19 -08:00
Julius Marminge cfae88fbc2 Document Cursor ACP mapping in canonical runtime event spec
- 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
2026-03-05 18:13:19 -08:00
Julius Marminge b3151013fc Revise Cursor provider plan for ACP JSON-RPC integration
- 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
2026-03-05 18:13:19 -08:00
Julius Marminge f3bbd398f7 Add Cursor ACP probe script and captured session logs
- 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/`
2026-03-05 18:13:19 -08:00
Julius Marminge 0f9f0f241c Add Cursor provider support across backend, contracts, and UI
- 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
2026-03-05 18:13:19 -08:00
Julius Marmingeandcodex 222294d541 Add Cursor CLI stream event schemas and decoding tests
- define `CursorAdapter` service contract and Cursor stream-json schema types
- add `CursorCliStreamEvent` decoding tests for system/thinking/tool/result/retry events
- add implementation plan for Cursor provider integration

Co-authored-by: codex <[email protected]>
2026-03-05 18:13:19 -08:00
Julius Marminge a5a5246426 Track runtime event sequence and order thread activities by sequence
- 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
2026-03-05 18:13:19 -08:00
Julius Marminge 13e7249b3b Align Claude permissions and provider-specific reasoning effort
- 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
2026-03-05 18:13:19 -08:00
Julius Marminge 9bb6ab317a Stabilize Claude turn event ordering and native event logging
- 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
2026-03-05 18:13:19 -08:00
Julius Marmingeandcodex a4cc4d50b5 Fix ProviderService sendTurn recovery expectation after rebase
Co-authored-by: codex <[email protected]>
2026-03-05 18:13:19 -08:00