docs(agents): Cursor Cloud dev environment setup notes - #55
Draft
time-attack wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Sina Matian <time-attack@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Sets up and documents the Cloud Agent development environment for this repo (Bun + Playwright/Chromium runtime for
browse/make-pdf). No product code changes — only an appended## Cursor Cloud specific instructionssection inAGENTS.mdcapturing durable, non-obvious setup caveats for future agents.What changed
AGENTS.md: added a## Cursor Cloud specific instructionssection documenting the Bun toolchain location/PATH, Playwright Chromium cache, the authoritative build/test/lint commands, how to run thebrowse/make-pdfCLI daemons, and — most importantly — a non-obvious gotcha.Environment setup performed (not committed; captured in the VM)
~/.bun/bin, symlinked to/usr/local/bin/bun).bun install --frozen-lockfile(256 packages) — also registered as the startup update script.~/.cache/ms-playwright;poppler-utils/fonts-liberationalready present.bun run build— compiledbrowse/dist/browse,make-pdf/dist/pdf, node server bundle,bin/gstack-global-discover(all gitignored).Live evidence
bun run slop→ report generated (277 findings, informational scan; not a gate).bun run testfree suite runs. Diagnosed a flaky-failure root cause: Cursor's injected global~/.gitconfig(commit.gpgsign=trueviacursor-git-ssh-keygen+core.fsmonitor) makesgit commitin tests' temp repos intermittently stall past their shortspawnSynctimeouts. With the global/system git config neutralized, the affected file is green:GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null bun test test/diff-scope.test.ts→ 16 pass / 0 fail in 394ms (vs 6 failures/60s otherwise).test/gstack-memory-ingest.test.ts"memory-ingest renders all Codex rollout sessions as empty bodies (parser expects payload.message; current format is payload.type=='message' + payload.content) garrytan/gstack#2105" is a separate pre-existing flake (passes on re-run).browseheadless-Chromium daemon navigated tohttps://example.com(HTTP 200), extracted page text, and captured a 1280×720 screenshot.make-pdfrendered markdown → PDF via the same daemon.browse Chromium screenshot of example.com
Scope
AGENTS.mdonly (docs). Verified live: build, lint, targeted tests, and bothbrowse/make-pdfhello-world runs.test:evals,test:e2e) — they requireANTHROPIC_API_KEY/provider auth and are out of scope for env setup.To show artifacts inline, enable in settings.
Summary by cubic
Documents the Cursor Cloud dev environment in
AGENTS.mdso contributors can build, test, and runbrowse/make-pdfreliably and avoid flaky git-related tests. No product code changes.bun(installed at~/.bun/bin/bun, symlinked intoPATH) andplaywright@1.62.1Chromium cache at~/.cache/ms-playwrightwith the reinstall command.bun run build,bun run test,bun run slop; removes stale script references and points topackage.jsonas source of truth.browseauto-starts headless Chromium;make-pdfshells out to it) and output path restrictions (/tmpor/workspace).fsmonitor, which stallsgit commitin tests; run withGIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null bun run testfor clean runs.Written for commit 848feec. Summary will update on new commits.