feat(attach): --continue on re-attach + keep bottles on dashboard quit #47
Reference in New Issue
Block a user
Delete Branch "reattach-resume-flag"
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?
Summary
Two-part fix for the dashboard's re-attach + quit behavior:
1. Re-attach now passes
--continueto claude.Re-entering a running bottle from the dashboard (Enter on the agents pane) invokes claude with
--continueso the session jumps straight to the most recent transcript — no session-picker prompt. First-attach paths (./cli.py startand the dashboard's new-agentnflow) leave it off; there's no prior session to continue.attach_claudegains aresume: bool = Falsekwarg; the dashboard's_attach_to_bottlepassesTrue. When the kwarg is set,--continueis appended to claude's argv. (Originally tried--resume, but that surfaces the picker even when only one session exists.)2.
qno longer tears down bottles.The
bottlesdict held@contextmanager-wrapped launch contexts. On Python interpreter shutdown those generators'finallyblocks ran via GC, invoking each bottle's teardown — net effect:qwas implicitly tearing down every dashboard-launched bottle even though the keypress handler justreturn'd.os._exit(0)skips all Python-level cleanup so the docker compose projects survive.curses.endwin()first to restore the terminal since the brutal exit also bypasses curses.wrapper's normal cleanup.This matches PRD 0020's resolved-question answer (
qdoes NOT tear down; teardown is always explicit viaxor./cli.py cleanup).Status
2ff1730588toae6d11f09dfeat(attach): pass --resume on dashboard re-attachto feat(attach): pass --continue on dashboard re-attach + keep bottles on quitcdb1bffabdtoae6d11f09dfeat(attach): pass --continue on dashboard re-attach + keep bottles on quitto feat(attach): --continue on re-attach + keep bottles on dashboard quit