Skip to content

Commit bc5ca6a

Browse files
committed
Release 0.2.4
1 parent 89dad3b commit bc5ca6a

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to Sofos are documented in this file.
44

55
## [Unreleased]
66

7+
## [0.2.4] - 2026-04-27
8+
79
### Changed
810

911
- **Permission prompt drops the "and remember" options for bash commands whose args won't repeat.** The four-choice prompt (`Yes` / `Yes and remember` / `No` / `No and remember`) offered to persist the exact command string — which for `sed -n '1270,1320p'`, `head -n 50`, `tail -n 100`, `grep -A 5 pat`, `awk 'NR==5'` was useless because the line number / range / count changes every call, so the remembered rule never matched again. Sofos now detects these four shapes (sed numeric addresses, head/tail numeric counts, grep/`rg` context flags `-A`/`-B`/`-C`, awk `NR==|<=|>=|<|>` predicates) per pipe segment and falls back to a plain `Yes` / `No` prompt. Commands with stable args still get the full four-choice prompt. To allowlist a whole invocation family, add a `Bash(cmd:*)` entry to `.sofos/config.local.toml` directly.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sofos"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
edition = "2021"
55

66
authors = ["Alexander Alexandrov"]

0 commit comments

Comments
 (0)