Skip to content

Move idle compaction request creation to backend #1208

@ethanndickson

Description

@ethanndickson

Right now, the backend cannot construct compaction requests because it lacks access to user preferences stored in the frontend's local storage. These include:

  • Preferred compaction model
  • Gateway routing
  • Preferred compaction thinking level

This means the idle compaction flow involves the backend sending a 'perform compaction' event to the frontend. This means a standalone mux server instance cannot perform idle compaction.

Once these preferences are persisted in a backend-accessible storage (probably a config file), and served over oRPC, the entire idle compaction flow can happen on the backend. Removing useIdleCompactionHandler hook, and having IdleCompactionService directly call sendMessage.

  • Persist compaction preferences to backend-accessible config
  • Create compaction request on backend

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions