Add missing jobId to general.task (#220)

* Add missing jobId to general.task

Should maybe just pass the whole job through...

* Fix roo code production name
This commit is contained in:
John Richmond 2025-07-07 12:25:47 -07:00 committed by GitHub
parent 900a9014dc
commit 12185d08a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -36,7 +36,9 @@ export async function createAndEnqueueJob<T extends JobType>(
await db
.select({ id: orgs.id })
.from(orgs)
.where(or(eq(orgs.name, 'Roo Code'), eq(orgs.name, 'Roo Code / Dev')))
.where(
or(eq(orgs.name, 'Roo Code, Inc.'), eq(orgs.name, 'Roo Code / Dev')),
)
.limit(1)
)[0]?.id;

View file

@ -92,7 +92,7 @@ export async function processJob<T extends JobType>({
case 'general.task': {
const jobPayload = payload as JobPayload<'general.task'>;
result = await processGeneralTask(jobPayload, { onTaskStarted });
result = await processGeneralTask(jobPayload, jobId, { onTaskStarted });
break;
}

View file

@ -4,6 +4,7 @@ import { runTask, type RunTaskCallbacks } from '../runTask';
export async function processGeneralTask(
jobPayload: JobPayload<'general.task'>,
jobId: number,
callbacks?: RunTaskCallbacks,
mode?: string,
) {
@ -22,6 +23,7 @@ Please complete this task and create a pull request with your changes when finis
const result = await runTask({
jobType: 'general.task',
jobPayload,
jobId,
prompt,
callbacks,
notify: false,