Skip to content

Commit ec889c4

Browse files
stephendolanclaude
andcommitted
fix(inbox): remove invalid inbox parameter from Task constructor
The Omni Automation API requires omitting the second argument when creating inbox tasks. Passing `inbox` as second parameter causes task creation to fail. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 289d53d commit ec889c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/omnifocus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export class OmniFocus {
417417
${options.project
418418
? `const targetProject = findByName(flattenedProjects, "${this.escapeString(options.project)}", "Project");
419419
const task = new Task("${this.escapeString(options.name)}", targetProject);`
420-
: `const task = new Task("${this.escapeString(options.name)}", inbox);`
420+
: `const task = new Task("${this.escapeString(options.name)}");`
421421
}
422422
423423
${options.note ? `task.note = "${this.escapeString(options.note)}";` : ''}

0 commit comments

Comments
 (0)