Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Error loading prompt history and opening events #969

Description

@danbarr

Describe the issue

This is happening only when I run from main (I built the container with make all && make image-build and ran that version). Reverting to the v0.1.16 release fixes it.

When I open the dashboard, the prompt history fails to load, and I can't open events (goes to a blank screen). In the container logs I see the following error, repeated several times per attempt:

2025-02-06T23:33:20.397389Z [error    ] Error while getting messages   lineno=424 module=v1 pathname=/app/src/codegate/api/v1.py
  + Exception Group Traceback (most recent call last):
  |   File "/app/src/codegate/api/v1.py", line 419, in get_workspace_messages
  |     conversations, _ = await v1_processing.parse_messages_in_conversations(
  |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/app/src/codegate/api/v1_processing.py", line 436, in parse_messages_in_conversations
  |     partial_question_answers = await _process_prompt_output_to_partial_qa(prompts_outputs)
  |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/app/src/codegate/api/v1_processing.py", line 425, in _process_prompt_output_to_partial_qa
  |     async with asyncio.TaskGroup() as tg:
  |                ^^^^^^^^^^^^^^^^^^^
  |   File "/usr/local/lib/python3.12/asyncio/taskgroups.py", line 71, in __aexit__
  |     return await self._aexit(et, exc)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/usr/local/lib/python3.12/asyncio/taskgroups.py", line 164, in _aexit
  |     raise BaseExceptionGroup(
  | ExceptionGroup: unhandled errors in a TaskGroup (57 sub-exceptions)

I'll include the full traceback message below since it's very long.

Steps to Reproduce

With existing prompt data in database (I can provide a copy of mine if needed), start codegate from main.

Operating System

MacOS (Arm)

IDE and Version

NA

Extension and Version

NA

Provider

Anthropic

Model

NA

Codegate version

v0.1.16-91b73bf-dev

Logs

messages-error.txt

Additional Context

No response

Activity

  1. added a commit that references this issue on Feb 7, 2025
    1e4ec6e
  2. added a commit that references this issue on Feb 7, 2025
    0e85ed7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions