Local-shell fixes for the agent (MCP)
Two local-shell issues reported in #240, both device-verified:
- Scrollback is now readable for shells you opened yourself.
read_terminal_scrollbackused to return "No scrollback available" for a local shell you opened by tapping Terminal — only agent-opened (open_local_shell) shells kept a readable buffer. The agent-scope ring is now wired into every local shell, so the agent sees the same output you do — including the final lines of a shell that exited unexpectedly. - Dead local-shell sessions are reaped. A local shell never reconnects, so once its PTY exited (you typed
exit, or a proot stream drop killed it) the dead entry lingered in the session list forever, piling up each time you reconnected. Opening a new shell on a profile now clears that profile's dead shells first.
Full Changelog: v5.59.49...v5.59.50