Archive sessions, allow spaces in names, stop tripping the SSH rate limit #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "session/archive-and-bugfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Three things from one request:
1. "ssh: Connection refused" after a few quick clicks
Cause: UFW on the dev box has
LIMITon 14922, which rejects the 6th new connection from one IP within 30 s. A page view = 2 SSH calls, each button = 1 more. Kernel log at 09:30:23 showsUFW LIMIT BLOCK SRC=<prod>right after list, repos, stop, list, stop.Fix: the web app multiplexes every call over one SSH connection (
ControlMaster=auto,ControlPersist=120, socket in its private tmp dir).compose.yamlgetsinit: trueso the backgrounded master is reaped. The app logs a warning if it runs as PID 1.2. Spaces in names
createtakes a title (Fix login bug: letters, digits,-, single spaces, ≤48). The dev box derives the slug (fix-login-bug) for dir/branch/unit/tmux. The title is displayed and passed to claude as--name. Old slugs still work unchanged. AGENTS.md invariant 1 is updated to name this one exception.3. Archive
New remote verbs
archive(stop + flag; nothing deleted) andunarchive(back to list, stopped). Archived sessions can't be started. The page has a collapsible "Archived (n)" section (<details>, still no JS).Also: validation used
re.matchwith$, which accepts a trailing newline → nowfullmatch. Andlistre-reads state under the lock before saving the RC URL, so it can't undo a concurrent archive.Tests: both unittest suites pass (28 + 10). End to end with a throwaway 127.0.0.1 key and the real container image: archive → start refused → unarchive → create with spaces; 24 remote calls used 1 TCP connection; no zombie after the master exits. Not tested: the UFW limit itself (loopback is exempt) and the panel honouring
init: true.After merge: re-run
./dev/install.shon the dev box (new verbs), redeploy the panel app.🤖 Generated with Claude Code
https://claude.ai/code/session_01Rog8S9b5qKaw6nUicxXLkM