Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): surface ACP stderr when cursor-agent exits at session start #12625

Mergedcestercian(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/12625/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 84 additions and 0 deletions (loading 6).

x
0 of 9 viewed, 9 left
5 additions and 0 deletionsapps/server/src/orchestration/Layers/ProviderCommandReactor.tsModified
View file
@@ -36,6 +36,7 @@
import { resolveThreadWorkspaceCwd } from "../../checkpointing/Utils.ts";
import { increment, orchestrationEventsProcessedTotal } from "../../observability/Metrics.ts";
import {
+ ProviderAdapterProcessError,
ProviderAdapterRequestError,
ProviderAdapterValidationError,
ProviderWorkspaceMissingError,
@@ -64,6 +65,7 @@
import { resolveProjectSettings } from "@t3tools/shared/projectSettings";
import { VcsStatusBroadcaster } from "../../vcs/VcsStatusBroadcaster.ts";
import { GitWorkflowService } from "../../git/GitWorkflowService.ts";
+const isProviderAdapterProcessError = Schema.is(ProviderAdapterProcessError);
const isProviderAdapterRequestError = Schema.is(ProviderAdapterRequestError);
const isProviderAdapterValidationError = Schema.is(ProviderAdapterValidationError);
const isProviderWorkspaceMissingError = Schema.is(ProviderWorkspaceMissingError);
@@ -373,6 +375,9 @@
if (isProviderAdapterRequestError(failReason?.error)) {
return failReason.error.detail;
+ if (isProviderAdapterProcessError(failReason?.error)) {
+ return failReason.error.detail;
+ }
if (isProviderAdapterValidationError(failReason?.error)) {
return failReason.error.issue;