Skip to content

Review fixes: plugin permissions and shutdown, shell fallback, safer installs, CI - #13

Merged
sn merged 5 commits into
mainfrom
fix/review-findings
Nov 19, 2026
Merged

sn merged 5 commits into
mainfrom
fix/review-findings

Conversation

@sn

@sn sn commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes from a code review of 1.3.1, a formatting pass, and what the new CI turned up. Five commits: the fixes first, then cargo fmt on its own so the first one stays readable, then three small follow-ups.

Plugins

  • new-tab and split with run type a command into a shell, so they now need the Input permission as well as Panes.
  • A stopped plugin is cut off at once, runs in its own process group, and is killed if it ignores being asked to stop.
  • Installs and approvals report write errors, and an update that can't be turned on leaves the old version in place.
  • Registry downloads and archives have limits: 50 MB archive, 10,000 entries, 50 MB per file, 200 MB unpacked.
  • The unpacked limit is counted by having tar unpack to a pipe before anything is written. Sizes in tar's listing follow the owner's name, which the archive chooses, so a name with spaces could hide them and get the whole archive written to disk before it was refused.

Shell

  • A configured shell that can't be started no longer aborts Lumen. /bin/sh runs in its place and says why.

Housekeeping

  • New CI workflow on pull requests and pushes: format check, Clippy with warnings as errors, Rust tests and Python tests, on Linux and macOS.
  • proc-macro-error2 is gone from the dependency tree, which clears the future-incompatibility warning.
  • The Python package's version is written once, in lumen_plugin/__init__.py.
  • The docs agree on the number of built-in plugins and on notarisation.
  • rustfmt.toml (120 columns) and a reformat of src/. No behaviour changes.

macOS, found by the first CI run there

  • Clippy failed on two constants and an import that only the Linux quick-terminal hotkey uses. They are now Linux-only.
  • Two tests assumed Linux: one made a file name that isn't UTF-8, which APFS refuses, and one ran script with util-linux arguments. Both now run on macOS.

CI passes on Linux and macOS: 259 Rust tests and 29 Python tests. Not done here: splitting up workspace.rs, pinning the Rust toolchain, and the block 0.1.6 future-incompatibility warning on macOS.

sn added 2 commits November 18, 2026 19:48
…installs, CI

new-tab and split with run now need the Input permission as well as Panes.
A stopped plugin is cut off at once, runs in its own process group, and is
killed if it ignores being asked to stop. A shell that can't be started
falls back to /bin/sh and says why instead of aborting. Installs and
approvals report write errors and leave the old version if the new one
can't be turned on. Registry downloads and archives have size and
file-count limits. CI runs Clippy and the Rust and Python tests on pull
requests and pushes. proc-macro-error2 is gone from the dependency tree,
the Python package's version is written once, and the docs agree on the
number of built-in plugins and on notarisation.
rustfmt.toml sets a 120-column width. No behaviour changes: the same 258 tests pass before and after.
@sn sn self-assigned this Nov 18, 2026
sn added 3 commits November 18, 2026 19:55
The unpacked-size limit read sizes from tar's listing, where they follow the owner's name. An archive could pick a name with spaces in it to move the size out of place, and was then written to disk in full before being refused. Tar now unpacks to a pipe first and the bytes are counted, so nothing is written past the limit.
APFS refuses a file name that isn't UTF-8, so the theme folder test only checks one where it could be made. BSD script takes the command after the file, not with -c.
@sn
sn merged commit c16826f into main Nov 19, 2026
2 checks passed
@sn
sn deleted the fix/review-findings branch November 19, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant