Skip to content

move agent metadata from sidebar to bottom status bar #191

Description

@matifali

Given the scarcity of space on the status bar, we can only show the first entry by default to use space, with the rest expandable when clicked efficiently. Originally requested in coder/coder#11720

Activity

  1. EhabY commented on Jul 15, 2025

    @EhabY
    Collaborator

    Showing the first entry in the status bar is simple, but how should it show the rest of the metadata? It could either show that in the hovers (Markdown) or perhaps open a Webview (any HTML or similar) with a formatted table in a nice looking page. What do you think?

  2. matifali commented on Jul 15, 2025

    @matifali
    ContributorAuthor

    Something that shows up on hover. It would be nice if we could color-code it based on the value.

    For example, the current values for CPU and RAM are X/32 GB, etc. It would be difficult to parse these values, so it's fine if we don't do this color coding.

    Image
  3. EhabY commented on Jul 15, 2025

    @EhabY
    Collaborator

    Individual items can be colored, for example, a yellow-warning color when it's above a certain percentage since the hover can embed certain HTML tags and attributes (including style). Another improvement could be coloring the status bar item itself when the resource usage (for any item) reaches above a certain threshold, this should draw the users attention into it so they can investigate

  4. EhabY commented on Jul 16, 2025

    @EhabY
    Collaborator

    Could be something like this, from what I see we cannot really extract the usage percentage unless we use Regex with something generic like <number>/<number>. If so, what percentage should a warning (yellow) be used and for what percentage should an error (red) be used?

    Here is how it would look without coloring:

    Image
  5. matifali commented on Jul 16, 2025

    @matifali
    ContributorAuthor

    Looks clean.

  6. EhabY commented on Jul 16, 2025

    @EhabY
    Collaborator

    I can submit a PR then :)

    • I am guessing no colors for now since it might produce false negatives?
    • Should the label of the status bar item should just be the value of the first item as depicted?
  7. matifali commented on Jul 16, 2025

    @matifali
    ContributorAuthor

    I am guessing no colors for now since it might produce false negatives?

    Yes I agree.

    Should the label of the status bar item should just be the value of the first item as depicted?

    Sounds fine to me.

  8. EhabY commented on Jul 29, 2025

    @EhabY
    Collaborator

    Should this be closed? Though the agent metadata hasn't been moved but instead shown also in the status bar

  9. matifali commented on Jul 30, 2025

    @matifali
    ContributorAuthor

    complted in #555

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

    good first issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions