Skip to content

Clamp spawn_tree.list limit to avoid unbounded payloads - #78394

Closed
aydnOktay wants to merge 2 commits into
NousResearch:mainfrom
aydnOktay:fix/spawn-tree-list-limit-clamp
Closed

Clamp spawn_tree.list limit to avoid unbounded payloads#78394
aydnOktay wants to merge 2 commits into
NousResearch:mainfrom
aydnOktay:fix/spawn-tree-list-limit-clamp

Conversation

@aydnOktay

@aydnOktay aydnOktay commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Clamp TUI gateway spawn_tree.list limit to 1–500 (default 50) so negative/huge values cannot flip entries[:limit] into nearly-full results or return oversized JSON.
  • Also harden Telegram _record_polling_progress for bare/__new__ test adapters missing _polling_conflict_recovery_generation (unblocks the known CI failure on main).

aydnOktay and others added 2 commits August 4, 2026 13:04
Negative or huge limit values on the TUI gateway spawn_tree.list RPC could flip Python entries[:limit] into nearly-full results or return oversized JSON. Clamp to 1-500 while preserving the default of 50.

Co-authored-by: Cursor <cursoragent@cursor.com>
…adapters

CI was failing test_initial_connect_succeeds_on_current_generation_progress when _bare_adapter() skips __init__. Use getattr and initialize the field in the test helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alt-glitch alt-glitch added type/bug Something isn't working comp/tui Terminal UI (ui-tui/ + tui_gateway/) comp/plugins Plugin system and bundled plugins platform/telegram Telegram bot adapter P2 Medium — degraded but workaround exists 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/plugins Plugin system and bundled plugins comp/tui Terminal UI (ui-tui/ + tui_gateway/) P2 Medium — degraded but workaround exists platform/telegram Telegram bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants