Skip to content

Add Cloud Agent dev environment config + fix web UI syntax errors - #34

Merged
cursor[bot] merged 3 commits into
mainfrom
prax/cloud-agent-env-setup-d142
Aug 27, 2026
Merged

Add Cloud Agent dev environment config + fix web UI syntax errors#34
cursor[bot] merged 3 commits into
mainfrom
prax/cloud-agent-env-setup-d142

Conversation

@praxstack

@praxstack praxstack commented Aug 27, 2026

Copy link
Copy Markdown
Owner

📋 Description

Sets up a working Cloud Agent development environment for this codebase and fixes two pre-existing frontend syntax errors that broke the web UI (required to run the app end-to-end).

  • Adds .cursor/environment.json (default base image with Node 22 + git):
    • install: npm ci, then bash scripts/link-agent-skills.sh
    • terminals: npm start (Express web server on port 3002)
    • ports: expose 3002
  • Adds scripts/link-agent-skills.sh: on boot, symlinks the repo-vendored skill packs under .claude/skills/ and .agents/skills/ into ~/.claude/skills and ~/.agents/skills so they're active globally on the VM (idempotent; skips gracefully when those dirs are absent).
  • Fixes public/index.html where two JavaScript SyntaxErrors halted script execution, leaving the UI stuck on "Loading...":
    • Duplicate const fragment declaration in the staged-file render path
    • Orphaned .replace() after a terminated statement in escapeHtml()

🔄 Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ♻️ Refactoring (no functional changes) — environment tooling

✅ Validation

Validated on the VM and independently on a fresh Cloud Agent booted from a prebuilt build (bld-20260827-3d52aae5):

Check Result
npm ci install Succeeds (idempotent; also runs cleanly in a fresh build)
npm run lint 0 errors (pre-existing warnings only)
npm test 55/55 passing
Web UI loads (http://localhost:3002) Loads correctly after the syntax fixes
Core flow (stage → diff → comment → export AI_REVIEW.md) Works end-to-end via API and UI
link-agent-skills.sh Skips when dirs absent; links correctly when present; idempotent
Fresh Cloud Agent from build Node 22, prebuilt deps, 55/55 tests, 0 lint errors, full HTTP flow passing

📝 Additional Notes

demo-change.js used during manual testing is intentionally not committed. The two public/index.html fixes are required to run the app in a browser at all. The skill directories referenced by the link step are added in the companion skills PR (#35).

Open in Web Open in Cursor 

cursoragent and others added 2 commits August 27, 2026 11:07
…escapeHtml replace

Two JavaScript syntax errors in public/index.html broke the entire web UI
(the page hung on 'Loading...'):
- Duplicate 'const fragment' declaration when rendering the staged file list
- An orphaned '.replace()' after a terminated statement in escapeHtml()

Both caused a SyntaxError that halted script execution before any data could
load. Removed the redundant lines so the frontend initializes correctly.

Co-authored-by: Prax Lannister <praxstack@users.noreply.github.com>
Adds .cursor/environment.json using the default base image (Node 22 + git):
- install: npm ci
- terminals: npm start (Express web server on port 3002)
- ports: expose 3002

Co-authored-by: Prax Lannister <praxstack@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 79b765f7-8e13-48aa-b50f-4bfbfb05c3a3


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@praxstack
praxstack marked this pull request as ready for review August 27, 2026 11:44
Adds scripts/link-agent-skills.sh and calls it from the install step so the
repo-vendored skill packs under .claude/skills/ and .agents/skills/ are
symlinked into ~/.claude/skills and ~/.agents/skills, making them active
globally on the VM (not only from this repo's working tree). The script is
idempotent and skips gracefully when the skill directories are absent.

Co-authored-by: Prax Lannister <praxstack@users.noreply.github.com>
@cursor
cursor Bot merged commit 9d4c59d into main Aug 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants