GeezerVison is showing github.com — fix(server): t3_project_create accepts empty lists with a title by iamshadmantaqi · Pull Request #44463 · pingdotgg/t3code
Conversation
Problem
t3_project_create with a title and an empty list returns invalid_request instead of creating the project. The empty list sets nothing, so creation drops nothing.
Steps (Linux, no sign-in):
- Run
t3 serve on a fresh home.
- Call
t3_project_create over MCP with {"title": "demo", "scripts": []} (or "trackedFolders": []).
- The call returns
isError: true, invalid_request ("A project started from its title takes only a title ..."), and no project is created.
Cause
The title-only check in apps/server/src/mcp/toolkits/project/handlers.ts refuses scripts and trackedFolders whenever they are present, including as []. It exists to reject settings that creation would silently drop (#42108), and an empty list drops nothing. #44277 fixed the same check for defaultModelSelection: null, and #44250 fixed states: [] in list_thread_pull_requests, both for clients that send every optional field with an empty value.
Change
The title-only check refuses scripts and trackedFolders only when they hold something. A non-empty list is still refused. createWorkspaceRootIfMissing is unchanged: refusing false is fine, since a project made from a title always creates its folder. Two lines in handlers.ts.
Scope
Small fix of an obvious bug, steps reproduce it, so it needs no issue.
Verification
creating a project through MCP refuses a model default instead of dropping it in apps/server/src/mcp/toolkits/project/handlers.test.ts now also creates a project from a title with scripts: [] and with trackedFolders: [].
Test commit alone, on main b9c1337:
FAIL src/mcp/toolkits/project/handlers.test.ts > creating a project through MCP refuses a model default instead of dropping it
AssertionError: expected OrchestratorMcpFailure: A project started… { …(2) } to match object { id: 'project:client-target' }
- {
- "id": "project:client-target",
+ OrchestratorMcpFailure {
+ "message": "A project started from its title takes only a title; set scripts or defaultModelSelection afterwards with t3_project_update.",
+ "code": "invalid_request",
Tests 1 failed | 22 passed (23)
With the fix:
Test Files 1 passed (1)
Tests 23 passed (23)
vp run check:changed: format, lint, knip (2), graphql, typecheck (3 packages) and test (2 files, 25 tests) all pass.
Not verified: I did not call the tool over a running t3 serve; the handler test drives t3_project_create through the toolkit with the project and folder services mocked.
Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Project creation without a workspace root now accepts empty scripts and trackedFolders arrays. Named-project creation forwards provided scripts to project creation. Tests check empty-list requests and the script values passed to the creation mock.
Changes: Project creation
| Layer / File(s) |
Summary |
Pass scripts through named-project creation apps/server/src/project/ManagedProjectFolders.ts, apps/server/src/mcp/toolkits/project/handlers.ts |
The named-project creation input accepts optional scripts. The handler forwards provided scripts, and the service includes them in project creation when provided. |
Accept empty optional lists apps/server/src/mcp/toolkits/project/handlers.ts, apps/server/src/mcp/toolkits/project/handlers.test.ts |
When workspaceRoot is absent, validation permits empty scripts and trackedFolders arrays. Tests check the creation results and captured script values. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to e1e07
-
Title-only project creation now accepts empty scripts and trackedFolders lists, and an empty scripts list is kept as an explicit no-scripts setting. No merge-blocking risk was found. The tests use mocked services and the tool was not run against a live server.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(server): t3_project_create accepts empty lists with a title" matches the main change. The handler's title-only check now accepts empty scripts and trackedFolders lists, and non-empty li… |
| Description check |
 |
The description follows the repository template. It has Problem, Change, Scope, and Verification sections, plus a model and harness line. The Problem section gives reproduction steps and expected beha… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "fix(server): t3_project_create accepts empty lists with a title" matches the main change. The handler's title-only check now accepts empty scripts and trackedFolders lists, and non-empty lists remain refused. The title is specific and follows the conventional commit style that the repository template asks for.
Full details: Description check
-
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections, plus a model and harness line. The Problem section gives reproduction steps and expected behavior. The Change section explains the fix and why the createWorkspaceRootIfMissing check is unchanged. Scope explains why no issue is linked. Verification shows focused test output from both the failing and passing runs, and it states what was not verified. The template's conventional commit title guidance is also met by the title.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 7d84c79 and e1e07f1.
Files selected for processing: 3
-
apps/server/src/mcp/toolkits/project/handlers.test.ts
apps/server/src/mcp/toolkits/project/handlers.ts
apps/server/src/project/ManagedProjectFolders.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…pts list
Forward scripts through createNamedProject so scripts: [] is saved as a
no-scripts override instead of being dropped, which would fall back to the
environment's default scripts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Evidence
Real Linux T3 servers, fresh isolated databases, HTTP MCP with full-access OAuth. On both commits, created the title-only control, attempted title plus scripts:[], attempted title plus trackedFolders:[], then listed projects. Base rejected both empty-list calls with invalid_request and retained only the control. Head accepted all three calls and listed all three projects with empty lists. Images show excerpts rendered from captured responses; local filesystem paths are redacted.
MCP driver · OAuth setup driver · Transcript image renderer
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|