Skip to content

Enhancements: Better error reporting / status updates #5

@benagricola

Description

@benagricola

Okay, I've actually had a chance to use this and compare to kimaki this morning.

So far, pretty good 👍 - although I ran into a couple of issues.

  • The bot explicitly discards stdout and stderr from the opencode process in serveManager.ts, making it difficult to debug opencode process failures.
  • The bot unconditionally sends a ✅ Done message (and sometimes twice) to Discord when the session becomes idle, even if the command failed. This is an issue for things like endpoint failures (for example if you hit rate limits). Ideally, these would be logged to discord for easy diagnosis.
  • The bot does not automatically expand tildes (~) in project paths, leading to ENOENT errors when spawning the shell for worktree creation if the path isn't absolute.
  • The Create PR button doesn't do anything, although you can just ask the agent to create the PR itself :)
  • Sending a message in /code mode that is very close to the character limit in discord will cause a silent failure (the bot will do nothing). The prompt is first echoed back to the thread with an emoji and a Prompt header, and possibly a message about starting Opencode as well. That message is not truncated to Discord's message character limit (2000) and fails silently, meaning the prompt is never sent to Opencode. This also presents an issue when the agent returns, and the original prompt message is edited to include the reply. If the prompt is long there is very little room for the agent reply to be edited in, so the reply is silently dropped and we just see a 'Done' message.

In general, this feels pretty streamlined already. One thing I liked a lot about kimaki is that it provides regular updates about what the agents are doing (commands they are running, thinking messages etc). Sometimes it can be a bit verbose but it does mean you can interrupt the agent if you see them going off script. It would be nice to have some feedback on what the agents are actually doing (even if it is a toggle so has to be enabled), so it is possible to tell if they are stuck or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions