Commit Graph
107 Commits
Author SHA1 Message Date
Cursor AgentandJulius Marminge 2cf729e36c Add Effect persistence runtime modules and wire service bootstrap
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:11:39 +00:00
Cursor AgentandJulius Marminge 40d49f1035 Extract persistence domain helpers and add turn summary tests
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:09:22 +00:00
Cursor AgentandJulius Marminge 1db852a51a Remove legacy StateDb wrapper and obsolete tests
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:04:40 +00:00
Cursor AgentandJulius Marminge aa2d6e7eaa Initialize persistence service directly from Effect SQLite adapter
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:03:22 +00:00
Cursor AgentandJulius Marminge 9112818ff8 Move remaining document queries behind Effect repositories
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 10:02:01 +00:00
Cursor AgentandJulius Marminge 85af69cda6 Route thread message and summary queries through Effect repo
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:58:41 +00:00
Cursor AgentandJulius Marminge bce0df0bb3 Move provider event SQL access into Effect repository
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:52:58 +00:00
Cursor AgentandJulius Marminge d6e0cd8e0d Extract document persistence queries into Effect repository
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:49:53 +00:00
Cursor AgentandJulius Marminge 5d75a58a25 Extract initial schema migration into persistence module
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:47:09 +00:00
Cursor AgentandJulius Marminge 56066ce276 Extract metadata persistence to Effect SQL repository
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:45:01 +00:00
Cursor AgentandJulius Marminge a976a82311 Use Effect SQL repository for state event persistence
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:38:15 +00:00
Cursor AgentandJulius Marminge 13dea398b0 Run migrations and ingest persistence via Effect runtime
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:34:16 +00:00
Cursor AgentandJulius Marminge 550069f1d1 Adopt Effect SQL-backed SQLite adapter
Co-authored-by: Julius Marminge <[email protected]>
2026-02-20 09:14:42 +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
Julius Marmingeandcodex 385d77d0c2 Fix workspace entry ignore list regression
Co-authored-by: codex <[email protected]>
2026-02-17 19:47:09 -08:00
Julius Marminge 5d61b8b14f Add tests for chunking git check-ignore in workspace entry search
- Introduce a new test file to validate chunking behavior of git check-ignore to prevent oversized input strings.
- Adjust workspaceEntries.ts to implement chunking logic for git check-ignore, improving performance with large ignored path lists.
- Set a maximum byte limit for stdin in git check-ignore to enhance stability and prevent errors during processing.
2026-02-17 19:47:09 -08:00
Julius Marminge 2743e45dbe Deduplicate workspace index builds and stabilize prompt replacement
- Reuse in-flight workspace index builds per cwd and cap `readdir` scan concurrency at 32
- Add server tests for build deduplication and directory read concurrency limits
- Track composer text in a ref so prompt replacements use current text after send/reset
2026-02-17 19:47:09 -08:00
Julius Marminge 9cce509013 Add VS Code file icons and tighten workspace entry filtering
- render theme-aware VS Code icons for path suggestions in chat composer
- exclude `.convex` and gitignored paths more reliably in workspace indexing
- add tests plus a sync script and icon manifest/association data
2026-02-17 19:47:09 -08:00
Julius Marminge 9f48564d84 Respect .gitignore in workspace search and inline @path mentions
- Build workspace index from `git ls-files` when in a Git repo, excluding ignored paths
- Skip configured ignored top-level directories during filesystem fallback indexing
- Update chat composer to insert `@path` directly in prompt and remove separate tagged-path chips
- Keep command menu navigation visible by scrolling the active/next item into view
2026-02-17 19:47:09 -08:00
Julius Marminge e8556bcff9 Add composer path tagging with workspace entry search
- add `projects.searchEntries` API, contracts, and server-side indexed workspace search
- add composer trigger logic for `@` path suggestions and `/model` command completion
- include tagged paths in sent prompt/user-visible text and cover behavior with server/web tests
2026-02-17 19:47:09 -08:00
Julius Marminge a1532d5b2d Refresh git upstream before status and tune Git query polling
- Fetch tracked upstream (throttled + timeout) before `statusDetails` so ahead/behind reflects remote updates
- Add integration coverage for behind-count updates after remote commits
- Configure React Query stale/refetch intervals for git status and branch lists
2026-02-17 17:46:50 -08:00
Julius Marminge 228862ac56 doc 2026-02-15 23:08:37 -08:00