Skip to content

Clamp process registry read_log pagination - #78341

Closed
aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/process-registry-log-pagination-clamp
Closed

Clamp process registry read_log pagination#78341
aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/process-registry-log-pagination-clamp

Conversation

@aydnOktay

Copy link
Copy Markdown
Contributor

Process registry log reads accepted unbounded and negative offset/limit values, which could return nearly the entire output buffer through Python negative-slice semantics or dump oversized results into tool responses. This change clamps offset to a non-negative integer and limit to a safe range of 1–5000 while preserving the existing default of 200.

Negative or huge offset/limit values on process log reads could return nearly the entire buffer via Python slice semantics or dump oversized tool results. Clamp offset to >=0 and limit to 1-5000 while preserving the default of 200.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alt-glitch alt-glitch added type/bug Something isn't working comp/tools Tool registry, model_tools, toolsets P3 Low — cosmetic, nice to have labels Aug 4, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

@aydnOktay aydnOktay closed this Aug 19, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants