Skip to content

Conversation

@Lenbok
Copy link

@Lenbok Lenbok commented Jan 16, 2026

When toggling the sidebar, check for existing agent-shell buffers in the current project that aren't registered with the sidebar and adopt them rather than creating new sessions. This allows users to manually create agent-shell sessions and have the sidebar reuse them.

  • Add agent-shell-sidebar--find-unregistered-buffers to search for unregistered agent-shell buffers by project root
  • Add agent-shell-sidebar--adopt-existing-session to register and mark an existing buffer as a sidebar session
  • Update agent-shell-sidebar--create-and-show-sidebar to try adoption before creating new sessions

…new ones

When toggling the sidebar, check for existing agent-shell buffers in the
current project that aren't registered with the sidebar and adopt them
rather than creating new sessions. This allows users to manually create
agent-shell sessions and have the sidebar reuse them.

- Add agent-shell-sidebar--find-unregistered-buffers to search for
  unregistered agent-shell buffers by project root
- Add agent-shell-sidebar--adopt-existing-session to register and mark
  an existing buffer as a sidebar session
- Update agent-shell-sidebar--create-and-show-sidebar to try adoption
  before creating new sessions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant