fix: mobile stand-in projects missing the required agentInstanceId field
OrchestrationProjectShell gained agentInstanceId on this branch, and the type requires the property to be present (the decoding default only covers wire snapshots, not literals). Mobile builds project stand-ins by hand in two places — the offline pending-task group and the pending-task editor — and five test fixtures do the same. All now carry agentInstanceId: null, which is correct by construction: a queued task always targets a real workspace, so an agent project can never reach these code paths. Only surfaced in CI: local verification typechecked server and web but not the whole monorepo. `vp run typecheck` (what CI runs) is now clean. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
98c36a0863
commit
2e14225752
7 files changed
+12
No files matched your search
@@ -13,6 +13,7 @@ function makeProject(
|
||||
return {
|
||||
workspaceRoot: `/workspaces/${input.id}`,
|
||||
repositoryIdentity: null,
|
||||
agentInstanceId: null,
|
||||
defaultModelSelection: null,
|
||||
scripts: [],
|
||||
createdAt: "2026-06-01T00:00:00.000Z",
|
||||
|
||||
@@ -25,6 +25,7 @@ function makeProject(id: string, title: string): EnvironmentProject {
|
||||
title,
|
||||
workspaceRoot: `/workspaces/${id}`,
|
||||
repositoryIdentity: null,
|
||||
agentInstanceId: null,
|
||||
defaultModelSelection: null,
|
||||
scripts: [],
|
||||
createdAt: "2026-06-01T00:00:00.000Z",
|
||||
|
||||
@@ -17,6 +17,7 @@ function makeProject(
|
||||
return {
|
||||
workspaceRoot: `/workspaces/${input.id}`,
|
||||
repositoryIdentity: null,
|
||||
agentInstanceId: null,
|
||||
defaultModelSelection: null,
|
||||
scripts: [],
|
||||
createdAt: "2026-06-01T00:00:00.000Z",
|
||||
|
||||
@@ -310,6 +310,9 @@ export function buildHomeThreadGroups(input: {
|
||||
workspaceRoot:
|
||||
pendingTask.creation.projectCwd ?? String(pendingTask.creation.projectId),
|
||||
repositoryIdentity: null,
|
||||
// A queued task always targets a real workspace; agent projects
|
||||
// never enqueue through this path.
|
||||
agentInstanceId: null,
|
||||
defaultModelSelection: null,
|
||||
scripts: [],
|
||||
createdAt: pendingTask.message.createdAt,
|
||||
|
||||
@@ -14,6 +14,7 @@ const projects: ReadonlyArray<EnvironmentProject> = [
|
||||
title: "T3 Code",
|
||||
workspaceRoot: "/workspace/t3code",
|
||||
repositoryIdentity: null,
|
||||
agentInstanceId: null,
|
||||
defaultModelSelection: { instanceId: ProviderInstanceId.make("codex"), model: "gpt-5.4" },
|
||||
scripts: [],
|
||||
createdAt: "2026-07-16T08:00:00.000Z",
|
||||
@@ -25,6 +26,7 @@ const projects: ReadonlyArray<EnvironmentProject> = [
|
||||
title: "React",
|
||||
workspaceRoot: "/workspace/react",
|
||||
repositoryIdentity: null,
|
||||
agentInstanceId: null,
|
||||
defaultModelSelection: null,
|
||||
scripts: [],
|
||||
createdAt: "2026-07-16T08:00:00.000Z",
|
||||
|
||||
@@ -264,6 +264,9 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) {
|
||||
// fabricated path.
|
||||
workspaceRoot: creation.projectCwd ?? "",
|
||||
repositoryIdentity: null,
|
||||
// A queued task always targets a real workspace; agent projects never
|
||||
// enqueue through this path.
|
||||
agentInstanceId: null,
|
||||
defaultModelSelection: editingPendingTask.modelSelection ?? null,
|
||||
scripts: [],
|
||||
createdAt: editingPendingTask.createdAt,
|
||||
|
||||
@@ -11,6 +11,7 @@ function makeProject(
|
||||
return {
|
||||
workspaceRoot: `/workspaces/${input.id}`,
|
||||
repositoryIdentity: null,
|
||||
agentInstanceId: null,
|
||||
defaultModelSelection: null,
|
||||
scripts: [],
|
||||
createdAt: "2026-04-01T00:00:00.000Z",
|
||||
|
||||
Reference in new issue
Block a user