Skip to content

One-click context compaction button #36921

Description

@ohsalmeron

The session context usage indicator already shows how full the context window is, but there's no way to trigger compaction from the UI without using the command palette (/compact).

Adding a small compact icon button next to the context usage progress circle lets users one-click compact. It calls the existing POST /api/session/:sessionID/compact endpoint and needs no new API work.

I have a working branch with the change: ohsalmeron/opencode:context-compact

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

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