Skip to content

test: cover Jules activity normalization - #79

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/missing-test-coverage-0b93
Draft

test: cover Jules activity normalization#79
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/missing-test-coverage-0b93

Conversation

@cursor

@cursor cursor Bot commented Jul 29, 2026

Copy link
Copy Markdown

Summary

  • Add deterministic coverage for realJulesPort.listActivities request wiring.
  • Verify Jules payload variants (role/author, content/message, and timestamp/createTime) normalize into stable agent/human messages.

Risky behavior now covered

Jules activity responses feed the session conversation drawer. Field-name or role-normalization regressions could silently hide content or misattribute user messages as agent output.

Test files added

  • test/jules-port-activities.test.ts

Regression value

The fixture exercises every existing normalization fallback in one API-boundary test without a live Jules dependency. A mutation that removed the author fallback changed a USER activity to agent and failed the test, demonstrating that it detects a materially user-visible regression.

Validation

  • npm test -- test/jules-port-activities.test.ts (1/1 passed)
  • npm test (36/36 passed)
  • npm run build
  • npx prettier --check test/jules-port-activities.test.ts
Open in Web View Automation 

cursoragent and others added 2 commits July 29, 2026 10:06
Co-authored-by: Parvez Kose <koseparvez@gmail.com>
Co-authored-by: Parvez Kose <koseparvez@gmail.com>
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
polyagent Ready Ready Preview, Comment Jul 29, 2026 10:11am

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.

1 participant