Commit Graph
115 Commits
Author SHA1 Message Date
Cursor AgentandJulius Marminge 24dbfa58c9 Add optional shadow catchup and listMessages parity checks
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 12:03:22 +00:00
Cursor AgentandJulius Marminge 75cdd78edb Add websocket coverage for strict read-pilot error mode
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 11:47:34 +00:00
Cursor AgentandJulius Marminge c0c5c8f51a Add strict read-pilot mode without delegate fallback
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 11:40:06 +00:00
Cursor AgentandJulius Marminge 08d4dcbbb8 Add optional shadow bootstrap parity diagnostics
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 11:24:33 +00:00
Cursor AgentandJulius Marminge 6aa5a598b4 Expose sync engine mode in server config and web source selection
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 11:14:21 +00:00
Cursor AgentandJulius Marminge 8a6676cbfb Add optional listMessages parity diagnostics in read pilot
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 11:03:10 +00:00
Cursor AgentandJulius Marminge 09f93f37e9 Extract and test sync engine mode resolution
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:58:04 +00:00
Cursor AgentandJulius Marminge b38812716d Default sync engine mode to read-pilot with fallback
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:52:41 +00:00
Cursor AgentandJulius Marminge 6513750a9c Add websocket coverage for read-pilot fallback to legacy
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:44:43 +00:00
Cursor AgentandJulius Marminge 5001314519 Add websocket integration coverage for read-pilot ordering
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:40:06 +00:00
Cursor AgentandJulius Marminge 7a9b733368 Add optional catch-up parity diagnostics for read pilot
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:33:55 +00:00
Cursor AgentandJulius Marminge cbfe1e3a57 Add source-labelled read-pilot logging and recovery test
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:26:06 +00:00
Cursor AgentandJulius Marminge fc14fdb569 Expand shadow parity coverage in persistence and ws tests
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:19:38 +00:00
Cursor AgentandJulius Marminge 89e2c73f1f Add shadow engine parity integration coverage
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:05:46 +00:00
Cursor AgentandJulius Marminge 38ca95a787 Add bootstrap parity diagnostics for LiveStore read pilot
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:02:40 +00:00
Cursor AgentandJulius Marminge 40bb6cb7a7 Add LiveStore read-pilot sync engine with delegate fallback
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:54:30 +00:00
Cursor AgentandJulius Marminge dae7ab8359 Project mirrored state events into LiveStore parity snapshot
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:49:15 +00:00
Cursor AgentandJulius Marminge fa39092505 Cover message events in shadow sync engine parity test
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:43:38 +00:00
Cursor AgentandJulius Marminge ccacb4bcab Add wsServer coverage for injected state sync engine
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:42:34 +00:00
Cursor AgentandJulius Marminge 8d0af1f9de Add snapshot parity utility for LiveStore migration
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:32:02 +00:00
Cursor AgentandJulius Marminge 262f57d84a Introduce state sync engine seam and LiveStore shadow mirror
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:29:27 +00:00
Julius Marminge e81c2acb78 Harden state persistence and tighten WS thread update API
- Fix persistence edge cases around pagination offsets, assistant message ordering, and checkpoint merge semantics
- Make state DB and sqlite adapter failures safer with better cleanup and runtime errors
- Treat `threads.update` as unsupported, keep `threads.updateTerminalState` canonical, and avoid failing revert RPCs on persistence-write errors
- Add focused server/web/contracts tests for the new failure and compatibility paths
2026-02-20 00:43:30 -08:00
Julius Marminge fda3073e0c Remove legacy renderer state import path and client schema
- drop `stateImportLegacyRendererState` handling from server, WS API, and contracts
- remove legacy renderer import tests and old web persistence schema/tests
- rely on current shared state/bootstrap flow instead of one-time legacy import
2026-02-20 00:22:30 -08:00
Julius Marminge 27bd9192ad clean 2026-02-19 21:55:12 -08:00
Julius Marminge 25dbfa7bc7 debug 2026-02-19 21:54:23 -08:00
Julius Marminge 78b7070042 Improve persistence and runtime SQLite compatibility
- add a SQLite adapter that works in both Bun and Node/Electron, with tests
- persist and backfill `assistantMessageId` on turn summaries to keep thread diffs linked
- prevent web state regressions by preserving turn summaries and deduplicating terminal/settings sync updates
2026-02-19 20:49:27 -08:00
Julius Marminge 1332c488ad Add desktop DMG packaging and persisted app settings
- package desktop builds with branded icons, custom app identity, and `t3://app` production loading
- add app settings get/update RPC flow with persistence and tests for Codex binary/home paths
- wire web/desktop settings UX and menu action hooks to open Settings
2026-02-19 18:01:51 -08:00
Julius Marminge 384878a3f1 Move app state persistence to centralized SQLite service
- Add server-side `PersistenceService` backed by SQLite with migrations and tests
- Introduce shared state contracts/events and wire WebSocket bootstrap/catch-up flows
- Migrate project/thread/message persistence from renderer-local state to server-managed state
- Store turn diff summaries from checkpoint diffs for faster thread metadata rendering
2026-02-19 16:13:48 -08:00
Theo Browne 2c9121553e restore streaming notifications from codex app server 2026-02-19 04:07:33 -08:00
Theo Browne 48bf123d0c prod builds 2026-02-19 04:04:04 -08:00
Theo Browne f8883d0495 settings page 2026-02-19 02:42:24 -08:00
Julius Marminge 79382b272c Emit checkpoint captured events after turn checkpointing
- emit `checkpoint/captured` from `ProviderManager` after checkpoint init/capture
- add backend test coverage for the new checkpoint-captured notification flow
- refresh provider queries on `checkpoint/captured` and only re-derive diffs on `turn/completed`
2026-02-19 00:35:32 -08:00
Julius Marminge 58a8d653a8 Force-remove dirty git worktrees during orphan cleanup
- add optional `force` to remove-worktree contract and server git args
- pass `force: true` from sidebar orphaned worktree cleanup flow
- add integration test covering dirty worktree removal behavior
2026-02-19 00:14:39 -08:00
Julius Marminge 7de054fa49 Surface worktree removal failures after thread deletion
- wrap `git worktree remove` errors with command and cwd context
- add server test covering failed worktree removal messaging
- show an error toast and log details when orphaned worktree cleanup fails
2026-02-18 22:09:13 -08:00
Cursor Agent bb9371d3c9 Fix CWD override semantics and greedy regex in diff path parsing
- Restore null CWD in sessionOverrides for thread/start and thread/resume
  so the Codex app server can distinguish 'no override' from an explicit
  path (e.g., to reuse a resumed thread's original CWD).
- Use backreference in diff --git fallback regex to correctly parse paths
  containing ' b/' (e.g., binary diffs without +++ b/ lines).
- Add test exercising the git header fallback for binary diffs with ' b/'
  in the path.

Applied via @cursor push command
2026-02-18 21:59:17 -08:00
Julius Marminge b441875731 Fix latest PR review findings
- avoid git reset when repository has no HEAD\n- use React Query isLoading for checkpoint diff spinner\n- remove unreachable provider manager guard\n- add no-HEAD restore regression test\n\nCo-authored-by: codex <[email protected]>
2026-02-18 21:59:17 -08:00
Julius Marmingeandcodex 8e744269a2 Address latest PR review comments
Co-authored-by: codex <[email protected]>
2026-02-18 21:59:17 -08:00
Julius Marmingeandcodex c90e245038 Address PR review feedback for checkpoint and diff flows
Co-authored-by: codex <[email protected]>
2026-02-18 21:59:17 -08:00
Julius Marminge 3afbf93d5e Use React Query for checkpoint diff loading and caching
- add shared provider checkpoint diff query options and keys
- refactor `ChatView` and `DiffPanel` to fetch diffs via React Query
- persist selected-turn checkpoint diffs back into thread state for reuse
2026-02-18 21:59:17 -08:00
Julius Marminge cf8a2f03fc Add checkpoint diff API and hydrate turn diffs in UI
- add server support to diff filesystem checkpoints, including root/HEAD fallbacks and lazy checkpoint initialization
- wire new `providers.getCheckpointDiff` WebSocket route through provider manager and contracts
- update web app to load per-turn diffs from checkpoints and improve diff panel behavior on narrow screens
2026-02-18 21:59:17 -08:00
Julius Marminge d2e6cfe109 Add git-backed filesystem checkpoints for provider session rollback
- add `FilesystemCheckpointStore` to capture, restore, and prune per-turn git refs
- wire checkpoint init/capture into `ProviderManager` with per-session locking and error events
- require checkpoint presence before rollback and restore workspace state after revert
- add tests for checkpoint store behavior and provider rollback integration
2026-02-18 21:59:17 -08:00
Julius Marminge 351736baa1 Add provider checkpoints and thread rollback support
- add provider/WS contracts and server RPC handlers for listing/reverting checkpoints
- read and rollback Codex thread turns in the app server manager
- add ChatView checkpoint menu + store reducer support to revert local thread state
- expand backend, websocket, store, and contract tests for checkpoint flows
2026-02-18 21:59:17 -08:00
Cursor Agent b236dccca3 refactor: extract shared normalizeProjectScripts into @t3tools/contracts
Move the duplicated script normalization logic (dedup-by-id + single
runOnWorktreeCreate enforcement) from apps/web/src/store.ts and
apps/server/src/projectRegistry.ts into packages/contracts/src/project.ts
so both consumers share one canonical implementation.

Applied via @cursor push command
2026-02-18 00:59:06 -08:00
Julius Marminge 1a94fcbd29 Handle optional terminal dimensions and preserve active terminal size
- make `cols`/`rows` optional in terminal open contracts
- default new/restarted sessions to 120x30 when size hints are missing
- reuse existing terminal dimensions unless a new size is explicitly requested
- only send script terminal size hints when creating a new terminal
2026-02-18 00:59:06 -08:00
Julius Marminge 88f31d2f65 Pass runtime env through terminal open and disable zsh prompt spacer
- add optional `env` to terminal open contract and validate env keys/limits
- propagate runtime env from web terminal/script launches to server PTY spawn
- start `zsh` with `-o nopromptsp` to avoid trailing `%` markers and add coverage
2026-02-18 00:59:06 -08:00
Julius Marmingeandcodex e52db0bbc2 Fix keybindings parse error wrapping behavior
Co-authored-by: codex <[email protected]>
2026-02-18 00:59:06 -08:00
Julius Marmingeandcodex 4e791759cf Address second-pass PR feedback on parser hardening
Co-authored-by: codex <[email protected]>
2026-02-18 00:59:06 -08:00
Julius Marmingeandcodex 9799b42dcd Address PR review feedback for scripts/keybindings handling
Co-authored-by: codex <[email protected]>
2026-02-18 00:59:06 -08:00
Julius Marminge 648a6ac372 Support script editing and persist project keybindings
- add server `upsertKeybinding` flow to write `~/.t3/keybindings.json` and refresh cached config
- wire project script create/edit to save optional keybindings via the WS API
- improve script action UI with edit controls, icon picker, and preferred-script recall
- add coverage for keybinding upsert behavior in server and websocket tests
2026-02-18 00:59:06 -08:00
Julius Marminge 3537d47702 Add project script actions with run shortcuts and persistence
- add project-scoped script actions in the chat toolbar, including setup-on-worktree-create
- support dynamic `script.{id}.run` keybindings and command resolution
- persist and sync project scripts across web state, contracts, WebSocket API, and server registry
- add backend and frontend tests for script helpers, persistence, and registry behavior
2026-02-18 00:59:06 -08:00