feat(dashboard): Enter on agents pane re-attaches to bottle #45
Reference in New Issue
Block a user
Delete Branch "chunk-3-reattach"
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
PRD 0020 chunk 3. Enter on a focused agents-pane row drops into a claude session inside the selected bottle.
Works for both:
Bottlehandle in the main loop'sbottlesdict (populated by chunk 2's new-agent flow).DockerBottlefrom the slug → container nameclaude-bottle-<slug>. Covers cross-dashboard re-attach (previous-dashboard or./cli.py startbottles).For the synthesized path,
--append-system-prompt-fileresolves viaread_metadata(slug)→manifest.agents[name].prompt. If either lookup fails (no metadata, agent removed from manifest), re-attach runs without the flag — claude defaults to no system prompt, the bottle's other state is untouched.Shares the
curses.endwin→ attach →stdscr.refresh()handoff with chunk 2's new-agent flow via a new_attach_to_bottlehelper.Footer reshuffled to surface
[Enter] view/attach. 464 unit tests pass (3 new for_bottle_for_slug).