Repository navigation
Remove per-turn and hourly limits on Planner create_document - #998
Merged
Merged
Conversation
A Planner turn creating documents for a broad request (such as splitting work across many entry points) no longer caps creations at 10 per turn or 30 per hour per person. Removes MAX_DOCUMENTS_PER_TURN, MAX_DOCUMENTS_PER_HOUR, NewDocumentLimits, TurnDocuments, and the turn-limit / hour-limit refusals from apps/server/src/agent/new-documents.ts, along with their wiring in chat/service.ts, main.ts, and tools.ts. Idempotency replay, creator authorization, repository write checks, draft validation, and model-choice inheritance are unchanged. Assistant-model: Gemini 4 Neon Co-authored-by: Alex Lavaee <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the per-turn (
MAX_DOCUMENTS_PER_TURN = 10) and per-person hourly (MAX_DOCUMENTS_PER_HOUR = 30) limits on the Planner'screate_documenthost tool so a turn splitting work across many pieces can open all of them in one batch without hittingturn-limitorhour-limit.Changes
apps/server/src/agent/new-documents.ts: removedMAX_DOCUMENTS_PER_TURN,MAX_DOCUMENTS_PER_HOUR,TurnDocuments,NewDocumentReservation,NewDocumentLimits, andturn-limit/hour-limitrefusals. Idempotent retries, creator authentication, repository write checks, visual admission, and model-choice inheritance remain unchanged.apps/server/src/agent/tools.ts,apps/server/src/chat/service.ts,apps/server/src/main.ts: removedTurnDocumentsandNewDocumentLimitswiring and updated thecreate_documenttool description.apps/server/src/agent/new-documents.test.ts,apps/server/src/chat/new-documents.test.ts,apps/server/src/harness/remote/planner-dispatch.test.ts: replaced cap tests with tests verifying a single turn can create >30 documents and burst >10 documents in parallel with no cap.AGENTS.md,docs/hosted-agent.md,docs/nvx-sandbox.md: updatedcreate_documentdocs.Verification
bun run ci— passed (0 errors)bun run types— passed across all workspace packages ande2ebun test apps/server/src/agent apps/server/src/chat apps/server/src/harness/remote/planner-dispatch.test.ts— passed