Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
f40c7c6
feat(web): new design is on by default (#25324)
t3dotgg Oct 26, 2026
7f26969
chore(lint): enforce react/set-state-in-effect (#25119)
juliusmarminge Oct 26, 2026
70b0abc
fix(web): short branch names no longer get clipped in thread details …
t3dotgg Oct 26, 2026
c66f13c
refactor(mobile): stream and MCP webviews tie their work to the view'…
juliusmarminge Oct 26, 2026
aa2c80b
fix(web): stacked notices above the composer no longer cast a dark ba…
t3dotgg Oct 26, 2026
1549046
fix(web): thread undo notice sits above the bottom shelves instead of…
maria-rcks Oct 26, 2026
6f3f0d4
feat(web): "could not load" screen tells users how to debug it (#25317)
t3dotgg Oct 26, 2026
3250780
fix(web): usage tabs no longer jump when switching to Limits (#25336)
t3dotgg Oct 26, 2026
62245d8
fix(web): composer bottom toolbar keeps its background under update n…
t3dotgg Oct 26, 2026
80f411f
chore(lint): enforce catchConditionalRefailToCatchIf (#25081)
juliusmarminge Oct 26, 2026
931bd53
chore(lint): enforce flatMapConditionalToFilterOrFail (#25082)
juliusmarminge Oct 26, 2026
6618ccb
chore(lint): enforce runEffectInsideEffect (#25096)
juliusmarminge Oct 26, 2026
d859715
chore(lint): enforce abortControllerInEffect (#25098)
juliusmarminge Oct 26, 2026
2931461
chore(lint): enforce t3code/no-inline-schema-compile (#25113)
juliusmarminge Oct 26, 2026
d53b446
chore(lint): enforce oxc/no-accumulating-spread (#25114)
juliusmarminge Oct 26, 2026
695f5c9
chore(lint): enforce t3code/no-polling-loop-in-tests (#25120)
juliusmarminge Oct 26, 2026
4e493b1
docs: read GitHub Actions logs through cafe (#25343)
juliusmarminge Oct 26, 2026
4338377
feat(web): "failed to start" screen helps users recover and report th…
t3dotgg Oct 26, 2026
69f85ef
chore(task-cache): name native client downloads so agent-device can i…
juliusmarminge Oct 26, 2026
03851b8
fix(web): keep large thread counts from shrinking labels (#25355)
Yash-Singh1 Oct 26, 2026
cbd72e5
fix(task-cache): avoid cross-request admission waiters (#25353)
juliusmarminge Oct 26, 2026
3d5364f
fix(task-cache): name Android native client downloads .apk
juliusmarminge Oct 26, 2026
10629af
fix(server): select the active iPhone Duo display for screenshots (#2…
shivamhwp Oct 26, 2026
3ed0688
fix(server): remove one-child-per-model instruction (#25359)
Yash-Singh1 Oct 26, 2026
3e70f55
fix(dev): skip auto-seeding large databases (#25365)
Yash-Singh1 Oct 26, 2026
2763bbe
fix(server): preview snapshots preserve blurred backdrops (#24618)
juliusmarminge Oct 26, 2026
5a38e6b
fix(web): model picker no longer jumps when switching providers (#25358)
t3dotgg Oct 26, 2026
9eac774
test(mobile): run React hooks with the release compiler (#24274)
juliusmarminge Oct 26, 2026
bfc7177
fix(mobile): pause videos outside visible thread and PR content (#24268)
juliusmarminge Oct 26, 2026
572cf74
fix(server): retry stalled MCP registration for resumed Claude turns …
Yash-Singh1 Oct 26, 2026
1ecb1a0
fix(mobile): avoid crashes opening wrapped source links (#25156)
juliusmarminge Oct 26, 2026
fb8fc1f
refactor(web): disconnect and reconnect delays read a shared deadline…
juliusmarminge Oct 26, 2026
d171a88
feat(mobile): run the chrome e2e across poses on the device pool
juliusmarminge Oct 26, 2026
72dde22
chore(lint): enforce effectFnOpportunity (#25099)
juliusmarminge Oct 26, 2026
e1c750e
fix(web): composer body ref stops re-attaching on every render (#25409)
juliusmarminge Oct 26, 2026
0a20d7e
fix(web): switching threads no longer delays the next thread's visit …
juliusmarminge Oct 26, 2026
91f47a1
fix(mobile): mobile:install builds on a cache miss for pooled devices…
juliusmarminge Oct 26, 2026
cc93cc5
revert(web): composer body ref goes back to the #25079 ref callback (…
juliusmarminge Oct 26, 2026
184d915
feat(mobile): thread rows drop the branch and lead with the title (#2…
juliusmarminge Oct 26, 2026
a240408
refactor(web): file breadcrumb menus refetch on a new workspace chang…
juliusmarminge Oct 26, 2026
1316d48
fix(web): citations to older responses load their history instead of …
juliusmarminge Oct 26, 2026
6ea3414
refactor(client): composers share one workspace snapshot refresh per …
juliusmarminge Oct 26, 2026
6ffde5b
refactor(mobile): composer pastes and picks are cancelled by their dr…
juliusmarminge Oct 26, 2026
911091b
chore(mobile): e2e poses for current devices, Duo and landscape fixes
juliusmarminge Oct 26, 2026
3433ba1
fix(mobile): select the correct draft after adding a project (#24269)
juliusmarminge Oct 26, 2026
6a1c8d1
fix(mobile): mobile:install no longer requires --prepare
juliusmarminge Oct 26, 2026
3e47c1c
fix(mobile): e2e landscape poses rotate for real on tablets and folds
juliusmarminge Oct 26, 2026
cc0b86d
fix(server): goals stop the running turn, clear while working, no ech…
t3dotgg Oct 26, 2026
0712398
refactor(web): pull request list remembers each answer for the next s…
juliusmarminge Oct 26, 2026
3f3c1b9
refactor(web): HTML previews handle frame messages in one listener (#…
juliusmarminge Oct 26, 2026
2acc7b5
refactor(web): review guide runs are watched from their answers, not …
juliusmarminge Oct 26, 2026
9d7997a
refactor(web): resize drags, panel shells and the browser host own th…
juliusmarminge Oct 26, 2026
3cb16cf
fix(web): find shows its match after a thread switch, and the timelin…
juliusmarminge Oct 26, 2026
59a3f52
fix(mobile): a new thread's first send no longer sticks on Starting (…
juliusmarminge Oct 26, 2026
d5a791b
fix(client): drafts for answered questions are cleared even when thei…
juliusmarminge Oct 26, 2026
28df7a2
refactor(web): terminal output no longer re-renders the drawer, theme…
juliusmarminge Oct 26, 2026
f0dd86f
fix(web): stable callbacks refresh before layout effects read them (#…
juliusmarminge Oct 26, 2026
7d3208c
test(web): say why the useStableCallback test renders without a route…
juliusmarminge Oct 26, 2026
e5ea25d
fix(mobile): queued edits end when their run starts, wherever you are…
juliusmarminge Oct 26, 2026
148d2fd
refactor(web): root theme, toast and chrome sync start with the app (…
juliusmarminge Oct 26, 2026
a936f05
refactor(web): root theme, toast and chrome sync start with the app (…
juliusmarminge Oct 26, 2026
d6fb62a
fix(mobile): editing a queued message while a question is open no lon…
juliusmarminge Oct 26, 2026
f05c38f
fix(web): browser viewport resizes work without an open preview panel…
juliusmarminge Oct 26, 2026
d81757e
test(web): attachment preview omission tests no longer time out on CI…
juliusmarminge Oct 26, 2026
87ea18c
fix(mobile): describe when composer view commands can reject (#25516)
juliusmarminge Oct 26, 2026
7c6e85c
fix(web): browser history and titles show up again (#25491)
juliusmarminge Oct 26, 2026
3f94487
fix(web): switching back to a thread no longer restores its tab's old…
juliusmarminge Oct 26, 2026
e6ec114
refactor(web): pull request page reacts to turns and sweep Escape wit…
juliusmarminge Oct 26, 2026
b424c6e
fix(web): an armed pull request confirm no longer outlives its button…
juliusmarminge Oct 26, 2026
210b2e7
fix(mobile): keep expanding composer text above its toolbar (#25396)
saphid Oct 26, 2026
1c1050e
fix(server): release completed PR sync sweep data from the read cache…
juliusmarminge Oct 26, 2026
e762f09
fix(mobile): drop the unused useLayoutEffect import that fails lint o…
juliusmarminge Oct 26, 2026
374e57d
refactor(web): provider settings and Codex setup run as explicit flow…
juliusmarminge Oct 26, 2026
8e1bb03
test(web): attachment preview omission cases check the prepared docum…
juliusmarminge Oct 26, 2026
c4d5950
refactor(mobile): pull request screens use a file-jump store and hand…
juliusmarminge Oct 26, 2026
4e42eaf
fix(mobile): label the pull request toast action View (#25581)
PixPMusic Oct 26, 2026
220eb73
refactor(mobile): media previews share file leases and close on blur …
juliusmarminge Oct 26, 2026
b6994c5
fix(shared): pin T3 Connect cloudflared to 2026.10.4, which drops the…
Project516 Oct 26, 2026
278588a
fix(web): skill chips in chat open the same details popover as the co…
flamboh Oct 26, 2026
dd5b540
refactor(web): chat route shortcuts register once instead of rebuildi…
juliusmarminge Oct 26, 2026
fe507c5
fix(clients): queued messages can't be edited while a question is ope…
juliusmarminge Oct 26, 2026
0899305
docs: add an FAQ that answers what people ask every day (#25451)
t3dotgg Oct 26, 2026
560ddb1
feat(web): warn before adding a second Claude or Codex account (#25475)
t3dotgg Oct 26, 2026
0790e38
fix(server): expire new-model badges after seven days (#25609)
Yash-Singh1 Oct 26, 2026
451bb45
refactor(web): running timers share one clock instead of an interval …
juliusmarminge Oct 26, 2026
4034b5f
fix(web): simplify the created pull request success row (#25613)
Yash-Singh1 Oct 26, 2026
5effca1
fix(web): thread jump hints wait for their delay on every hold (#25636)
juliusmarminge Oct 26, 2026
a54ba53
fix(mobile): open threads from the local cache instead of "Thread una…
juliusmarminge Oct 26, 2026
e2d3ded
fix(infra): task-cache telemetry no longer strands an event queued du…
juliusmarminge Oct 26, 2026
0c901ed
refactor(web): video previews attach listeners on their element and s…
juliusmarminge Oct 26, 2026
3de3eee
refactor(mobile): voice input session owns recording, metering and ke…
juliusmarminge Oct 26, 2026
6838e31
fix(web): screen readers can wrap to the first and last message of a …
shivamhwp Oct 26, 2026
024e593
fix(client-runtime): a slow host no longer shows settings as read-onl…
yordis Oct 26, 2026
a4fbea8
refactor(mobile): thread rows share one clock and cache SVGs instead …
juliusmarminge Oct 26, 2026
0604547
fix(server): a thread whose worktree was deleted recovers on the next…
yordis Oct 26, 2026
977a188
refactor(mobile): pull request list records answers where they land (…
juliusmarminge Oct 26, 2026
abf8f43
fix(mobile): keep floating status within the composer width (#25671)
PixPMusic Oct 26, 2026
9db433f
refactor(web): settings group by concern, with General split into foc…
juliusmarminge Oct 26, 2026
576a40f
fix(server): telemetry keeps a failed batch for 30 minutes, not 1.5 (…
t3dotgg Oct 26, 2026
78e93fd
fix(mobile): a caret move in one composer no longer moves another dra…
juliusmarminge Oct 26, 2026
d73fd12
test(web): attachment preview Word and large-text tests no longer fla…
juliusmarminge Oct 26, 2026
82dc892
feat(evals): shared evals package and an eval for T3 tool-use mistake…
t3dotgg Oct 26, 2026
0b0417a
refactor(web): Cmd+O presses the Open in editor button instead of a p…
juliusmarminge Oct 26, 2026
a7caea3
fix(mobile): queued messages are delivered by an app service, not a r…
juliusmarminge Oct 26, 2026
08bd2ec
test(web): PDF viewer behavior is covered by fast tests (#25699)
juliusmarminge Oct 27, 2026
0623d09
refactor(mobile): drop the unreachable pending-task editor from new-t…
juliusmarminge Oct 27, 2026
bd3287b
feat(web): thread state lives at the end of the timeline, not stacked…
t3dotgg Oct 27, 2026
5432d8e
refactor(web): drafts promote from the draft store, not from route ef…
juliusmarminge Oct 27, 2026
9bc0c33
refactor(mobile): settings use web's pages and groups (#25686)
juliusmarminge Oct 27, 2026
a2398c2
refactor(mobile): thread inspector mode is derived, not synced (#25682)
juliusmarminge Oct 27, 2026
68339a0
refactor(mobile): pull request list, filters and viewed files without…
juliusmarminge Oct 27, 2026
becf853
fix(web): PDF search finds phrases that wrap across lines (#25702)
juliusmarminge Oct 27, 2026
8b4cc0d
Merge upstream/main becf853def into coder-only
henrychu04 Oct 27, 2026
6219a52
Read GitLab merge request summaries the way upstream does
henrychu04 Oct 27, 2026
ef23ec6
Carry the open-merge-requests-in-app toggle on the Diffs page
henrychu04 Oct 27, 2026
04f2783
Document the becf853def sync seams
henrychu04 Oct 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions apps/server/src/assets/AttachmentUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ export const storeAttachmentUpload = Effect.fn("AttachmentUpload.store")(functio
}),
}).pipe(
Effect.as(true),
Effect.catch((error) =>
error.reason._tag === "AlreadyExists" ? Effect.succeed(false) : Effect.fail(error),
Effect.catchIf(
(error) => error.reason._tag === "AlreadyExists",
() => Effect.succeed(false),
),
);
}),
Expand Down
212 changes: 123 additions & 89 deletions apps/server/src/git/GitWorkflowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ export const make = Effect.gen(function* () {
ensureGit(operation, input.cwd).pipe(Effect.andThen(run(input)));

return GitWorkflowService.of({
isRepository: (cwd) =>
registry.detect({ cwd }).pipe(
isRepository: Effect.fn("GitWorkflowService.isRepository")(function (cwd) {
return registry.detect({ cwd }).pipe(
Effect.map((handle) => handle?.kind === "git"),
Effect.mapError(
(cause) =>
Expand All @@ -319,9 +319,10 @@ export const make = Effect.gen(function* () {
cause,
}),
),
),
hasCommit: (input) =>
ensureGitCommand("GitWorkflowService.hasCommit", input.cwd).pipe(
);
}),
hasCommit: Effect.fn("GitWorkflowService.hasCommit")(function (input) {
return ensureGitCommand("GitWorkflowService.hasCommit", input.cwd).pipe(
Effect.andThen(
git.execute({
operation: "GitWorkflowService.hasCommit",
Expand All @@ -331,10 +332,11 @@ export const make = Effect.gen(function* () {
}),
),
Effect.map((result) => result.exitCode === 0),
),
hasRefNamed: (input) =>
);
}),
hasRefNamed: Effect.fn("GitWorkflowService.hasRefNamed")(function (input) {
// Pattern characters would widen the ref match.
/[*?[\\]/.test(input.refName)
return /[*?[\\]/.test(input.refName)
? Effect.succeed(false)
: ensureGitCommand("GitWorkflowService.hasRefNamed", input.cwd).pipe(
Effect.andThen(
Expand All @@ -350,45 +352,52 @@ export const make = Effect.gen(function* () {
}),
),
Effect.map((result) => result.stdout.trim().length > 0),
),
status: (input) =>
detectGitRepositoryForStatus("GitWorkflowService.status", input.cwd).pipe(
);
}),
status: Effect.fn("GitWorkflowService.status")(function (input) {
return detectGitRepositoryForStatus("GitWorkflowService.status", input.cwd).pipe(
Effect.flatMap((isGitRepository) =>
isGitRepository ? gitManager.status(input) : Effect.succeed(nonRepositoryStatus()),
),
),
localStatus: (input) =>
detectGitRepositoryForStatus("GitWorkflowService.localStatus", input.cwd).pipe(
);
}),
localStatus: Effect.fn("GitWorkflowService.localStatus")(function (input) {
return detectGitRepositoryForStatus("GitWorkflowService.localStatus", input.cwd).pipe(
Effect.flatMap((isGitRepository) =>
isGitRepository
? gitManager.localStatus(input)
: Effect.succeed(nonRepositoryLocalStatus()),
),
),
remoteStatus: (input, options) =>
detectGitRepositoryForStatus("GitWorkflowService.remoteStatus", input.cwd).pipe(
);
}),
remoteStatus: Effect.fn("GitWorkflowService.remoteStatus")(function (input, options) {
return detectGitRepositoryForStatus("GitWorkflowService.remoteStatus", input.cwd).pipe(
Effect.flatMap((isGitRepository) =>
isGitRepository ? gitManager.remoteStatus(input, options) : Effect.succeed(null),
),
),
);
}),
invalidateLocalStatus: gitManager.invalidateLocalStatus,
invalidateRemoteStatus: gitManager.invalidateRemoteStatus,
invalidateStatus: gitManager.invalidateStatus,
// Coder: route these driver seams through the same Git-only command guard.
moveWorktree: (input) =>
ensureGitCommand("GitWorkflowService.moveWorktree", input.cwd).pipe(
moveWorktree: Effect.fn("GitWorkflowService.moveWorktree")(function (input) {
return ensureGitCommand("GitWorkflowService.moveWorktree", input.cwd).pipe(
Effect.andThen(git.moveWorktree(input)),
),
localRefStatus: (input) =>
ensureGitCommand("GitWorkflowService.localRefStatus", input.cwd).pipe(
);
}),
localRefStatus: Effect.fn("GitWorkflowService.localRefStatus")(function (input) {
return ensureGitCommand("GitWorkflowService.localRefStatus", input.cwd).pipe(
Effect.andThen(git.refStatusLocal(input.cwd)),
),
pullCurrentBranch: (cwd) =>
ensureGitCommand("GitWorkflowService.pullCurrentBranch", cwd).pipe(
);
}),
pullCurrentBranch: Effect.fn("GitWorkflowService.pullCurrentBranch")(function (cwd) {
return ensureGitCommand("GitWorkflowService.pullCurrentBranch", cwd).pipe(
Effect.andThen(git.pullCurrentBranch(cwd)),
),
runStackedAction: (input, options) =>
ensureGit("GitWorkflowService.runStackedAction", input.cwd).pipe(
);
}),
runStackedAction: Effect.fn("GitWorkflowService.runStackedAction")(function (input, options) {
return ensureGit("GitWorkflowService.runStackedAction", input.cwd).pipe(
Effect.flatMap((handle) =>
input.featureBranch
? withCheckoutLease(
Expand All @@ -397,90 +406,115 @@ export const make = Effect.gen(function* () {
)
: gitManager.runStackedAction(input, options),
),
),
);
}),
resolvePullRequest: routeGitManager(
"GitWorkflowService.resolvePullRequest",
gitManager.resolvePullRequest,
),
preparePullRequestThread: (input) =>
ensureGit("GitWorkflowService.preparePullRequestThread", input.cwd).pipe(
Effect.flatMap((handle) =>
input.mode === "local"
? withCheckoutLease(
handle.repository.rootPath,
gitManager.preparePullRequestThread(input),
)
: gitManager.preparePullRequestThread(input),
),
),
listRefs: (input) =>
detectGitRepositoryForCommand("GitWorkflowService.listRefs", input.cwd).pipe(
preparePullRequestThread: Effect.fn("GitWorkflowService.preparePullRequestThread")(
function (input) {
return ensureGit("GitWorkflowService.preparePullRequestThread", input.cwd).pipe(
Effect.flatMap((handle) =>
input.mode === "local"
? withCheckoutLease(
handle.repository.rootPath,
gitManager.preparePullRequestThread(input),
)
: gitManager.preparePullRequestThread(input),
),
);
},
),
listRefs: Effect.fn("GitWorkflowService.listRefs")(function (input) {
return detectGitRepositoryForCommand("GitWorkflowService.listRefs", input.cwd).pipe(
Effect.flatMap((isGitRepository) =>
isGitRepository ? git.listRefs(input) : Effect.succeed(nonRepositoryListRefs()),
),
),
createWorktree: (input, options) =>
ensureGitCommand("GitWorkflowService.createWorktree", input.cwd).pipe(
);
}),
createWorktree: Effect.fn("GitWorkflowService.createWorktree")(function (input, options) {
return ensureGitCommand("GitWorkflowService.createWorktree", input.cwd).pipe(
Effect.andThen(gitManager.createWorktree(input, options)),
),
listLocalBranchNames: (cwd) =>
ensureGitCommand("GitWorkflowService.listLocalBranchNames", cwd).pipe(
);
}),
listLocalBranchNames: Effect.fn("GitWorkflowService.listLocalBranchNames")(function (cwd) {
return ensureGitCommand("GitWorkflowService.listLocalBranchNames", cwd).pipe(
Effect.andThen(git.listLocalBranchNames(cwd)),
),
fetchRemote: (input) =>
ensureGitCommand("GitWorkflowService.fetchRemote", input.cwd).pipe(
);
}),
fetchRemote: Effect.fn("GitWorkflowService.fetchRemote")(function (input) {
return ensureGitCommand("GitWorkflowService.fetchRemote", input.cwd).pipe(
Effect.andThen(git.fetchRemote(input)),
),
remoteExists: (input) =>
ensureGitCommand("GitWorkflowService.remoteExists", input.cwd).pipe(
);
}),
remoteExists: Effect.fn("GitWorkflowService.remoteExists")(function (input) {
return ensureGitCommand("GitWorkflowService.remoteExists", input.cwd).pipe(
Effect.andThen(git.remoteExists(input)),
),
remoteBranchExists: (input) =>
ensureGitCommand("GitWorkflowService.remoteBranchExists", input.cwd).pipe(
);
}),
remoteBranchExists: Effect.fn("GitWorkflowService.remoteBranchExists")(function (input) {
return ensureGitCommand("GitWorkflowService.remoteBranchExists", input.cwd).pipe(
Effect.andThen(git.remoteBranchExists(input)),
),
resolveRemoteTrackingCommit: (input) =>
ensureGitCommand("GitWorkflowService.resolveRemoteTrackingCommit", input.cwd).pipe(
Effect.andThen(git.resolveRemoteTrackingCommit(input)),
),
resolveWorktreeBaseRemote: (input) =>
ensureGitCommand("GitWorkflowService.resolveWorktreeBaseRemote", input.cwd).pipe(
Effect.andThen(git.resolveWorktreeBaseRemote(input)),
),
fetchWorktreeBaseCommit: (input) =>
ensureGitCommand("GitWorkflowService.fetchWorktreeBaseCommit", input.cwd).pipe(
Effect.andThen(git.fetchWorktreeBaseCommit(input)),
),
removeWorktree: (input) =>
ensureGitCommand("GitWorkflowService.removeWorktree", input.cwd).pipe(
);
}),
resolveRemoteTrackingCommit: Effect.fn("GitWorkflowService.resolveRemoteTrackingCommit")(
function (input) {
return ensureGitCommand("GitWorkflowService.resolveRemoteTrackingCommit", input.cwd).pipe(
Effect.andThen(git.resolveRemoteTrackingCommit(input)),
);
},
),
resolveWorktreeBaseRemote: Effect.fn("GitWorkflowService.resolveWorktreeBaseRemote")(
function (input) {
return ensureGitCommand("GitWorkflowService.resolveWorktreeBaseRemote", input.cwd).pipe(
Effect.andThen(git.resolveWorktreeBaseRemote(input)),
);
},
),
fetchWorktreeBaseCommit: Effect.fn("GitWorkflowService.fetchWorktreeBaseCommit")(
function (input) {
return ensureGitCommand("GitWorkflowService.fetchWorktreeBaseCommit", input.cwd).pipe(
Effect.andThen(git.fetchWorktreeBaseCommit(input)),
);
},
),
removeWorktree: Effect.fn("GitWorkflowService.removeWorktree")(function (input) {
return ensureGitCommand("GitWorkflowService.removeWorktree", input.cwd).pipe(
Effect.andThen(git.removeWorktree(input)),
),
pruneWorktrees: (input) =>
ensureGitCommand("GitWorkflowService.pruneWorktrees", input.cwd).pipe(
);
}),
pruneWorktrees: Effect.fn("GitWorkflowService.pruneWorktrees")(function (input) {
return ensureGitCommand("GitWorkflowService.pruneWorktrees", input.cwd).pipe(
Effect.andThen(git.pruneWorktrees(input)),
),
deleteLocalBranch: (input) =>
ensureGitCommand("GitWorkflowService.deleteLocalBranch", input.cwd).pipe(
);
}),
deleteLocalBranch: Effect.fn("GitWorkflowService.deleteLocalBranch")(function (input) {
return ensureGitCommand("GitWorkflowService.deleteLocalBranch", input.cwd).pipe(
Effect.andThen(git.deleteLocalBranch(input)),
),
createRef: (input) =>
ensureGitCommand("GitWorkflowService.createRef", input.cwd).pipe(
);
}),
createRef: Effect.fn("GitWorkflowService.createRef")(function (input) {
return ensureGitCommand("GitWorkflowService.createRef", input.cwd).pipe(
Effect.flatMap((handle) =>
input.switchRef
? withCheckoutLease(handle.repository.rootPath, git.createRef(input))
: git.createRef(input),
),
),
switchRef: (input) =>
ensureGitCommand("GitWorkflowService.switchRef", input.cwd).pipe(
);
}),
switchRef: Effect.fn("GitWorkflowService.switchRef")(function (input) {
return ensureGitCommand("GitWorkflowService.switchRef", input.cwd).pipe(
Effect.flatMap((handle) =>
withCheckoutLease(handle.repository.rootPath, Effect.scoped(git.switchRef(input))),
),
),
renameBranch: (input) =>
ensureGit("GitWorkflowService.renameBranch", input.cwd).pipe(
);
}),
renameBranch: Effect.fn("GitWorkflowService.renameBranch")(function (input) {
return ensureGit("GitWorkflowService.renameBranch", input.cwd).pipe(
Effect.andThen(git.renameBranch(input)),
),
);
}),
});
});

Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/mcp/OrchestratorMcpService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ function threadTitle(input: {
return detail.length > 80 ? `${detail.slice(0, 77)}...` : detail;
}

function taskPrompt(input: OrchestratorMcpDelegateTaskInput): string {
export function taskPrompt(input: OrchestratorMcpDelegateTaskInput): string {
return input.role === undefined || input.role === "general"
? input.task
: `Act as the ${input.role} sub-agent for this task.\n\n${input.task}`;
Expand Down
9 changes: 8 additions & 1 deletion apps/server/src/mcpApps/McpAppModelContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,12 @@ export const layer = Layer.effect(

export const layerEmpty = Layer.succeed(
McpAppModelContext,
McpAppModelContext.of({ set: () => Effect.void, forThread: () => Effect.succeed([]) }),
McpAppModelContext.of({
set: Effect.fn("McpAppModelContext.set")(function () {
return Effect.void;
}),
forThread: Effect.fn("McpAppModelContext.forThread")(function () {
return Effect.succeed([]);
}),
}),
);
Loading