Skip to content

Expose context/compression state in gateway-visible status command #7317

@oqpsk

Description

@oqpsk

Problem

OpenClaw's /status exposed practical session-state visibility, but Hermes on gateway platforms (especially Discord) does not currently expose the pieces that matter most for long-running chats.

For Discord-first users, CLI-only affordances are not a real workaround. /usage helps with token usage, but it does not answer the operational question:

  • what is the current context window?
  • how full is it?
  • has context compression already happened?
  • how many times?
  • when was the last compression?

Right now, users can infer that compression exists, but cannot reliably observe whether it happened in the current session.

Requested improvement

Expose session context/compression state in a gateway-visible command.

Two reasonable options:

  1. Add a new /context command
  2. Expand existing /status (preferred if you want fewer commands)

Minimum useful fields

  • current model
  • current provider
  • context window
  • estimated context usage %
  • compression happened: yes/no
  • compression count
  • last compression time

Why this matters

This is not just a nice-to-have metric display. It affects trust and usability in Discord/Telegram/Slack sessions where users do not live in the CLI and want to know whether the agent is still operating on full context or already running on compressed history.

Notes

  • /usage is adjacent, but insufficient
  • CLI banner/statusbar already surface some context-window information, so this is mainly a gateway observability gap
  • Discord-first workflows should not require switching to CLI just to answer “did this session already compress?”

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/gatewayGateway runner, session dispatch, deliverytype/featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions