feat(sessions): opt-out for the archive confirmation (automation-heavy workflows)
First — the praise, because it's earned: @ronishrohan filed #5768 and @Annieeeee11 landed it in #5865 with real polish — archive semantics instead of trash-can delete, the shared confirm modal, focus restoration. The teardown flow genuinely reads better now.
This follow-up takes that work as the baseline and asks for one thing: an opt-out that brings one-click archiving back for power users.
Make the archive confirm skippable — one variable, old behavior back
Archiving is reversible: sessions land in the Archive section and can be restored from there, or a fresh worker can simply be spawned. With recovery that cheap, the confirm dialog protects nothing expensive — it only taxes the most frequent lifecycle action for people who manage sessions in bulk (orchestrator-driven worker fleets, batch cleanup). Heavy users develop a pure click-through reflex — click, Confirm, click, Confirm — at which point the guard is friction with no protection left in it.
Claude Code handles overrides of exactly this kind with a single environment variable — a pattern worth copying. An AO_* equivalent (e.g. AO_SKIP_ARCHIVE_CONFIRM=1), or one toggle in Settings as the minimal variant, would restore one-click archiving while new users keep the confirmed default. Nothing else changes.
Process
Happy either way on the confirm itself — but a one-line design resolution from whoever owns cross-cutting UX policy ("guardrails always win, no opt-outs" — or the opposite) would make proposals like this cheap to settle. The general version of that ask — a visible resolution mechanism for cross-cutting proposals — is now its own issue: #6036.
The bigger half of this picture — guardrails for orchestrator-driven worker lifecycles, where the real damage comes from — is tracked separately in #6035, since it has a different audience.
Source: Untrivial-ai/agent-orchestrator