Skip to content

Chore: Refactor state handling of running backends #199

@tnglemongrass

Description

@tnglemongrass

Current, there are at least two parallel mechanisms that contain information of the external backend states:

  • Explicit setting a ref() value
  • Detecting an actual running instance
  • ...

This leads to various problems, e.g. in case a backend crashed (or failed to start) the state might not be up to date.
Also, this leads to unclean code paths, e.g. when backends should intentionally be restarted to free up resources (for editing images via tool call).

Goal would be to get rid of any manual state setting and have everything "detected" automatically. Find a clean architecture that allows that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions