Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(server): scheduled tasks in a non-Git project folder run in the folder
#34995
Send to my agent
Closed
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/34995/head
·
opened
3 weeks ago
View on GitHub
Conversation
5
Commits
2
Files changed
2
Impact
Showing
2 changed files
with
48 additions
and
8 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
36 additions and 0 deletions
+36
-0
apps/server/src/mcp/OrchestratorMcpService.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/mcp/OrchestratorMcpService.test.ts
View file
Expand up
Show all 3,190 lines
@@ -3191,6 +3191,42 @@
3191
3191
}),
3192
3192
);
3193
3193
3194
+
it.
effect
(
"runs in the project folder when that folder is not a Git repository"
, () =>
3195
+
Effect
.
gen
(
function
* () {
3196
+
const
saved =
yield
*
Ref
.
make
<
ReadonlyArray
<
ScheduledTask
[
"workspaceStrategy"
]>>([]);
3197
+
const
notARepository = (operation:
string
, cwd:
string
) =>
3198
+
Effect
.
fail
(
3199
+
new
GitCommandError
({
3200
+
operation,
3201
+
command
:
"git"
,
3202
+
cwd,
3203
+
detail
:
"fatal: not a git repository (or any of the parent directories): .git"
,
3204
+
reason
:
"not_a_repository"
,
3205
+
}),
3206
+
);
3207
+
const
mcp =
yield
*
OrchestratorMcpService
.
OrchestratorMcpService
.
pipe
(
3208
+
Effect
.
provide
(
3209
+
service
(
3210
+
{
3211
+
execute
: (input) =>
notARepository
(input.
operation
, input.
cwd
),
3212
+
resolvePrimaryRemoteName
: (cwd) =>
notARepository
(
"resolvePrimaryRemoteName"
, cwd),
3213
+
resolveDefaultBranchName
: (cwd) =>
notARepository
(
"resolveDefaultBranchName"
, cwd),
3214
+
resolveCommit
: ({ cwd }) =>
notARepository
(
"resolveCommit"
, cwd),
3215
+
},
3216
+
saved,
3217
+
{ ...existing,
threadId
:
ThreadId
.
make
(
"thread:scheduled-base"
) },
3218
+
),
3219
+
),
Home
Search
Explore
Menu