Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ The most common defect is a change that works on the path you tested and is miss
- `vp run typecheck` also runs Effect's diagnostics, with the rule levels in `tsconfig.base.json`. Fix what they flag. A finding that is truly intended gets `// @effect-diagnostics-next-line <rule>:off` on the line above with a short reason; never lower a rule's level to get green.
- Run the tests covering the code you changed: `vp run --cache '@threadlines/server#test' <filename substring>` (same pattern for the other packages; the filter matches file names, not repo-relative paths). Reserve `vp run test` (full Vitest suite) for broad or cross-package changes.
- Web UI changes also need the browser suite: `vp run --cache '@threadlines/web#test:browser'`. It is not part of `vp run test`, and CI runs it — green unit tests alone do not mean a green branch.
- A new or changed UI component also needs a polish check before it is done. Screenshot it with the app's real fonts loaded, zoom in, and check centering, alignment, spacing and truncation, in light and dark when colors changed. Browser tests don't load the bundled fonts (`main.tsx` does), so a test that takes the shot imports `@fontsource-variable/schibsted-grotesk/index.css` and `@fontsource-variable/cascadia-mono/index.css` and awaits `document.fonts.ready` first. Passing tests and a glance at a full-size shot don't count.
- Don't wait for another session's typecheck or test run to finish; running alongside it is fine. If a browser spec times out while other suites are running, re-run that file alone (`vp run '@threadlines/web#test:browser' <filename substring>`) before treating it as a real failure. On a low-memory machine, `THREADLINES_TEST_WORKERS` lowers how many browser tabs the suite opens.
- When you try a real nightly or release build with a fresh data folder, put that folder inside the system temp folder or set `THREADLINES_TELEMETRY_ENABLED=false`. Otherwise every run counts as a new user in PostHog (`docs/telemetry.md`).
- A run whose data folder is inside a temp folder (`/tmp` or the system temp folder) also keeps Claude in a folder of its own there, signed out, so it cannot read or renew the real Claude sign-in. Set `THREADLINES_SHARE_CLAUDE_SIGN_IN=true` only when a run needs the real sign-in on purpose. The same care applies to `claude` commands you run yourself: point `CLAUDE_CONFIG_DIR` at a temp folder unless the real sign-in is the thing under test, and never put a kill timeout on a `claude` run that uses it. A Claude process killed while it renews the sign-in signs Will out (`docs/providers/claude.md`).
Expand Down
Loading