jacob-ai-bot / jacob

Just Another Coding Bot
https://jacb.ai
Apache License 2.0
96 stars 13 forks source link

Add error status and messaging #49

Open kleneway opened 2 months ago

kleneway commented 2 months ago

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.

cpirich commented 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.