René's URL Explorer Experiment


Title: bug: get_run_details has returned a non-progressing zero-limit cursor since PR #3224 · Issue #4733 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: bug: get_run_details has returned a non-progressing zero-limit cursor since PR #3224 · Issue #4733 · triggerdotdev/trigger.dev

X Title: bug: get_run_details has returned a non-progressing zero-limit cursor since PR #3224 · Issue #4733 · triggerdotdev/trigger.dev

Description: Provide environment information System: OS: macOS 26.5.2 CPU: (10) arm64 Apple M4 Memory: 1.82 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.19.0 npm: 11.7.0 pnpm: 11.19.0 bun: 1.3.14 Trigger.dev: CLI and SDK: 4.5.11 MCP transpo...

Open Graph Description: Provide environment information System: OS: macOS 26.5.2 CPU: (10) arm64 Apple M4 Memory: 1.82 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.19.0 npm: 11.7.0 pnpm: 11.19.0 bun: 1.3.14 Trig...

X Description: Provide environment information System: OS: macOS 26.5.2 CPU: (10) arm64 Apple M4 Memory: 1.82 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.19.0 npm: 11.7.0 pnpm: 11.19.0 bun: 1.3.14 Trig...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/4733

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: get_run_details has returned a non-progressing zero-limit cursor since PR #3224","articleBody":"## Provide environment information\n\n```text\nSystem:\n  OS: macOS 26.5.2\n  CPU: (10) arm64 Apple M4\n  Memory: 1.82 GB / 16.00 GB\n  Shell: 5.9 - /bin/zsh\nBinaries:\n  Node: 24.19.0\n  npm: 11.7.0\n  pnpm: 11.19.0\n  bun: 1.3.14\nTrigger.dev:\n  CLI and SDK: 4.5.11\n  MCP transport: stdio\n  Flags: --dev-only --readonly\n  Environment: dev\n```\n\n## Describe the bug\n\nThe MCP `get_run_details` tool accepts `maxTraceLines: 0` and reports a\nsuccessful empty page with `nextCursor: \"0\"`. Following that cursor requests\nthe same page again, so pagination cannot advance.\n\nI found this while testing Trigger.dev's MCP surface with an internal agent\ncompatibility system at Bottomless. The reproduction is model-free and uses a\ndedicated benchmark dev project.\n\nExpected behavior: reject a page size below one, or return a cursor that\nadvances.\n\nActual behavior:\n\n```text\nRun Trace (lines 1-0 of 43)\nMore trace available.\nnextCursor: \"0\"\n```\n\n## To reproduce\n\n1. Start the official Trigger.dev MCP for a project that has a completed dev\n   run.\n2. Call `get_run_details` for that run with `maxTraceLines: 0`.\n3. Observe that the call succeeds, reports `lines 1-0`, and returns cursor\n   `\"0\"` while saying more trace is available.\n4. Call the tool again with cursor `\"0\"`; it returns the same page.\n\nReduced arguments:\n\n```json\n{\n  \"projectRef\": \"\u003cproject-ref>\",\n  \"environment\": \"dev\",\n  \"runId\": \"\u003ccompleted-run-id>\",\n  \"maxTraceLines\": 0\n}\n```\n\nA control call with `maxTraceLines: 1` returns `lines 1-1` and cursor `\"1\"`.\n\n## Additional information\n\nI traced the behavior through Main history. The non-progressing cursor path was\nintroduced by [PR #3224](https://github.com/triggerdotdev/trigger.dev/pull/3224),\n`feat(cli): Expand and improve the MCP server and dev CLI command`, merged on\nMarch 17, 2026 at commit\n[`dbbe9f77f953ad7a8306e48d7bd1107e3f8d3ba2`](https://github.com/triggerdotdev/trigger.dev/commit/dbbe9f77f953ad7a8306e48d7bd1107e3f8d3ba2).\n\nBefore that PR, `maxTraceLines` existed but `get_run_details` did not return a\ncursor. PR #3224 added cursor pagination while leaving the zero value valid.\nIts new `readLinesPage` function computed `nextCursor` as `offset + limit`, so\na zero limit returned the same cursor indefinitely.\n\nThe schema still accepted every integer when I rechecked Main on August 20,\n2026 at `447471843cbe7759f64beb616d5db5f05696ea13`, because `maxTraceLines` has\nno minimum:\n\nhttps://github.com/triggerdotdev/trigger.dev/blob/447471843cbe7759f64beb616d5db5f05696ea13/packages/cli-v3/src/mcp/schemas.ts#L146-L160\n\nThe same cursor calculation also remains on current Main:\n\nhttps://github.com/triggerdotdev/trigger.dev/blob/447471843cbe7759f64beb616d5db5f05696ea13/packages/cli-v3/src/mcp/tools/runs.ts#L35-L52\n\nSuggested change: require a positive integer in `GetRunDetailsInput`, add a\ndefensive positive-limit check in `readLinesPage`, and cover zero/negative\nlimits plus a one-line positive case in tests.\n\nThe live check had zero invalid cases, unchanged fixture state, and verified\ncleanup. Searches of existing issues and PRs found no matching report. This is\nan MCP response-contract issue, not a security report.\n\nWe are testing a system at Bottomless that runs repeatable MCP contract and\nworkflow checks, verifies the observed behavior directly, and can replay the\nsame checks when an MCP changes. We are trying to learn whether MCP teams would\nwant checks like this on future pull requests or releases. Would that be useful\nto your team?\n\nIf useful, I can look into a focused regression test and fix, then rerun the\nsame check.\n","author":{"url":"https://github.com/lokicik","@type":"Person","name":"lokicik"},"datePublished":"2026-08-19T22:03:35Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/4733"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:41aad52a-fade-1cbe-ac0c-0bffc0538faa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB7F4:3E915:2F73707:43356CD:6AFAE231
html-safe-noncebabd610010e6a283191ea813b4008d7037625e98bd4249d4a2db90b4509a328b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0Y0OjNFOTE1OjJGNzM3MDc6NDMzNTZDRDo2QUZBRTIzMSIsInZpc2l0b3JfaWQiOiIzMzA4Nzg1NjgzNTY4MTkwMDAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf63f4112bdf7db7c7a40383fca79bd1a91fbb7da5a860f42fc3b1dbcaa9deb1f
hovercard-subject-tagissue:5197543624
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/4733/issue_layout
twitter:imagehttps://opengraph.githubassets.com/31c6a9e7513f3c78149000d0ecf332f89f2b854c7698706a88f9d42d9389d520/triggerdotdev/trigger.dev/issues/4733
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/31c6a9e7513f3c78149000d0ecf332f89f2b854c7698706a88f9d42d9389d520/triggerdotdev/trigger.dev/issues/4733
og:image:altProvide environment information System: OS: macOS 26.5.2 CPU: (10) arm64 Apple M4 Memory: 1.82 GB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.19.0 npm: 11.7.0 pnpm: 11.19.0 bun: 1.3.14 Trig...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelokicik
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/4733#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4733
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4733
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4733
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4733
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4733
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4733
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4733
bug: get_run_details has returned a non-progressing zero-limit cursor since PR #3224https://github.com/triggerdotdev/trigger.dev/issues/4733#top
https://github.com/lokicik
lokicikhttps://github.com/lokicik
on Aug 19, 2026https://github.com/triggerdotdev/trigger.dev/issues/4733#issue-5197543624
PR #3224https://github.com/triggerdotdev/trigger.dev/pull/3224
dbbe9f77f953ad7a8306e48d7bd1107e3f8d3ba2https://github.com/triggerdotdev/trigger.dev/commit/dbbe9f77f953ad7a8306e48d7bd1107e3f8d3ba2
#3224https://github.com/triggerdotdev/trigger.dev/pull/3224
trigger.dev/packages/cli-v3/src/mcp/schemas.tshttps://github.com/triggerdotdev/trigger.dev/blob/447471843cbe7759f64beb616d5db5f05696ea13/packages/cli-v3/src/mcp/schemas.ts#L146-L160
4474718https://github.com/triggerdotdev/trigger.dev/commit/447471843cbe7759f64beb616d5db5f05696ea13
trigger.dev/packages/cli-v3/src/mcp/tools/runs.tshttps://github.com/triggerdotdev/trigger.dev/blob/447471843cbe7759f64beb616d5db5f05696ea13/packages/cli-v3/src/mcp/tools/runs.ts#L35-L52
4474718https://github.com/triggerdotdev/trigger.dev/commit/447471843cbe7759f64beb616d5db5f05696ea13
https://github.com/AbhayPratap01
AbhayPratap01https://github.com/AbhayPratap01
on Aug 25, 2026https://github.com/triggerdotdev/trigger.dev/issues/4733#issuecomment-5410171598
#4733https://github.com/triggerdotdev/trigger.dev/issues/4733
https://github.com/Srinivasan8888
Srinivasan8888https://github.com/Srinivasan8888
on Aug 31, 2026https://github.com/triggerdotdev/trigger.dev/issues/4733#issuecomment-5474450892
#4845https://github.com/triggerdotdev/trigger.dev/issues/4845
https://github.com/Srinivasan8888
Srinivasan8888https://github.com/Srinivasan8888
on Aug 31, 2026https://github.com/triggerdotdev/trigger.dev/issues/4733#issuecomment-5475235723
@AbhayPratap01https://github.com/AbhayPratap01
@AbhayPratap01https://github.com/AbhayPratap01
https://github.com/AbhayPratap01
AbhayPratap01https://github.com/AbhayPratap01
on Sep 5, 2026https://github.com/triggerdotdev/trigger.dev/issues/4733#issuecomment-5553498079
@Srinivasan8888https://github.com/Srinivasan8888
@Srinivasan8888https://github.com/Srinivasan8888
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4733
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4733
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.