fix: scheduler task UUID mismatch causing Task not found errors#1350
Open
Maxei6 wants to merge 2 commits intoagent0ai:mainfrom
Open
fix: scheduler task UUID mismatch causing Task not found errors#1350Maxei6 wants to merge 2 commits intoagent0ai:mainfrom
Maxei6 wants to merge 2 commits intoagent0ai:mainfrom
Conversation
The modal header used grid-template-columns: 40fr 0.5fr which gave the close button only ~1.2% of the header width, making it effectively unclickable. Changed to grid-template-columns: 1fr auto which gives the title flexible space while keeping the close button at its natural width.
Changed task ID field references from 'id' to 'uuid' to match backend: - scheduler-store.js: Added context_id fallback in syncTasksFromSidebar - tasks-store.js: Fixed contains() to use t?.uuid instead of t?.id - tasks-store.js: Fixed firstId() to return this.tasks[0]?.uuid This fixes the 'Failed to save task' and 'Task not found' errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Scheduler task operations fail with "Task not found" and "Failed to save task" errors due to UUID/ID field mismatch between frontend stores and backend API.
Changes
scheduler-store.js
context_idfallback insyncTasksFromSidebar()methodtasks-store.js
contains(): changedt?.idtot?.uuidfirstId(): changedthis.tasks[0]?.idtothis.tasks[0]?.uuidWhy
The sidebar passes tasks with
idfield, but the store was looking up byuuid. The backend API returnsuuid, so all lookups should useuuid.