Skip to content

Sync changes#1

Open
auenkr wants to merge 2 commits into
auenkr:mainfrom
greggh:main
Open

Sync changes#1
auenkr wants to merge 2 commits into
auenkr:mainfrom
greggh:main

Conversation

@auenkr

@auenkr auenkr commented Mar 14, 2026

Copy link
Copy Markdown
Owner

Pull Request

Description

Please provide a clear description of what this PR does and why it should be merged.

Type of Change

Please check the options that are relevant:

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Other (please describe):

Checklist

Please check all that apply:

  • I have read the CONTRIBUTING document
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have tested with the actual OpenCode CLI tool
  • I have tested in different environments (if applicable)

Screenshots (if applicable)

Add screenshots to help explain your changes if they include visual elements.

Additional Notes

Add any other context about the PR here.

shkm and others added 2 commits February 4, 2026 10:25
When the Claude process exits (via ctrl-c, ctrl-d, or pressing Enter after
"Process exited"), the plugin now properly cleans up:

1. In toggle(): When detecting a dead terminal buffer, close any windows
   showing it and delete the buffer before creating a new instance. This
   fixes "E95: Buffer with this name already exists" error.

2. In TermClose autocmd: Clean up instance tracking, close the floating
   window, and delete the buffer. This prevents an empty floating window
   from lingering after the terminal exits.
Fix terminal cleanup when Claude process exits
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.

3 participants