You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[luv-legion-43] Hand back the exact 'luv continue' when a session breaks (#43)
* Hand back the exact 'luv continue' when a session breaks
A dropped connection already left the terminal usable; it still left you
working out which of several live sessions you had just lost, and with what
arguments. luv knows both, so it now prints the command — repo and number
filled in — on its way out, on a line of its own to be copied and run.
Only on a bad exit: a clean one is a detach or the agent finishing, and
neither wants advice. The detached-start notices print the same command
instead of a bare 'luv continue'. Where a hint can't be complete it gets
shorter rather than wrong — a repo alone takes its newest session — and where
the agent took the tmux session down with it, 'luv continue' now passes you
on to 'luv <repo> <n> -r' rather than stopping at "no live sessions".
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCiSTa4QuwBDrecuSUTBZ3
* Bump to 0.5.1
Same class of change as 0.2.1: polish on the dropped-connection path rather
than a new subsystem.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCiSTa4QuwBDrecuSUTBZ3
* Remind on commit when the branch's version still matches main
Releases here are cut from the version in pyproject.toml: a push to main whose
version has no tag yet publishes itself. A branch that changes the tool and
forgets the bump therefore merges into a main that publishes nothing, and the
change sits unreleased until somebody notices.
A failproofai convention policy — .failproofai/policies/ is auto-loaded, no
install step, so everyone working in the repo gets it. It instructs rather than
blocks, fires only while the working tree's version equals the base branch's,
and goes quiet the moment it is bumped. Never on main, never on a repo with no
manifest or no base ref, and every git call fails open.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LCiSTa4QuwBDrecuSUTBZ3
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/remote-sessions.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,6 +256,19 @@ luv -i ~/.ssh/other_key myrepo # use a different key this once
256
256
Detach from a session with `Ctrl-b d` (tmux's default prefix). The agent keeps
257
257
running.
258
258
259
+
When a session ends on its own — the connection drops, ssh is killed, the pane
260
+
dies — luv prints the way back in, already filled in for that session:
261
+
262
+
```
263
+
luv: session ended unexpectedly — continue it with:
264
+
265
+
luv continue myrepo 42
266
+
```
267
+
268
+
Copy that line and run it. If the agent took the tmux session down with it,
269
+
there is nothing left to attach to; `luv continue` says so and hands you
270
+
`luv myrepo 42 -r`, which reopens the workspace and resumes the conversation.
271
+
259
272
## Reaching servers the agent started
260
273
261
274
An agent working on the remote starts servers there — a dev server, a compose
@@ -409,7 +422,7 @@ machine with `--from` and luv will move the folder and start it fresh.
409
422
| Step | What happens |
410
423
|---|---|
411
424
|`luv myrepo "…"`| Laptop records a registry entry, opens SSH, creates the tmux session, remote luv clones and launches the agent |
412
-
|`Ctrl-b d` or lost connection | tmux session keeps running; agent unaffected; Docker containers stay up |
425
+
|`Ctrl-b d` or lost connection | tmux session keeps running; agent unaffected; Docker containers stay up. A connection that broke leaves the exact `luv continue <repo> <n>` for it in your terminal|
413
426
|`luv ls`| Laptop queries every known host's tmux and refreshes the registry, adopting sessions another machine started |
414
427
|`luv continue`| Reattaches; other clients are detached so the pane isn't size-clamped |
415
428
| Agent exits | The pane's command ends, tmux session disappears, Docker environment is torn down, `luv ls` prunes the entry on its next run |
0 commit comments