Skip to content

[Feature]: settings to hide successful script notifications and launcher rows #940

Closed

Description

@Xoshbin

Is your feature request related to a problem?

Every successful script run currently produces three things the user can't turn off (Settings → Scripts only has the watched directories today):

Surface Source
"Script finished" system notification build_run_notification / runs_done (commands/runs.rs)
"Done" row in the launcher root unacknowledgedScriptResults bucket (runService.svelte.ts)
"N Done" chip in the show-more bar ShowMoreBarHuds.svelte, derived from the same bucket

For frequently-run or fire-and-forget scripts (and extension shell calls, which share the same channel, see #939) this is noise. Failures are already surfaced separately ("Run failed" notification + failure row), so the user only wants to quiet the success side.

Proposed Solution

New options in Settings → Scripts, defaults unchanged:

  1. Notify when a script finishes successfully: default on. Failures always notify.
  2. Keep successful scripts in the launcher list: default on. Turning it off skips the success bucket upsert, which also removes the "Done" chip (same data source).
  3. Optionally a single "Only show failures" switch that turns both off.

Run history stays untouched, so every run is still inspectable in Manage Scripts.

Implementation notes:

  • The notification is decided in Rust (runs_done), the row in the frontend (onStateChanged). Both must read the same setting so they cannot drift.
  • Applies to all shell-script runs, including extension spawns. Per-script control belongs to the @asyar.mode header (separate bug, see below).
  • Effective behaviour should be "global setting AND per-script/per-spawn quiet flag": the more specific control can only make things quieter than the user's global choice, never louder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions