Open kleneway opened 2 months ago
This commit generates the TaskStatus.ERROR
events: https://github.com/jacob-ai-bot/jacob/commit/d0c4093e5b1f3ac4b78cca139e2cbac9ddae81ce
@kleneway: Note that the TaskSubType
field is still incomplete. As a result, we may generate these after failure for a variety of other commands (pull request review, build, create story, etc.) - and the subType
will probably be TaskSubType.EDIT_FILES
- which isn't particularly correct - nor will this failure event correspond to a previous TaskStatus.IN_PROGRESS
event since we don't generate those for many other commands (sub types) yet.
When JACoB stops work on a task due to an error or retry timeout, we currently only see this information on the GitHub comment. We need to also display this information in the web portal to let the user know what went wrong and provide a link to the Issue or PR where JACoB stopped working.
Task
type to add an optionalstatusMessage
valueTask
event to the JACoB core engine when it encounters a blocking error or hits the retry limitstatus
asTaskStatus.ERROR
statusMessage
fieldgetTasks
function in theeventsRouter
to use the most recent task event from the database and add the status to the output (currently it's dynamically generated based on the GitHub issue status)status
section at the bottom of theWorkspace
component to prominently display the error message and a red error message in case of an erroronAdd
subscription function inDashboard.tsx
Task
with an error shows up