Replies: 1 comment
-
|
the use case here is legit: a home for long-lived processes (watchers, builders, dev servers) you start once and only glance at occasionally, without tying up the scratch for it. I looked at whether overlays could be that home, and I don't think they fit. two shapes came up:
both break what makes the overlay easy to reason about. Today the model is tiny: one overlay per session, always visible while open, and you close it by exiting its process. A hidden-but-running state breaks the "singular and visible" part, and the follow-on cases don't resolve cleanly:
net, it piles a lot of surface onto a concept that should feel simple, and the mental model stops being intuitive. So I'm going to leave overlays as they are: singular, visible, exit-to-close. for the actual need, a dedicated session fits, and it's lighter than the "overkill" in the first post suggests. Spinning one up just for the watcher is cheap. Run it there (a background session if you don't want it grabbing focus), switch to it when you want to look, and it stays up the whole time with the overlay concept untouched. if someone sees a shape that gives a hideable long-lived process without wrecking the overlay model, I'm open to it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request: hide/show command for overlays (via API/CLI)
Problem
Overlays in agterm are modal by design — they block interaction with everything else while open. The scratch terminal (
cmd+J) is meant for quick, one-off commands, and the quick terminal works well but is limited to one per window.None of these fit a common use case: long-running processes that live for the whole session, e.g.
aspire runornpm start. You want to:Today the options are all unsatisfying:
The existing surfaces are sensibly separated and each has a clear purpose. The goal is not to shoehorn this into one of them with a hack.
Proposed solution
Add hide/show commands for overlays, exposed through the API/CLI (
agtermctl).Behavior:
Because it's an API/CLI-level command, arbitrary custom commands and keyboard shortcuts can be built on top of it. Map it to a key once, and it works identically across all sessions.
Alternatives considered
The hide/show command is the smaller, more incremental change, and it composes well with existing shortcut/command customization.
Open question
How well does non-modal (or hideable) behavior fit the current overlay design, which assumes modality? This is the main thing worth discussing.
Beta Was this translation helpful? Give feedback.
All reactions