Skip to content

UI hangs due to repeated list-updated that cause multiple rerenders #58

Description

@lostmsu

What version of Codexia is running?

0.28.0

What version of Codex is running?

0.116

Which provider were you using?

OpenAI

Which model were you using?

N/A

What platform is your computer?

No response

What issue are you seeing?

Desktop app became unusable, 100% CPU usage impossible to type messages.

What steps can reproduce the bug?

Hard to pinpoint

I see 2 stacktraces:

  1. Main thread-list path
  • xv({ enabled: true })
  • on thread/list-updated -> debounce -> Xe.loadThreads(...)
  • Xe.loadThreads(...) -> hi(...)
  • hi(...) -> Tauri list_threads
  1. Scoped thread-list path
  • rM({ cwdOverride })
  • initial hi({ limit: 3, ... })
  • plus its own thread/list-updated subscription
  • debounce -> hi(...) again

What is the expected behavior?

No response

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions