saveTask: accept requires_filesystem; opt in for the onboarding kickoff task
- saveTask now takes an optional requiresFilesystem boolean. Omitted → column keeps its current value on updates, defaults to 0 on inserts. Explicit true/false → written through. - Onboarding kickoff (the CEO's very first task) sets requiresFilesystem=true. The task description already tells the agent to list directories and read README/package.json — that is filesystem work, so the task must hold the workspace exclusive. - Other saveTask call sites (automation reassign, routes-tasks patch, create_task, meetings) stay implicit — update paths preserve the existing column value, new user-created tasks default to 0 (safe cognitive default) and can be opted in later by the creator.
This commit is contained in:
1 parent
c3dd08ec65
commit
15e3863cba
2 files changed
+59
-20
No files matched your search
@@ -198,6 +198,11 @@ export function createOnboardingService({
|
||||
workspaceId: workspaceId ?? leadAgent.workspaceId ?? null,
|
||||
priority: "high",
|
||||
status: "todo",
|
||||
// Kickoff explicitly reads the workspace codebase (see
|
||||
// description above — "list the top-level directory, read key
|
||||
// files"), so this is a filesystem-touching task and must take
|
||||
// an exclusive lock on the bound workspace.
|
||||
requiresFilesystem: true,
|
||||
});
|
||||
|
||||
const startRunResult = queueTaskRun(taskId, "assignment", "system");
|
||||
|
||||
Reference in new issue
Block a user