Skip to content

Support /compact command through RPC #41

Description

@lemotw

Problem / motivation

I noticed that the /compact command is currently not available in the web UI.

In my previous PR, I implemented /skill using RPC, but the PR was closed because the maintainers were already working on the same feature. Since /compact might follow a similar implementation pattern, I wanted to ask first before starting any work.

Having /compact available from the web UI would make it easier for users to manage long conversations without switching back to another interface.

Proposed solution

If this feature is not already being worked on, I would be happy to help implement /compact support.

A possible approach could be:

  1. Confirm the expected behavior of /compact.
  2. Check whether there is already an RPC method available for compacting the conversation.
  3. Add the UI command entry for /compact.
  4. Trigger the corresponding RPC call when the command is selected.

I would like to confirm the expected behavior first to avoid duplicating existing work or implementing it in a different direction.

Alternatives considered

No response

Acknowledgement

  • I understand the maintainer triages requests and will invite a PR only if this moves forward.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions