Skip to content

v1.50.1

Choose a tag to compare

@github-actions github-actions released this 07 Oct 17:38
· 223 commits to main since this release

sudo works again after updates on Linux

On Linux, sudo, su and pkexec could fail in every Termpolis terminal with "The 'no new privileges' flag is set". In-app updates of the Linux .deb caused it: the way the app reopened itself after an update made Linux mark it "no new privileges", and every terminal it opened inherited the mark.

Updates no longer do that. If Termpolis starts with the flag anyway, it tells you and, where systemd-run is available, offers to restart itself properly.

Updating from 1.50.0 or earlier (Linux .deb): if you've updated from inside Termpolis before, the window you have open probably has the flag, and a window with the flag can't install updates either, because installing needs the administrator password. So:

  1. Quit Termpolis and open it again from your applications menu.
  2. Install the update.
  3. If Termpolis says sudo won't work in this window when it reopens, click Restart Termpolis once.

From then on, updates keep sudo working. The AppImage, macOS and Windows builds were never affected.

Agents can use sudo (Linux and macOS)

An agent runs its commands without a terminal, so plain sudo had nowhere to ask for your password. Every Termpolis terminal now sets SUDO_ASKPASS, so sudo -A asks for the password in a dialog that shows the whole command about to run. Termpolis tells Codex, and Claude Code in projects with saved memory, to use it; for other agents, mention sudo -A in your prompt.

  • Type your password only for a command you expected: whatever you approve runs as administrator.
  • A command too long to show in full is refused rather than shown in part.
  • On Linux the dialog uses zenity, kdialog or ssh-askpass, tried in that order; with none installed, sudo -A fails with a message saying so. macOS uses the system dialog.
  • A SUDO_ASKPASS you set yourself is left alone.

Memory: fewer junk lessons

Termpolis reads finished sessions for problems that got fixed, decisions and gotchas, and stores them as lessons. Its rules read many ordinary sentences as problems and decisions. In one real store, most recent lessons were like "Problem: …checking the email notification → Fix: I added the release notes", and they ranked first in recall.

  • The rules are tighter: error codes must look like error codes, a fix must say something was fixed (not "not resolved", not a question), and a decision must have been made (not "decide whether…").
  • Once, after the update, Termpolis demotes the lessons it stored by mistake, so they rank lower in search. Nothing is deleted: a demoted lesson is still stored and still returned, ranked lower.
  • Agents are now told that a search hit from a past conversation is an excerpt they can read on from, and that memory records what was said on this computer, not what is true now.

The docs have a new section, What memory can and can't tell an agent.

Full Changelog: v1.50.0...v1.50.1