Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/client-runtime/src/state/threadExecution.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
RunAttemptId,
RunId,
RuntimeRequestId,
SANDBOX_BRIDGE_INSTANCE_ID,
ThreadId,
type OrchestrationV2ExecutionNode,
type OrchestrationV2RunStatus,
Expand Down Expand Up @@ -344,6 +345,20 @@ describe("thread execution presentation", () => {
expect(
deriveThreadActivityRun({ ...starting, providerSessions: [] })?.providerStartingLabel,
).toBe("Starting");
const bridgeInstanceId = ProviderInstanceId.make(SANDBOX_BRIDGE_INSTANCE_ID);
expect(
deriveThreadActivityRun({
...starting,
runs: [{ ...openRun, providerInstanceId: bridgeInstanceId }],
providerSessions: [
{
...session,
driver: ProviderDriverKind.make("acpRegistry"),
providerInstanceId: bridgeInstanceId,
},
],
})?.providerStartingLabel,
).toBe("Starting sandbox");
expect(
deriveThreadActivityRun({
...starting,
Expand Down
3 changes: 3 additions & 0 deletions packages/client-runtime/src/state/threadExecution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
isProviderNativeSubagentThread,
latestProviderTurnForAttempt,
PROVIDER_DISPLAY_NAMES,
SANDBOX_BRIDGE_INSTANCE_ID,
type ModelSelection,
type OrchestrationV2NotificationSource,
type OrchestrationV2PendingBackgroundTask,
Expand Down Expand Up @@ -110,6 +111,8 @@ function providerStartingLabel(
projection: ThreadStructure,
run: OrchestrationV2ThreadProjection["runs"][number],
): string {
// The sandbox bridge runs on the generic ACP Registry driver; name the machine it starts.
if (run.providerInstanceId === SANDBOX_BRIDGE_INSTANCE_ID) return "Starting sandbox";
const driver = projection.providerSessions.findLast(
(session) => session.providerInstanceId === run.providerInstanceId,
)?.driver;
Expand Down