Commit Graph
252 Commits
Author SHA1 Message Date
Cursor AgentandJulius Marminge 4339050a81 Require explicit opt-in for terminal perf scripting
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:55 -08:00
Cursor AgentandJulius Marminge 0e26c9477c Preserve terminal perf interactions by default outside CI
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:55 -08:00
Cursor AgentandJulius Marminge eb20d1f5fe Disable terminal perf scripting in CI and restore strict dispatch ceiling
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:55 -08:00
Cursor AgentandJulius Marminge cdf7b01f01 Simplify perf seed reload helper return contract
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge ae6712b904 Keep perf seed retry logic while trimming verbose diagnostics
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge c2966e6b97 Scope perf bootstrap skip to explicit automation sessions
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge e69fe94cbd Remove temporary perf state debug instrumentation
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge 91fb3a5a11 Trim perf interaction intensity to reduce CI dispatch spikes
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge adba5d834e Reduce desktop perf scripted workload for CI stability
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge 1314980881 Continue perf terminal automation when split fails
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge ae1626b772 Retry perf seed when post-reload threads are missing
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge 2c0a3bdd3a Skip desktop project bootstrap during perf state replay
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge cbbfd0cf3b Instrument persisted state hydration for perf CI debugging
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge ae27c200f1 Seed renderer state atomically before reload
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge 0014818f63 Add detailed diagnostics for missing perf interaction UI
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge 7f6786fd6a Retry desktop project bootstrap when list is transiently empty
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge a1dfc846eb Make perf scripted interactions best-effort in CI
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge 5c68c77cf4 Harden perf automation against missing sidebar selectors
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge ca93003572 Accept prebuilt desktop bundles in dev startup
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Cursor AgentandJulius Marminge ff45694a1d Fix desktop CI bundle readiness checks
Co-authored-by: Julius Marminge <[email protected]>
2026-02-17 19:49:54 -08:00
Julius Marminge 1a39d75201 whoops 2026-02-17 19:49:54 -08:00
Julius Marminge 1a98fc67dc maybe? 2026-02-17 19:49:54 -08:00
Cursor Agent e666957884 fix: update CI preload artifact name to .cjs and add freshness grace period for dev startup
- Update CI verification step to check preload.cjs instead of preload.js,
  matching the tsdown CJS output format.
- Add 10s grace period to bundle freshness check in dev-electron.mjs to
  avoid race condition when parallel processes write bundles before the
  script records its start time.
2026-02-17 19:49:54 -08:00
Julius Marminge 47d5dc205d lint fix 2026-02-17 19:49:54 -08:00
Julius Marminge 2dc8fcdd30 maybe fix errors? 2026-02-17 19:49:54 -08:00
Julius Marmingeandcodex 1d76eb5107 Avoid cleaning desktop bundle in watch mode for perf CI
Co-authored-by: codex <[email protected]>
2026-02-17 19:49:54 -08:00
Julius Marmingeandcodex c48a7b9f7e Fix dev-electron bundle readiness race in CI
Co-authored-by: codex <[email protected]>
2026-02-17 19:49:54 -08:00
Julius Marminge 6721804b64 Enable Linux Electron sandbox override for desktop perf runs
- Set `ELECTRON_DISABLE_SANDBOX=1` in CI desktop perf trace jobs
- Auto-enable the same override in Linux `dev-electron` runs when unset
- Add sandbox-failure log hint in perf trace diagnostics
- Include `ELECTRON_DISABLE_SANDBOX` in Turbo passthrough env
2026-02-17 19:49:54 -08:00
Julius Marminge 0bca5a4215 Replace wait-on with native bundle readiness polling
- remove `wait-on` usage in `dev-electron.mjs`
- add `fs.existsSync` polling for desktop/server bundle files with timeout error details
- keep startup flow the same while reducing external dependency
2026-02-17 19:49:54 -08:00
Julius Marminge a293a010cd Harden Electron startup waits in dev and CI
- add configurable `T3CODE_ELECTRON_STARTUP_TIMEOUT_MS` to desktop startup and CI perf jobs
- replace simple TCP wait with explicit renderer host probes and clearer timeout errors
- include Electron startup timeout env in Turborepo global env passthrough
2026-02-17 19:49:54 -08:00
Julius Marminge 220497ac58 Expand desktop perf trace with terminal and render delta metrics
- Add terminal shortcut/split/command interactions to desktop perf automation
- Benchmark all seeded threads from file seeds and include short title previews
- Report first vs follow-up thread render timings with min/max range and deltas
2026-02-17 19:49:54 -08:00
Julius Marminge 419ecc01e5 Add desktop perf seed data and update perf trace workflow
- add `apps/desktop/scripts/perf-seed.json` for seeded desktop perf automation runs
- update desktop/web perf automation and trace scripts to use the new seeded flow
- refresh workspace task/dependency config (`turbo.json`, `apps/web/package.json`, `bun.lock`) to support the perf tooling changes
2026-02-17 19:49:54 -08:00
Julius Marminge 41caab9cc0 Track large-thread render timings in desktop perf trace
- Seed each perf project with a large synthetic thread for stress coverage
- Measure thread-switch render latency/message counts via ChatView data attributes
- Include a Large Thread Render table in `desktop-perf-trace` markdown output
2026-02-17 19:49:15 -08:00
Julius Marminge 25cc139eea Handle fork PR desktop perf runs and harden trace shutdown
- Run desktop perf tests on forked pull requests without posting PR summaries
- Restrict PR summary posting to same-repo pull requests
- Add timeout-wrapped trace stop logic and guarded cleanup to avoid hangs
2026-02-17 19:49:15 -08:00
Julius Marminge 8d90f14290 Extract desktop perf automation into dedicated module
- Move seeding, scripted UI interactions, and trace recording into `desktopPerfAutomation.ts`
- Keep `main.ts` lightweight with lazy module loading and explicit load-failure reporting
2026-02-17 19:49:15 -08:00
Julius Marminge a1177c736c Add desktop perf trace automation and CI reporting
- add automated Electron renderer perf tracing with seeded state and scripted UI interactions
- add `test:desktop-perf` and `test:desktop-perf:post` scripts to generate, validate, and summarize traces
- run desktop perf trace in CI and post/update PR perf summaries on pull requests
2026-02-17 19:49:15 -08:00
Julius Marminge 9e877f592b rm unused 2026-02-17 19:47:09 -08:00
Julius Marminge f719aea047 Use Command highlighting state for composer menu navigation
- Switch composer menu arrow-key navigation to `Command`'s internal highlight handling
- Track highlighted item by id instead of manual index/keyboard state
- Remove custom hover/highlight plumbing and hidden-scroll sync logic
2026-02-17 19:47:09 -08:00
Julius Marminge f6136bd4c2 rm dupe 2026-02-17 19:47:09 -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 ee2f6bd742 rev 2026-02-17 19:47:09 -08:00
Julius Marminge e1ba603605 fix cond 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 1b409c3946 Refactor web query hooks and debounce composer path search
- add `@tanstack/react-pacer` and switch composer path debounce to `useDebouncedValue`
- extract reusable `projectSearchEntriesQueryOptions` for workspace entry lookup
- add `serverKeybindingsQueryOptions` and update consumers in chat/sidebar
- keep branch toolbar mutation error handling at call sites
2026-02-17 19:47:09 -08:00
Julius Marminge 60ed67e5e1 Use bot icon for slash commands and normalize YAML file icons
- Replace slash-command menu glyph in ChatView with `BotIcon`
- Map `yml`/`yaml` to base YAML language id to avoid overly specific icons
- Add test coverage for GitHub workflow YAML icon selection
2026-02-17 19:47:09 -08:00
Julius Marminge bd6a5c85e6 Refactor composer menu and debounce path entry search
- Extract composer menu into memoized components for cleaner ChatView rendering
- Debounce path trigger queries and keep previous results while fetching
- Precompute searchable model fields to reduce repeated lowercase work
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